/* SkiTribu — charte unique (03_CHARTE_ET_COMPOSANTS.md, design-tokens.json).
   Mêmes couleurs, typo, boutons, champs, rayons et espacements sur toutes les pages. */
:root {
  --navy: #101C35;
  --brand: #FF5738;          /* corail de marque : logo, progression, pictogrammes */
  --accent: #C63D25;         /* corail bouton (texte blanc, contraste renforcé) */
  --accent-dark: #A8321D;
  --accent-soft: #FDECEC;
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --ice: #EAF3FC;
  --muted: #526074;
  --border: #DCE2EA;
  --input-border: #B7C2CE;
  --success: #1F6B3A;
  --success-soft: #E8F4EB;
  --danger: #A12121;
  --danger-soft: #FFF0ED;
  --focus: #1E66B0;
  --radius-card: 16px;
  --radius-input: 10px;
  --touch: 44px;
  --shadow: 0 1px 2px rgba(16, 28, 53, .04), 0 8px 24px rgba(16, 28, 53, .06);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --content: 1160px;
  --t: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--navy); font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-input); z-index: 50; }
.skip-link:focus { top: 12px; }

/* --- Typographie ---------------------------------------------------------------- */
h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2, .h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; font-weight: 750; }
.h3 { font-size: 20px; line-height: 1.25; font-weight: 750; }
h3, .h4 { font-size: 17px; line-height: 1.3; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; color: var(--accent); margin-bottom: 8px; }
.accent { color: var(--accent); }
.center { text-align: center; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* --- Icônes, logo --------------------------------------------------------------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo { height: 30px; width: auto; }

/* --- Boutons (un seul composant) --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--touch); padding: 10px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--surface); color: var(--navy);
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:hover { border-color: var(--input-border); background: #F5F7FA; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); border: 0; border-radius: 50%; background: transparent; color: var(--navy); }
.btn-icon:hover { background: var(--ice); }
.btn-icon:disabled { opacity: .35; cursor: not-allowed; background: none; }
.btn-icon-spacer { width: var(--touch); }
.btn-round { display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); border: 1px solid var(--input-border); border-radius: 50%; background: var(--surface); }
.btn-round:disabled { opacity: .35; cursor: not-allowed; }
.btn-file { position: relative; cursor: pointer; }
.btn-file:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link .icon { width: 18px; height: 18px; }
.link-danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.center { justify-content: center; }

/* --- Champs ------------------------------------------------------------------------ */
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .field .label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 8px; padding: 0; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px; background: var(--surface);
  border: 1px solid var(--input-border); border-radius: var(--radius-input); font-size: 16px;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101C35' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[type=checkbox] { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > input:not([type=checkbox]):not([type=file]) { padding-left: 44px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; min-height: var(--touch); padding-top: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-error { display: flex; gap: 8px; align-items: flex-start; color: var(--danger); background: var(--danger-soft); border-radius: var(--radius-input); padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }
.field-error .icon { width: 18px; height: 18px; margin-top: 1px; }

/* --- Cartes, statuts, notes ------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); position: relative; }
.card-accent { border-color: #F5B3B7; background: #FFFAFA; }
.card-success { border-color: #BEDDC6; background: #F6FBF7; display: flex; gap: 20px; align-items: flex-start; }
.card-muted { background: #F3F5F8; box-shadow: none; }
.banner-icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ice); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: #17406B; font-size: 13px; font-weight: 650; white-space: nowrap; }
.badge-blue { background: var(--ice); color: #17406B; }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-coral { background: var(--accent-soft); color: #A30914; }
.badge-grey { background: #EEF1F5; color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--ice); border-radius: var(--radius-input); padding: 12px 14px; font-size: 14px; margin: 16px 0; }
.notice .icon { width: 18px; height: 18px; margin-top: 1px; color: #17406B; }
.notice-warning { background: #FFF6E5; }
.notice-warning .icon { color: #8A5A00; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--ice); font-weight: 650; font-size: 14px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }

.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; overflow: hidden; background: #E4EDF5; color: var(--navy); font-weight: 750; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 34px; height: 34px; font-size: 14px; }
.avatar-md { width: 44px; height: 44px; font-size: 17px; }
.avatar-lg { width: 56px; height: 56px; font-size: 21px; }
.avatar-xl { width: 76px; height: 76px; font-size: 28px; }

/* Participants : marine = présents, contour corail pointillé = recherchés ; le nombre est toujours écrit. */
.slots { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 14px 0; }
.person { width: 36px; height: 36px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.person.is-present { stroke: var(--navy); }
.person.is-free { stroke: var(--brand); stroke-dasharray: 4 3; }
.slots-small .person { width: 28px; height: 28px; }
.slots-count { margin-left: 8px; font-weight: 700; font-size: 15px; }
.sought { color: var(--accent); font-weight: 700; }

.facts { display: grid; gap: 6px; margin: 12px 0; font-size: 15px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.facts-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }

.session-list { display: grid; margin: 12px 0; }
.session-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.session-list li:last-child { border-bottom: 0; }
.session-list span:first-child::first-letter { text-transform: uppercase; }
.time-pair { display: inline-flex; align-items: center; gap: 6px; }
.time-pair input { width: 108px; min-height: 44px; padding: 8px; }

.empty { text-align: center; padding: 48px 24px; display: grid; justify-items: center; gap: 12px; }
.empty-icon { width: 48px; height: 48px; color: #A1C6DC; }
.empty-inline { box-shadow: none; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 48px 0; }
.spinner { width: 20px; height: 20px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Mise en page --------------------------------------------------------------------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { max-width: var(--content); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; padding: 6px 0; }
.nav-main { display: flex; gap: 4px; margin-left: auto; }
.nav-link { white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--touch); padding: 8px 14px; border-radius: var(--radius-input); color: var(--navy); text-decoration: none; font-weight: 600; }
.nav-link:hover { background: #F3F5F8; }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu { position: relative; }
.avatar-btn { display: inline-flex; align-items: center; gap: 4px; min-height: var(--touch); padding: 4px 6px; border: 0; background: none; border-radius: 999px; }
.avatar-btn:hover { background: #F3F5F8; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; min-height: var(--touch); padding: 8px 12px; border: 0; background: none; border-radius: var(--radius-input); color: var(--navy); text-decoration: none; font-weight: 600; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: #F3F5F8; }

.page { flex: 1; width: 100%; max-width: var(--content); margin: 0 auto; padding: 40px 24px 72px; outline: none; }
/* Pendant un chargement, la page garde la hauteur de l'écran : le pied de page (grand logo) ne remonte jamais en flash. */
.page:has(.loading) { min-height: 100vh; min-height: 100lvh; }
.site-header:empty { min-height: 64px; }
/* Démarrage et rechargement : rien n'est peint avant que la page soit prête et à sa place. Le navigateur garde donc l'ancienne page
   à l'écran (aucun écran intermédiaire). Connexion lente : l'indicateur de chargement apparaît au bout de 0,9 s. */
body:has(> #app > .boot) > *, html.is-restoring body > * { visibility: hidden; }
.boot { animation: boot-show 0s .9s both; }
@keyframes boot-show { from { visibility: hidden; } to { visibility: visible; } }
/* Entre deux pages : l'indicateur n'apparaît que si l'attente se prolonge. */
.loading:not(.boot) { animation: loading-in .2s .35s both; }
@keyframes loading-in { from { opacity: 0; } to { opacity: 1; } }
.page-head { margin-bottom: 32px; display: grid; gap: 10px; }
.page-head .badge { justify-self: start; }
.page-head > .row .badge { justify-self: auto; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 48px 0 20px; flex-wrap: wrap; }
.block { margin-top: 32px; }
.block > h2 { margin-bottom: 16px; }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-sm { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.span-all { grid-column: 1 / -1; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 24px; }
.aside-sticky { position: sticky; top: 96px; }
.narrow { max-width: 640px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); margin-bottom: 12px; color: var(--navy); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-inner p { flex: 1; min-width: 240px; }

/* --- Accueil ---------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin: 8px 0 40px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; font-size: 19px; }
.search-section { scroll-margin-top: 96px; }
.search-bar { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--shadow); margin-bottom: 8px; }
.search-bar .field { margin: 0; }
.search-bar .btn { min-height: 48px; }
.search-label { margin-bottom: 8px; }
#results { margin-top: 24px; display: grid; gap: 12px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; background: var(--ice); border-color: transparent; box-shadow: none; }
.how h3 { margin: 12px 0 6px; }
.how-icon { width: 40px; height: 40px; color: var(--accent); }

.tribe-card { display: flex; flex-direction: column; gap: 4px; transition: box-shadow var(--t), border-color var(--t); }
.tribe-card:hover { border-color: var(--input-border); box-shadow: 0 10px 30px rgba(16, 28, 53, .1); }
.tribe-card-head { display: flex; gap: 14px; align-items: center; }
.tribe-card h3 a { color: var(--navy); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.tribe-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.tribe-card-foot .slots { margin: 8px 0 2px; }

/* --- Annonce, gestion -------------------------------------------------------------------- */
.person-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.person-head > div { flex: 1; min-width: 0; }
.bio { margin-bottom: 20px; white-space: pre-line; }
.member-list { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 12px 0; }
.member-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tribe-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-card); }
.status-box { display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: var(--radius-input); background: #F6F9FC; }
.manage-card { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.manage-photo { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; }
.manage-photo.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #D6EAF8, #F5FAFD); color: #8DB6CF; }
.manage-photo.placeholder .icon { width: 48px; height: 48px; }
.manage-main h3 { font-size: 20px; margin: 8px 0 0; }
.manage-main h3 a { color: var(--navy); text-decoration: none; }
.manage-side { display: grid; gap: 12px; justify-items: end; position: relative; z-index: 1; pointer-events: none; }
.app-card .person-head { margin-bottom: 12px; align-items: flex-start; }
.quote { background: #F6F9FC; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; white-space: pre-line; }
.app-card .muted .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.app-row h3 a { color: var(--navy); }
.news ul { display: grid; gap: 6px; margin-top: 8px; }
.news h2 { display: flex; gap: 10px; align-items: center; }
.changes-list { display: grid; gap: 10px; margin: 16px 0; }
.changes-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-input); background: #fff; border: 1px solid var(--border); }
.agreements { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.refused { margin-top: 12px; color: var(--muted); }
.refused summary { cursor: pointer; min-height: var(--touch); display: flex; align-items: center; }
.profile-summary { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #F6F9FC; margin: 16px 0 20px; }

/* --- Messagerie ------------------------------------------------------------------------- */
.messenger { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.conv-list { padding: 8px; max-height: 70vh; overflow: auto; }
.conv { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; color: var(--navy); text-decoration: none; position: relative; }
.conv:hover { background: #F5F7FA; }
.conv.is-active { background: var(--accent-soft); }
.conv-text { display: grid; min-width: 0; flex: 1; }
.thread { display: flex; flex-direction: column; min-height: 60vh; max-height: 75vh; padding: 0; overflow: hidden; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.thread .notice { margin: 12px 20px 0; }
.thread-back { display: none; }
.msgs { flex: 1; overflow: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 85%; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.bubble { padding: 10px 14px; border-radius: 16px; background: var(--ice); white-space: normal; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent-soft); }
.msg-meta { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg-system { display: flex; gap: 8px; align-items: flex-start; justify-self: center; max-width: 90%; font-size: 13px; color: var(--muted); background: #F3F5F8; border-radius: 12px; padding: 8px 12px; }
.msg-system .icon { width: 16px; height: 16px; margin-top: 1px; }
.msg-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); }
.msg-form textarea { min-height: 48px; max-height: 160px; resize: none; }

/* --- Fenêtre (Modal) : création, connexion, demande, réservation --------------------------- */
.modal { border: 0; padding: 0; width: min(640px, calc(100% - 32px)); max-height: 88vh; max-height: 88dvh; border-radius: 20px; box-shadow: 0 24px 90px rgba(16, 28, 53, .28); color: var(--navy); background: var(--surface); overflow: hidden; overflow: clip; }
.modal::backdrop { background: rgba(16, 28, 53, .45); backdrop-filter: blur(3px); }
.modal-shell { display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh; }
.modal-top { padding: 14px 20px 12px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; }
.modal-top-row { display: flex; align-items: center; justify-content: space-between; }
.modal-top .logo { height: 26px; }
.modal-label { text-align: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.stepper { display: flex; justify-content: center; gap: 8px; }
.stepper span { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE4; transition: background var(--t), transform var(--t); }
.stepper span.done { background: var(--brand); }
.stepper span.current { transform: scale(1.3); }
.modal-content { overflow: auto; min-height: 0; flex: 1; overscroll-behavior: contain; }
.modal-body { padding: 24px 32px 8px; }
.title-popup { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; font-weight: 800; margin-bottom: 8px; outline: none; }
.modal-body > .muted:first-of-type { margin-bottom: 20px; }
.modal-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.modal-footer .btn-primary { min-width: 180px; }
.slide-forward { animation: slide-in-right var(--t) ease-out; }
.slide-back { animation: slide-in-left var(--t) ease-out; }
@keyframes slide-in-right { from { opacity: .3; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-left { from { opacity: .3; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.auth-card { padding: 32px; }
.auth-card .title-popup { margin-bottom: 8px; }
.auth-card .muted:first-of-type { margin-bottom: 20px; }
.auth-result .btn { margin-top: 4px; }
.modal-body .title-popup + .muted { margin-bottom: 20px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.choice-list { display: grid; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; text-align: left; background: var(--surface); border: 1px solid var(--input-border); border-radius: 12px; transition: border-color var(--t), background var(--t); }
.choice:hover { border-color: var(--navy); }
.choice > .icon { width: 24px; height: 24px; color: var(--muted); }
.choice span { display: grid; flex: 1; }
.choice small { color: var(--muted); font-size: 14px; font-weight: 500; }
.choice.is-selected { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px 15px; }
.choice.is-selected > .icon { color: var(--accent); }
.choice-check { color: var(--accent) !important; }

.calendar { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px; margin: 8px 0 20px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0; }
.cal-day { min-height: var(--touch); border: 1px solid transparent; border-radius: var(--radius-input); background: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-day:hover:not(:disabled) { background: var(--ice); }
.cal-day:disabled { color: #A9B2BE; cursor: not-allowed; font-weight: 400; }
.cal-day.is-today { border-color: var(--input-border); }
.cal-day.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.time-row .field { margin: 0; }
.session-list.editable li { padding: 8px 0; }
.count-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.count-line .icon { width: 18px; height: 18px; margin-top: 1px; }

.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.counter { display: flex; align-items: center; gap: 16px; }
.counter output { min-width: 32px; text-align: center; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.group-visual { display: flex; justify-content: center; margin-top: 12px; }
.group-visual .person { width: 44px; height: 44px; }
.highlight { text-align: center; font-size: 18px; font-weight: 750; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 12px 20px; margin: 8px auto 12px; }

.photo-preview { display: grid; gap: 4px; justify-items: start; margin-bottom: 8px; }
.photo-preview img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; }

.recap { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 4px 16px; margin: 12px 0; }
.recap-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.recap-item:last-child { border-bottom: 0; }
.recap-item > .icon { color: var(--muted); margin-top: 2px; }
.recap-item .link { min-height: 32px; font-size: 14px; }
.recap-sessions { display: grid; gap: 2px; margin-top: 2px; }
.recap-sessions li::first-letter { text-transform: uppercase; }
.changes { padding: 12px 16px; border-radius: var(--radius-input); background: #F6F9FC; font-size: 15px; }
.changes ul { list-style: disc; padding-left: 20px; margin-top: 4px; }
.res-rows { display: grid; gap: 10px; margin-bottom: 4px; }
.res-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.res-row input[type=date] { min-height: 44px; padding: 8px 10px; }

/* --- Toast ----------------------------------------------------------------------------- */
.toast { width: max-content; position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); max-width: min(560px, calc(100% - 32px)); background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 20px; box-shadow: 0 8px 30px rgba(16, 28, 53, .3); opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t); z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 24px; text-align: center; }

.mobile-nav { display: none; }

/* --- Tablette ------------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .field:first-child { grid-column: 1 / -1; }
  .search-bar .btn { grid-column: 1 / -1; }
  .layout-aside { grid-template-columns: minmax(0, 1fr) 300px; }
  .manage-card { grid-template-columns: 120px minmax(0, 1fr); }
  .manage-photo { width: 120px; height: 100px; }
  .manage-side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .hero { gap: 32px; }
}

@media (max-width: 960px) {
  .nav-actions .btn-primary { display: none; }
  .header-inner { gap: 12px; }
}

@media (max-width: 860px) {
  .layout-aside { grid-template-columns: 1fr; }
  .aside-sticky { position: static; order: -1; }
  .messenger { grid-template-columns: 260px minmax(0, 1fr); }
}

/* --- Mobile -------------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .page { padding: 24px 16px 104px; }
  .header-inner { padding: 8px 16px; min-height: 60px; gap: 12px; }
  .nav-main, .hide-sm { display: none !important; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn span { display: none; }
  .logo { height: 26px; }
  .hero { grid-template-columns: 1fr; text-align: center; margin-top: 0; gap: 24px; }
  .hero .lead { margin: 0 auto 24px; font-size: 17px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .grid-3, .how { grid-template-columns: 1fr; }
  .how { gap: 20px; }
  .search-bar { grid-template-columns: 1fr; }
  .search-bar.compact { grid-template-columns: 1fr 1fr; }
  .card { padding: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .manage-card { grid-template-columns: 1fr; gap: 12px; }
  .manage-photo { width: 100%; height: 140px; }
  .manage-side { grid-auto-flow: row; justify-items: stretch; }
  .manage-side .btn { width: 100%; }
  .card-success { flex-direction: column; }
  .messenger { grid-template-columns: 1fr; }
  .messenger.has-thread .conv-list { display: none; }
  .messenger:not(.has-thread) .thread { display: none; }
  .thread { min-height: calc(100dvh - 260px); max-height: none; }
  .thread-back { display: inline-flex; }
  .msg { max-width: 92%; }
  .footer-inner { padding: 20px 16px 96px; }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); padding: 4px 4px env(safe-area-inset-bottom); justify-content: space-around; }
  .mobile-nav a { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 8px 4px; color: var(--navy); text-decoration: none; font-size: 12px; font-weight: 600; }
  .mobile-nav a.is-active { color: var(--accent); }
  .mobile-nav .count { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
  .toast { bottom: 84px; }

  /* Fenêtre plein écran, pied toujours accessible */
  .modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; }
  .modal-shell { height: 100%; max-height: none; height: 100dvh; }
  .modal-body { padding: 20px 16px 8px; }
  .modal-top { padding: 10px 12px; }
  .modal-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .modal-footer .btn-primary { flex: 1; min-width: 0; }
  .title-popup { font-size: 24px; }
  .choice-grid { gap: 10px; }
  .choice { padding: 10px 12px; }
  .choice.is-selected { padding: 9px 11px; }
  .calendar { padding: 8px; }
  .cal-grid { gap: 2px; }
  .session-list.editable li { flex-wrap: wrap; }
  .time-pair input { width: 100px; }
  .recap { padding: 4px 12px; }
  .res-row { grid-template-columns: 1fr auto; }
  .res-row .time-pair { grid-column: 1 / 2; }
  .auth-card { padding: 24px 20px; }
}

@media (max-width: 380px) {
  .search-bar.compact { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Le bouton d’ajout de photo garde l’apparence d’un bouton dans un champ. */
.field > label.btn-file, .stack-sm > label.btn-file { display: inline-flex; margin: 0; font-size: 16px; justify-self: start; }
.stack:empty { display: none; }
.field > label.check { display: flex; font-weight: 500; font-size: 16px; margin: 0; }

/* =====================================================================================
   Fidélité aux maquettes (pack SKITRIBU_ASSETS_VISUELS) — composition, visuels, boutons
   ===================================================================================== */
.logo { height: 38px; width: auto; max-width: 178px; }
.modal-top .logo { height: 30px; }
.footer-inner .logo { height: 30px; }
.only-mobile { display: none; }
.only-desktop-flex { display: flex; }
.title-page { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.subtitle { font-size: 18px; color: var(--navy); }
.page-head .subtitle { margin-top: -4px; }

/* Boutons : mêmes rayons et hauteurs ; variantes des maquettes */
.btn-xl { min-height: 52px; padding: 12px 28px; font-size: 18px; }
.btn-outline-coral { border-color: var(--brand); color: var(--accent); background: #fff; }
.btn-outline-coral:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-outline-navy { border-color: var(--navy); }
.link-strong { color: var(--navy); font-size: 17px; font-weight: 700; text-decoration-thickness: 2px; }
.link-plain { color: var(--navy); font-weight: 600; }
.nav-link { border: 0; background: none; font-size: 16px; }
.nav-link.is-active { background: none; color: var(--navy); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }

/* Avatars : tailles des maquettes (images natives, jamais agrandies au-delà de ~1,3×) */
.avatar-nav { width: 40px; height: 40px; font-size: 16px; }
.avatar-card { width: 80px; height: 80px; font-size: 30px; }
.avatar-result { width: 92px; height: 92px; font-size: 34px; }
.avatar-chef { width: 64px; height: 64px; font-size: 24px; }
.avatar-portrait { width: 104px; height: 104px; font-size: 38px; }
.avatar-request { width: 112px; height: 112px; font-size: 40px; border-radius: 16px; }
.avatar-request img { border-radius: 14px; }
.avatar-profile { width: 112px; height: 112px; font-size: 40px; }
.avatar img { object-position: center top; }

/* Accueil (maquette 01) */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 603px); gap: 32px; margin: 0 0 32px; }
.hero h1 { font-size: clamp(34px, 3.9vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 16px; }
.hero .lead { color: var(--navy); font-size: 19px; max-width: 460px; margin-bottom: 24px; }
.hero-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-actions .btn-xl { min-width: 264px; }
.hero-actions .link-strong { margin-left: 76px; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 603 / 320; object-fit: cover; border-radius: 24px; }
.search-bar { grid-template-columns: 1.15fr 1.15fr 0.9fr 0.95fr auto; gap: 12px; padding: 16px 20px; border-radius: 20px; align-items: stretch; }
.search-field { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; min-height: 60px; background: #fff; min-width: 0; }
.search-field > .icon { width: 24px; height: 24px; color: var(--navy); }
.search-field > div { display: grid; min-width: 0; flex: 1; }
.search-field label { font-size: 14px; font-weight: 650; }
.search-field input, .search-field select { border: 0 !important; min-height: 26px !important; padding: 0 !important; font-size: 14px; color: var(--muted); background-color: transparent; box-shadow: none; }
.search-field select { padding-right: 24px !important; background-position: right 0 center; }
.search-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(30, 102, 176, .25); }
.search-field input:focus-visible, .search-field select:focus-visible { outline: none; }
.search-submit { min-width: 60px; min-height: 60px !important; padding: 0 16px; border-radius: 12px; }
.search-submit .icon { width: 26px; height: 26px; }
.search-bar:not(.home) .search-submit-label { display: none; }
.search-bar.home .search-submit-label { display: none; }
.section-head h2 { font-size: 26px; }
.tribe-card { padding: 18px 20px 20px; gap: 12px; }
.tribe-card-head { align-items: flex-start; gap: 16px; }
.tribe-card-title { min-width: 0; flex: 1; }
.tribe-card h3 { font-size: 19px; margin-right: 4px; }
.tribe-card h3 a { color: var(--navy); }
.facts-compact { gap: 4px; margin: 8px 0 0; font-size: 14px; }
.facts-compact .icon { width: 17px; height: 17px; color: var(--navy); }
.tribe-card-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.tribe-card-foot .slots { margin: 0; }
.tribe-card-foot .btn { position: relative; z-index: 1; pointer-events: none; }
.how { grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border-color: var(--border); box-shadow: var(--shadow); padding: 24px 8px; }
.how-item { display: flex; gap: 18px; align-items: flex-start; padding: 0 24px; }
.how-item + .how-item { border-left: 1px solid var(--border); }
.how-item img { flex: none; mix-blend-mode: multiply; }
.how-item h3 { margin: 0 0 6px; font-size: 19px; }
.how-item p { font-size: 14px; }

/* Résultats (maquette 02) */
.search-modify { display: grid; gap: 8px; margin-bottom: 8px; }
.search-modify .search-label { font-weight: 700; }
.result-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 24px; align-items: center; }
.result-person { display: flex; gap: 18px; align-items: center; }
.result-person h3 { font-size: 22px; }
.result-person h3 a { color: var(--navy); text-decoration: none; }
.member-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.member-mini li { display: grid; justify-items: center; gap: 2px; font-size: 13px; }
.result-facts { border-left: 1px solid var(--border); padding-left: 20px; }
.result-slots { display: grid; justify-items: center; gap: 4px; font-size: 14px; }
.result-slots .slots { margin: 0; }
.result-cta { position: relative; z-index: 1; pointer-events: none; }

/* Bandeau des pages internes (maquettes 03, 09) */
.tagline { position: relative; min-height: 99px; margin: -24px 0 16px; padding: 18px 0 8px; display: grid; align-content: center; }
.tagline-title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.02em; position: relative; }
.tagline-sub { font-size: 17px; color: var(--muted); position: relative; }
.tagline-deco { position: absolute; top: 0; height: auto; max-width: 46%; pointer-events: none; }
.tagline-right .tagline-deco { right: -24px; }
.tagline-center { text-align: center; }
.tagline-center .tagline-deco { left: -24px; max-width: 30%; }

/* Annonce (maquette 03) */
.annonce { padding: 18px; }
.annonce-main { display: grid; grid-template-columns: minmax(0, 369px) minmax(0, 1fr); gap: 28px; }
.annonce-photo { width: 100%; height: auto; aspect-ratio: 369 / 345; object-fit: cover; border-radius: 20px; }
.annonce-photo-empty { display: grid; place-content: center; justify-items: center; gap: 8px; background: linear-gradient(160deg, #D6EAF8, #F5FAFD); color: #6E9AB6; font-weight: 700; }
.annonce-photo-empty .icon { width: 56px; height: 56px; }
.annonce-body { display: grid; gap: 14px; align-content: start; padding-top: 6px; }
.annonce-body h1 { font-size: clamp(28px, 2.8vw, 36px); }
.chef { display: flex; gap: 16px; align-items: center; }
.chef-name { font-size: 19px; }
.chef .muted { display: inline-flex; gap: 6px; align-items: center; }
.chef .icon { width: 17px; height: 17px; }
.annonce-cols { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.annonce-cols > div:first-child { border-right: 1px solid var(--border); padding-right: 16px; }
.annonce-cols .slots { margin: 10px 0 6px; }
.annonce-facts { margin: 0; font-size: 15px; gap: 10px; }
.annonce-facts .icon { color: var(--navy); }
.annonce-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.notice-inline { margin: 0; flex: 1 1 340px; }
.annonce-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.annonce-sessions { margin-top: 20px; }
.status-box { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--border); }
.status-check { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: #2E9E5B; color: #fff; stroke-width: 2.6; }

/* Mes tribus (maquette 04, écran 07) */
.manage-card { grid-template-columns: 182px minmax(0, 1fr) minmax(0, .9fr) auto; gap: 24px; align-items: center; padding: 20px; }
.manage-photo { width: 182px; height: auto; aspect-ratio: 182 / 215; object-fit: cover; border-radius: 12px; }
.manage-main h3 { font-size: 24px; margin: 0; }
.manage-count { font-size: 20px; font-weight: 700; margin-top: 4px; }
.manage-main .slots { margin: 6px 0; }
.manage-facts { border-left: 1px solid var(--border); padding-left: 20px; margin: 0; font-size: 15px; gap: 10px; }
.manage-facts .icon { color: var(--navy); }
.manage-side { pointer-events: none; }

/* Groupe / gestion (maquettes 05 et 09) */
.groupe { padding: 16px 20px 20px; }
.groupe .back-link { margin-bottom: 8px; }
.groupe-top { display: grid; grid-template-columns: 263px minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.groupe-photo { position: relative; margin: 0; }
.groupe-photo img { width: 100%; height: auto; aspect-ratio: 263 / 154; object-fit: cover; border-radius: 14px; }
.chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.chip .icon { width: 16px; height: 16px; }
.groupe-head h1 { font-size: clamp(26px, 2.6vw, 32px); margin-right: 8px; }
.groupe-head .subtitle { color: var(--muted); margin: 4px 0 12px; }
.portraits { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.portraits li { display: grid; justify-items: center; gap: 4px; font-size: 16px; }
.chef-tag { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.groupe-slots { border-left: 1px solid var(--border); padding-left: 24px; min-width: 220px; }
.groupe-bottom { display: grid; grid-template-columns: .8fr 1.1fr 1fr; gap: 24px; margin-top: 20px; border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.groupe-bottom h2 { display: flex; gap: 10px; align-items: center; font-size: 18px; margin-bottom: 8px; }
.g-sessions { border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 20px; }
.slot-rows { display: grid; gap: 6px; font-size: 15px; }
.slot-rows li { display: flex; gap: 24px; }
.slot-rows span { display: inline-flex; gap: 8px; align-items: center; }
.slot-rows .icon { width: 17px; height: 17px; }
.g-next { display: grid; gap: 10px; align-content: start; background: var(--ice); border-radius: 14px; padding: 16px; }
.g-step { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; line-height: 1.25; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; flex: none; }
.step-ok { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #2E9E5B; color: #fff; stroke-width: 2.6; }
.groupe-actions { margin: 16px 0 24px; }
.app-card .app-person { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.app-info { flex: 1; display: grid; gap: 4px; }
.fact-line { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.fact-line .icon { width: 18px; height: 18px; }

/* Connexion (maquette 11) : bandes photo fournies aux bords, carte au centre */
.auth-stage { position: relative; width: 100vw; margin: -40px 0 -72px calc(50% - 50vw); min-height: 540px; padding: 20px 16px 40px; display: grid; justify-items: center; align-content: start; overflow: hidden;
  background: linear-gradient(180deg, #EEF4FA, var(--bg)); }
.auth-band { position: absolute; top: 0; height: 540px; width: auto; pointer-events: none; }
.auth-band-left { left: 0; }
.auth-band-right { right: 0; }
.auth-card { position: relative; width: min(690px, 100%); padding: 40px 72px 28px; text-align: center; border-radius: 22px; }
.auth-title { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 10px; }
.auth-sub { font-size: 18px; color: var(--navy); margin: 0 auto 24px; max-width: 500px; }
.auth-card .field { text-align: left; }
.input-lg input { min-height: 52px !important; font-size: 17px; }
.auth-note { margin-top: 12px; font-size: 15px; }
.auth-legal { margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-legal a { color: var(--navy); }
.modal .auth-title { font-size: 26px; }
.modal .auth-sub { font-size: 16px; margin-bottom: 16px; }

/* Profil (maquette 12) */
.profile-stage { position: relative; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 300px); gap: 24px; justify-content: center; align-items: start; padding-left: 0; min-height: 497px; }
.profile-band { position: absolute; left: calc(50% - 50vw); top: -40px; height: 497px; width: auto; pointer-events: none; }
.profile-card { padding: 28px 40px; display: grid; gap: 12px; position: relative; }
.profile-card .subtitle { font-size: 17px; margin-bottom: 8px; }
.profile-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; }
.profile-avatar { display: grid; justify-items: center; gap: 8px; align-content: start; }
.avatar-edit { position: relative; }
.avatar-camera { position: absolute; right: -2px; bottom: 4px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.avatar-camera:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.preview-card { padding: 20px; }
.preview-inner { background: #F4F7FA; border-radius: 14px; padding: 16px; margin-top: 12px; display: grid; gap: 12px; }
.preview-name { font-size: 22px; }
.preview-inner .small .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: #2F6FD0; }

@media (max-width: 1100px) {
  .auth-band, .profile-band { display: none; }
  .auth-stage { background: var(--bg); }
  .result-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .manage-card { grid-template-columns: 140px minmax(0, 1fr); }
  .manage-photo { width: 140px; }
  .manage-facts { grid-column: 2; border-left: 0; padding-left: 0; }
  .manage-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; align-items: center; }
  .groupe-top { grid-template-columns: 220px minmax(0, 1fr); }
  .groupe-slots { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .groupe-bottom { grid-template-columns: 1fr 1fr; }
  .g-next { grid-column: 1 / -1; }
  .g-sessions { border-right: 0; }
  .profile-stage { grid-template-columns: minmax(0, 640px); }
}
@media (max-width: 900px) {
  .annonce-main { grid-template-columns: 1fr; }
  .annonce-photo { max-width: 369px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .search-submit { grid-column: 1 / -1; }
  .how { grid-template-columns: 1fr; gap: 16px; }
  .how-item + .how-item { border-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
@media (max-width: 767px) {
  .only-desktop, .only-desktop-flex { display: none !important; }
  .only-mobile { display: inline; }
  p.only-mobile { display: block; }
  .logo { height: 30px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { display: none; }
  .hero h1 { font-size: 30px; }
  .search-bar.home { grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0; background: none; }
  .search-bar.home .extra { display: none; }
  .search-bar.home .search-submit { min-height: 52px !important; font-size: 18px; }
  .search-bar.home .search-submit-label { display: inline; }
  .search-bar.compact { grid-template-columns: 1fr 1fr; }
  .search-bar.compact .search-field:first-of-type { grid-column: 1 / -1; }
  .tagline { margin-top: -8px; min-height: 0; }
  .tagline-deco { display: none; }
  .tagline-sub { font-size: 15px; }
  .result-row { grid-template-columns: 1fr; gap: 14px; }
  .result-facts { border-left: 0; padding-left: 0; }
  .result-slots { justify-items: start; }
  .avatar-card, .avatar-result { width: 72px; height: 72px; }
  .annonce-cols { grid-template-columns: 1fr; }
  .annonce-cols > div:first-child { border-right: 0; padding-right: 0; }
  .annonce-photo { max-width: none; }
  .annonce-foot { flex-direction: column; align-items: stretch; }
  .annonce-cta { flex-direction: column; align-items: stretch; }
  .annonce-cta .btn { width: 100%; }
  .manage-card { grid-template-columns: 1fr; }
  .manage-photo { width: 100%; aspect-ratio: 16 / 9; }
  .manage-facts { grid-column: auto; }
  .manage-side { grid-auto-flow: row; justify-items: stretch; }
  .groupe-top { grid-template-columns: 1fr; }
  .groupe-photo img { aspect-ratio: 263 / 154; }
  .groupe-bottom { grid-template-columns: 1fr; }
  .g-sessions { border: 0; padding: 0; }
  .avatar-portrait { width: 76px; height: 76px; }
  .portraits { gap: 12px; }
  .slot-rows li { gap: 12px; flex-wrap: wrap; }
  .auth-stage { margin: -24px 0 -104px calc(50% - 50vw); padding: 16px; min-height: 0; }
  .auth-card { padding: 28px 20px; }
  .profile-card { padding: 22px 18px; }
  .profile-grid { grid-template-columns: 1fr; }
  .tribe-card-foot { flex-wrap: wrap; }
}
/* Les zones masquées par le formulaire n’existent pas dans les découpes : bord intérieur adouci, sans recomposition. */
.auth-band-left, .profile-band { -webkit-mask-image: linear-gradient(to right, #000 75%, transparent), linear-gradient(to bottom, #000 85%, transparent); mask-image: linear-gradient(to right, #000 75%, transparent); }
.auth-band-right { -webkit-mask-image: linear-gradient(to left, #000 75%, transparent); mask-image: linear-gradient(to left, #000 75%, transparent); }
@media (min-width: 1101px) {
  /* La carte du profil commence après la bande photo, comme sur la maquette 12. */
  .profile-stage { grid-template-columns: minmax(0, 640px) minmax(0, 280px); justify-content: start; padding-left: 170px; }
}
@media (max-width: 767px) {
  /* Maquette mobile 07 : pas de bandeau ni de grand visuel vide en haut de l’annonce. */
  .tagline { display: none; }
  .annonce-photo-empty { display: none; }
  .annonce-photo { aspect-ratio: 16 / 10; }
  .annonce-main { gap: 16px; }
}
/* Les découpes de portraits du groupe gardent un mince liseré clair de la maquette : cadrage resserré de 8 %. */
.avatar-portrait img, .avatar-request img { transform: scale(1.08); }
@media (max-width: 767px) { .avatar-portrait { width: 64px; height: 64px; font-size: 26px; } .portraits li { font-size: 14px; } }

/* =====================================================================================
   Fidélité v2 — relevés au pixel sur 01_MAQUETTES (couleurs échantillonnées, typo, popups)
   ===================================================================================== */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --accent: #FA4E32;          /* orange des boutons, relevé sur les maquettes (#FA4E32) */
  --accent-dark: #E5412A;
  --accent-soft: #FDEAE5;
  --bg: #F7FAFD;
  --border: #E3E8EF;
  --input-border: #CDD5DF;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(16, 28, 53, .03), 0 6px 22px rgba(16, 28, 53, .06);
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, .h2, .h3, .title-page, .title-popup, .tagline-title, .tribe-card h3, .result-person h3, .chef-name, .preview-name, .manage-main h3, .auth-title {
  font-family: var(--font-title); font-weight: 800; letter-spacing: -.015em;
}
h3, .h4 { font-family: var(--font-title); font-weight: 800; }
.btn { font-weight: 700; border-radius: 10px; }
.btn-primary { box-shadow: 0 2px 6px rgba(231, 12, 29, .22); }
.btn-primary:hover { box-shadow: 0 4px 12px rgba(231, 12, 29, .3); }
.btn-outline-coral { border-color: var(--accent); color: var(--accent); }
.badge { font-weight: 600; background: #E6EFFA; color: #1F3F73; }
.req { color: var(--accent); font-weight: 700; }
.label-light { font-weight: 400; }
.link { color: var(--accent); }
.site-header { background: rgba(255, 255, 255, .96); border-bottom-color: #EDF1F5; }
.nav-link { font-size: 17px; font-weight: 600; }
.card { border-color: #EAEEF3; }

/* Pictogrammes skieurs exacts (marine = présents, contour corail = recherchés) */
.person-img { width: auto; height: 36px; stroke: none; mix-blend-mode: multiply; object-fit: contain; }
.slots-small .person-img { height: 34px; }
.slots { gap: 6px; }
.annonce-cols .person-img, .groupe-slots .person-img { height: 48px; }
.manage-main .person-img { height: 42px; }
.result-slots .person-img { height: 40px; }

/* Accueil (maquette 01) */
.hero { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; }
.hero h1 { font-size: clamp(36px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -.02em; }
.hero .lead { font-size: 20px; line-height: 1.32; color: #3A465A; }
.hero-photo { border-radius: 26px; aspect-ratio: 603 / 320; }
.hero-actions .btn-xl { min-width: 280px; min-height: 50px; font-size: 20px; }
.section-head h2 { font-size: 28px; }
.tribe-card { border-radius: 18px; }
.tribe-card h3 { font-size: 20px; }
.facts-compact { font-size: 14.5px; }
.tribe-card-foot .btn { min-height: 40px; padding: 8px 18px; font-size: 17px; }
.how-item h3 { font-size: 20px; }

/* Fenêtres : même gabarit que les maquettes 03 / 04 / 10 / 11 */
.modal { border-radius: 22px; }
.modal-top { border-bottom: 0; padding: 18px 20px 4px; }
.modal-top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.modal-top-row > :first-child { justify-self: start; }
.modal-top-row > :last-child { justify-self: end; }
.modal-footer { border-top: 0; padding: 12px 32px 26px; }
.modal-footer .btn:not(.btn-primary) { background: #F2F5F9; border-color: #D9E0E8; min-width: 106px; }
.modal-footer .btn-primary { min-width: 162px; min-height: 48px; font-size: 18px; }
.modal-label { color: var(--navy); font-weight: 500; font-size: 14px; }
.modal-back span { font-weight: 500; font-size: 16px; }

/* Création en six slides (maquette 03) */
.modal[data-owner="wizard"] { width: min(500px, calc(100% - 32px)); }
.modal[data-owner="wizard"] .modal-body { padding: 4px 32px 8px; }
.modal[data-owner="wizard"] .title-popup { text-align: center; font-size: 25px; line-height: 1.2; margin: 6px 0 18px; }
.stepper { gap: 15px; }
.stepper span { width: 13px; height: 13px; background: #D3DAE3; position: relative; }
.stepper span.done, .stepper span.current { background: var(--brand); transform: none; }
.stepper span.current { box-shadow: 0 0 0 3px #FCD9DB; }
.stepper b, .stepper-count { display: none; }
.modal[data-owner="wizard"] .field > label, .modal[data-owner="wizard"] .field > legend, .modal[data-owner="wizard"] .field .label { font-size: 16px; font-weight: 700; }
.modal[data-owner="wizard"] input:not([type=checkbox]):not([type=file]), .modal[data-owner="wizard"] select { min-height: 46px; font-weight: 600; border-color: #CBD3DD; }
.modal[data-owner="wizard"] input:disabled { background: #F7F9FB; color: var(--muted); font-weight: 500; }
.input-select > input:not([type=checkbox]) { padding-right: 40px !important; }
.select-chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; }
.input-icon > select { padding-left: 44px; }
.field-pic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 22px; height: auto; mix-blend-mode: multiply; pointer-events: none; }
.input-icon > .icon { color: var(--navy); }
.input-area > .icon { top: 16px; transform: none; }
.input-area > textarea { padding-left: 44px; min-height: 84px; font-weight: 500; }
.check-inline { align-items: center; padding-top: 0; font-weight: 600; font-size: 16px; }
.check-inline input { width: 22px; height: 22px; }
.tip { display: inline-flex; color: var(--muted); }
.tip .icon { width: 18px; height: 18px; }
.field-tight { margin-bottom: 14px; }
.choice-row { margin-bottom: 0; }
.choice-row .choice { justify-content: center; min-height: 48px; padding: 8px 14px; border-radius: 10px; border-color: #D5DCE5; }
.choice-row .choice span { flex: none; }
.choice-row .choice > .icon { width: 26px; height: 26px; color: var(--navy); }
.choice-row .choice.is-selected { border: 1.5px solid var(--accent); background: #FDECEC; padding: 7px 13px; }
.choice-row .choice.is-selected > .icon { color: var(--accent); }
.choice-row .choice-check { display: none; }
.field-hint { margin-top: 6px; }
.step-lead { font-weight: 600; margin: -8px 0 8px; }
.calendar { padding: 0; overflow: hidden; border-color: #E1E6ED; margin-bottom: 14px; }
.cal-nav { background: #F1F4F8; margin: 0; padding: 4px 6px; }
.cal-nav strong { font-size: 17px; }
.cal-grid { padding: 6px 8px 10px; }
.cal-day.is-on { background: #FDE4E5; color: var(--navy); border-color: #FDE4E5; font-weight: 800; position: relative; padding-bottom: 18px; min-height: 60px; }
.cal-day.is-on::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.small-strong { font-size: 15px; }
.time-line { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.time-clock { width: 24px; height: 24px; }
.time-box { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #CBD3DD; border-radius: 10px; padding: 0 10px; min-height: 44px; background: #fff; }
.time-box input { border: 0 !important; min-height: 40px !important; padding: 4px !important; width: auto !important; font-weight: 600; background: none; }
.link-small { font-size: 14px; font-weight: 500; min-height: 32px; margin-left: auto; }
.count-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.count-tile { display: flex; align-items: center; gap: 10px; background: #F1F4F8; border-radius: 12px; padding: 10px 12px; }
.count-ic .icon { width: 28px; height: 28px; }
.count-text { display: grid; line-height: 1.2; flex: 1; font-size: 15px; }
.count-text strong { font-size: 16px; }
.count-text output { font: inherit; }
.count-tile .counter { gap: 6px; flex-direction: column; }
.btn-mini { width: 28px; height: 28px; }
.btn-mini .icon { width: 14px; height: 14px; }
.group-visual { margin: 22px 0 6px; padding-bottom: 10px; border-bottom: 2px solid #E6EBF1; border-radius: 0 0 50% 50% / 0 0 14px 14px; }
.group-visual .person-img { height: 86px; }
.group-visual .slots { gap: 14px; justify-content: center; }
.highlight { font-size: 18px; line-height: 1.25; color: #D90B1A; background: #FDE7E8; border-radius: 26px; padding: 12px 24px; max-width: 320px; }
.recap { padding: 8px 16px; border-color: #DCE2EA; border-radius: 12px; }
.recap-item { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; padding: 4px 0; border-bottom: 0; font-size: 15px; font-weight: 600; align-items: center; }
.recap-item > .icon, .recap-item > img { color: var(--navy); width: 22px; height: 22px; object-fit: contain; mix-blend-mode: multiply; }
.recap-item .link { font-size: 13px; font-weight: 500; color: var(--muted); min-height: 28px; }
.recap-light { font-weight: 500; }
.recap-note { display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 4px 0 10px; }
.recap-note .icon { width: 18px; height: 18px; }
.choose-note { display: flex; gap: 14px; align-items: center; background: #FDE9EA; color: #C80A18; font-weight: 700; border-radius: 10px; padding: 10px 18px; }
.choose-note .icon { width: 30px; height: 30px; color: var(--accent); }
.check-terms { font-size: 14px; font-weight: 500; min-height: 0; padding-top: 12px; }
.check-terms input { width: 18px; height: 18px; }
.btn-soft { background: #F2F5F9; border-color: #D9E0E8; font-weight: 500; }

/* Mobile (maquette 07) */
@media (max-width: 767px) {
  .header-inner { justify-content: center; position: relative; min-height: 64px; }
  .brand { margin: 0 auto; }
  .nav-actions { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
  .nav-actions > a.btn { display: none; }
  .logo { height: 32px; }
  .hero h1 { font-size: 31px; line-height: 1.12; }
  .hero h1 .accent, .hero h1 em { color: var(--accent); }
  .tribe-card .avatar-card { width: 84px; height: 84px; box-shadow: 0 0 0 2.5px var(--accent); border: 3px solid #fff; }
  .tribe-card h3 { font-size: 24px; }
  .person-img { height: 40px; }
  .mobile-nav a { font-size: 13px; }
  .mobile-nav a.is-active::after { content: ""; position: absolute; bottom: 4px; left: 30%; right: 30%; height: 2px; background: var(--accent); border-radius: 2px; }

  .modal[data-owner="wizard"] { width: 100%; }
  .modal[data-owner="wizard"] .modal-body { padding: 4px 18px 8px; }
  .modal[data-owner="wizard"] .title-popup { font-size: 25px; }
  .modal-top.has-progress { position: relative; }
  .modal-top.has-progress .modal-label { display: none; }
  .stepper-count { display: block; position: absolute; right: 22px; top: 56px; font-weight: 600; font-size: 16px; }
  .stepper { gap: 0; margin: 18px 4px 0; justify-content: space-between; }
  .stepper span { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1.5px solid #9AA6B5; display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .stepper span + span { margin-left: 0; }
  .stepper span:not(:last-child)::before { content: ""; position: absolute; left: 100%; top: 50%; width: calc((100vw - 48px - 180px) / 5); height: 2px; background: #9AA6B5; z-index: -1; }
  .stepper b { display: inline; font-size: 14px; font-weight: 600; color: var(--navy); }
  .stepper span.current { background: var(--accent); border-color: var(--accent); box-shadow: none; }
  .stepper span.current b { color: #fff; }
  .stepper span.done { background: var(--accent); border-color: var(--accent); }
  .stepper span.done::before { background: var(--accent) !important; }
  .stepper span.done b { display: none; }
  .stepper span.done::after { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
  .cal-day.is-on { background: var(--accent); color: #fff; border-color: var(--accent); padding-bottom: 0; min-height: var(--touch); font-size: 18px; }
  .cal-day.is-on::after { display: none; }
  .cal-day { font-size: 17px; font-weight: 500; }
  .modal-footer .btn:not(.btn-primary) { min-width: 0; }
  .count-tiles { grid-template-columns: 1fr; }
}
.input-select input::-webkit-calendar-picker-indicator { opacity: 0; }
.input-select input::-webkit-list-button { display: none; }
.input-icon > .select-chevron { left: auto; right: 14px; color: var(--navy); }
@media (min-width: 768px) { .modal-top.has-progress .modal-back { visibility: hidden; } }
.recap-item .link { text-decoration: none; opacity: .8; }
.recap-item .link:hover { text-decoration: underline; opacity: 1; }
.link-strong, .link.link-strong { color: var(--navy); }
/* Mes tribus (maquette 04, écran 07) : tailles relevées */
.page-head .title-page { font-size: clamp(30px, 3.3vw, 42px); }
.page-head .subtitle { font-family: var(--font-title); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.page-head p.muted { color: #2B3850; font-size: 17px; }
.manage-card { padding: 22px 24px; border-radius: 18px; }
.manage-main h3 { font-size: 28px; }
.manage-count { font-size: 22px; }
.manage-main .avatar { width: 64px; height: 64px; }
.manage-main .member-mini li, .manage-main .member-list li { font-size: 16px; font-weight: 600; }
.manage-side .btn-primary { min-height: 52px; font-size: 19px; padding: 12px 26px; }
.manage-side .pill { font-size: 17px; padding: 12px 22px; background: #E8EEF6; border-radius: 12px; }
.manage-facts { font-size: 16px; }
@media (max-width: 767px) { .page-head .title-page { font-size: 30px; } .page-head .subtitle { font-size: 19px; } .manage-main h3 { font-size: 24px; } }
.site-header { background: #fff; }
@media (max-width: 767px) { .hero { margin-bottom: 8px; gap: 12px; } .hero .lead { margin-bottom: 8px; } }

/* Demandes et messagerie (maquette 04, écran 08) */
.req-head { margin-bottom: 18px; }
.req-head .back-link { margin-bottom: 4px; }
.req-tribe { font-family: var(--font-title); font-weight: 800; font-size: 24px; letter-spacing: -.01em; margin-top: 2px; }
.req-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; margin-top: 12px; font-size: 16px; }
.req-meta > span { display: inline-flex; align-items: center; gap: 10px; }
.req-meta .icon { width: 22px; height: 22px; }
.req-meta-slots { padding-right: 32px; border-right: 1px solid var(--border); font-size: 18px; }
.req-meta-slots .slots { margin: 0; gap: 2px; }
.req-meta-slots .person-img { height: 32px; }
.req-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.req-list { padding: 18px 12px 12px; display: grid; gap: 12px; }
.req-list > h2 { font-size: 21px; padding: 0 6px 4px; }
.req-item { display: flex; gap: 22px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(16, 28, 53, .04); }
.req-item.is-active { border-color: #F5B3B7; }
.req-item .avatar-request { width: 118px; height: 118px; border-radius: 12px; border: 0; box-shadow: none; }
.req-item .avatar-request img { border-radius: 12px; }
.req-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.req-top h3 { font-size: 22px; line-height: 1.2; }
.req-top .badge { font-size: 13px; padding: 5px 12px; }
.req-body .fact-line { font-size: 15px; }
.req-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.req-actions .btn { min-height: 40px; padding: 8px 10px; font-size: 15px; border-color: #9AA6B5; }
.req-actions .btn-primary { border-color: var(--accent); }
.req-actions .btn .icon { width: 18px; height: 18px; }
.thread-compact { min-height: 360px; max-height: 70vh; }
.thread-compact .thread-head { border-bottom: 0; padding: 18px 22px 6px; }
.thread-compact .thread-head h2 { font-size: 21px; }
.thread-compact .notice { margin: 4px 22px 0; justify-content: center; border-radius: 12px; font-size: 14px; padding: 10px 16px; background: #EDF2F8; }
.thread-compact .msgs { padding: 14px 18px; gap: 14px; }
.thread-compact .msg .avatar { width: 54px; height: 54px; }
.thread-compact .bubble { background: #EEF2F7; border-radius: 14px; font-size: 15px; line-height: 1.4; padding: 8px 14px; }
.thread-compact .msg.mine .bubble { background: #FDE4E5; }
.thread-compact .msg.mine .msg-meta { text-align: right; }
.thread-compact .msg-meta strong { color: var(--navy); }
.thread-compact .msg-system { font-size: 13px; }
.msg-form-pill { border-top: 0; padding: 8px 18px 18px; }
.msg-pill { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid #B9C3CF; border-radius: 14px; padding: 6px 6px 6px 16px; background: #fff; }
.msg-pill:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(30, 102, 176, .2); }
.msg-pill > .icon { width: 22px; height: 22px; color: var(--navy); }
.msg-pill textarea { border: 0 !important; min-height: 38px !important; padding: 8px 0 !important; box-shadow: none; outline: none; }
.btn-send { min-height: 36px !important; width: 46px; padding: 0; border-radius: 10px; }
.req-foot { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 18px auto 0; padding: 8px 20px; border-radius: 12px; background: #EAF0F7; font-size: 16px; width: fit-content; max-width: 100%; }
.req-foot .icon { width: 22px; height: 22px; flex: none; }
.requests-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; text-decoration: none; color: var(--navy); }
.requests-faces { display: flex; gap: 18px; }
.requests-faces li { display: grid; justify-items: center; gap: 4px; font-weight: 600; }
@media (max-width: 999px) {
  .req-layout { grid-template-columns: 1fr; }
  .thread-compact { display: none; }
}
@media (max-width: 767px) {
  .req-meta { gap: 8px 18px; font-size: 15px; }
  .req-meta-slots { border-right: 0; padding-right: 0; width: 100%; }
  .req-item { gap: 14px; }
  .req-item .avatar-request { width: 78px; height: 78px; }
  .req-top { flex-direction: column; gap: 4px; }
  .req-actions { grid-template-columns: 1fr 1fr 1fr; }
  .req-actions .btn { font-size: 14px; padding: 8px 4px; gap: 4px; }
  .req-foot { font-size: 14px; align-items: flex-start; }
}
@media (max-width: 767px) {
  .req-list { padding: 16px 10px 10px; }
  .req-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 12px; }
  .req-body { display: contents; }
  .req-body > * { grid-column: 2; }
  .req-item .avatar-request { grid-row: 1 / span 3; width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--accent); border: 3px solid #fff; }
  .req-item .avatar-request img { border-radius: 50%; }
  .req-top { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .req-body > .req-actions { grid-column: 1 / -1; margin-top: 10px; }
}
/* Icône membre (fournie) : allumée = place prise, éteinte = place libre */
.person-img { mix-blend-mode: normal; }
.person-img.is-free { opacity: .85; }
.group-visual { border-bottom: 0; }
.group-visual .person-img { height: 72px; }
.slots-small .person-img { height: 40px; } .slots .person-img + .person-img { margin-left: -2px; }
@media (max-width: 767px) { .modal-footer .btn { white-space: normal; text-align: center; font-size: 16px; padding-left: 12px; padding-right: 12px; } }

/* =====================================================================================
   Charte rouge + page d’accueil — relevés sur la maquette d’accueil (1183 px de large)
   Rouge bouton #E70C1D, rouge texte #F00E1A, texte #0C0E1D, fond glacier #EAF4FE
   ===================================================================================== */
:root {
  --navy: #0C0E1D;
  --brand: #F00E1A;
  --accent: #E70C1D;
  --accent-dark: #C70A18;
  --accent-soft: #FDECEC;
  --bg: #EDF4FC;
  --ice: #E3EEFB;
  --logo-navy: #0B1446;
}
body { background: linear-gradient(180deg, #EAF4FE 0%, #EEF5FD 60%, #F3F8FE 100%) fixed; }
.btn { border-radius: 8px; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(231, 12, 29, .22); }
.btn-outline-navy { border: 2px solid var(--navy); background: transparent; }
.btn-outline-navy:hover { background: rgba(12, 14, 29, .04); border-color: var(--navy); }

/* En-tête et logo */
.site-header { background: rgba(237, 243, 252, .92); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid rgba(12, 14, 29, .05); }
.header-inner { max-width: 1183px; padding: 0 37px 0 38px; min-height: 64px; gap: 30px; }
.brand { padding: 0; text-decoration: none; }
.brand-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--logo-navy); }
.brand-icon { width: 98px; height: auto; mix-blend-mode: multiply; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-title); font-weight: 800; font-size: 36px; letter-spacing: -.035em; color: var(--logo-navy); }
.brand-name span { color: var(--brand); }
.brand-tag { font-size: 13.5px; font-style: italic; font-weight: 500; color: var(--navy); margin-top: 1px; letter-spacing: -.01em; }
.modal-top .brand-icon { width: 66px; }
.modal-top .brand-name { font-size: 26px; }
.brand-footer .brand-icon { width: 64px; }
.brand-footer .brand-name { font-size: 24px; }
.nav-main { gap: 12px; margin-left: auto; }
.nav-link { font-size: 17px; font-weight: 600; color: var(--navy); padding: 8px 10px; }
.nav-link.is-active { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-actions { gap: 22px; margin-left: 14px; }
.btn-nav { min-height: 40px; padding: 8px 20px; font-size: 16px; }
.btn-nav.btn-outline-navy { min-width: 144px; }
.btn-create { min-width: 152px; min-height: 42px; }

/* Accueil */
.page:has(> .home) { max-width: 1183px; padding: 0 31px 0; }
.home { padding-top: 33px; }
.h-hero { display: grid; grid-template-columns: 450px minmax(0, 666px); justify-content: space-between; gap: 16px; align-items: start; padding-left: 9px; }
.h-hero-text { padding-top: 27px; }
.h-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 11px; border-radius: 999px; background: #DBE5F8; font-size: 14.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .005em; color: var(--navy); }
.h-kicker .icon { width: 26px; height: 18px; stroke-width: 1.8; }
.h-hero h1 { font-size: 49px; line-height: 1.07; letter-spacing: -.035em; margin-top: 34px; font-weight: 800; color: var(--navy); }
.h-hero h1 .red { color: var(--brand); }
.h-sub { font-family: var(--font-title); font-weight: 800; font-size: 32px; line-height: 1.12; letter-spacing: -.03em; margin-top: 26px; }
.h-lead { font-size: 18.5px; line-height: 1.38; margin-top: 20px; color: #16171F; max-width: 420px; }
.h-actions { display: flex; gap: 16px; margin-top: 34px; }
.h-actions .btn { min-height: 50px; font-size: 19px; }
.h-actions .btn-primary { min-width: 234px; font-weight: 600; }
.h-actions .btn-outline-navy { min-width: 175px; font-size: 18px; }
.h-photo { position: relative; margin: 0; border-radius: 30px; overflow: hidden; container-type: inline-size; box-shadow: 0 10px 40px rgba(16, 40, 80, .10); }
.h-photo > img { width: 100%; height: auto; display: block; }
.h-pill { position: absolute; left: 36.6%; right: 3%; top: 4.2%; height: 8.3%; display: flex; align-items: center; gap: 3.2cqw; padding: 0 4cqw 0 2.6cqw; background: #fff; border-radius: 999px; font-weight: 700; font-size: 2.75cqw; letter-spacing: -.01em; box-shadow: 0 2px 12px rgba(16, 40, 80, .08); white-space: nowrap; }
.h-pill .icon { width: 4.6cqw; height: 4.6cqw; stroke-width: 1.7; }
.hero-tribe { position: absolute; left: 21%; right: 14.1%; top: 61.6%; bottom: 8.3%; background: #fff; border-radius: 3.2cqw; padding: 2.6cqw 4cqw 2.4cqw; display: grid; align-content: space-between; box-shadow: 0 6px 24px rgba(16, 40, 80, .12); }
.hero-tribe-top { display: flex; justify-content: space-between; align-items: center; }
.hero-tribe-top strong { font-family: var(--font-title); font-weight: 800; font-size: 3.3cqw; letter-spacing: -.02em; }
.hero-chip { background: #DBE5F8; border-radius: 999px; padding: .5cqw 1.6cqw; font-size: 2.1cqw; font-weight: 600; }
.hero-tribe-mid { display: flex; justify-content: space-between; align-items: center; }
.hero-tribe .faces { gap: .6cqw; }
.hero-tribe .face-sm { width: 7.4cqw; height: 7.4cqw; }
.hero-tribe .face-free { width: 8.2cqw; height: 8.2cqw; margin-left: 1cqw; }
.hero-tribe .seats { font-size: 2.75cqw; line-height: 1.25; text-align: left; margin-right: 1cqw; }
.hero-tribe-note { display: flex; align-items: center; gap: 2cqw; font-size: 2.45cqw; }
.hero-tribe-note .icon { width: 2.9cqw; height: 2.9cqw; }

.home-search { display: grid; grid-template-columns: 1.02fr 1.05fr 1fr 0.94fr auto; align-items: center; margin-top: 16px; padding: 12px 16px 12px 16px; background: rgba(255, 255, 255, .78); border-radius: 22px; box-shadow: 0 4px 24px rgba(16, 40, 80, .06); }
.hs-field { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 6px 22px 6px 16px; border-right: 1px solid #E3E8EF; position: relative; background: #fff; }
.hs-field:first-child { border-radius: 14px 0 0 14px; border: 1px solid #E8ECF2; border-right-color: #E3E8EF; }
.hs-field:nth-child(5) { border-right: 0; }
.hs-field > .icon { width: 27px; height: 27px; stroke-width: 1.7; }
.hs-field > div { display: grid; min-width: 0; flex: 1; }
.hs-field label { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.hs-field input, .hs-field select { border: 0 !important; padding: 0 22px 0 0 !important; min-height: 26px !important; font-size: 15px; color: #3B4252; background-color: transparent; box-shadow: none; }
.hs-field select { background-position: right 0 center; }
.hs-field input#s-station { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0E1D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0 center / 16px no-repeat; }
.hs-field input#s-from { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0E1D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0 center / 16px no-repeat; }
.hs-field input::-webkit-calendar-picker-indicator { opacity: 0; }
.hs-field:focus-within { box-shadow: inset 0 0 0 2px rgba(30, 102, 176, .35); }
.hs-field input:focus-visible, .hs-field select:focus-visible { outline: none; }
.hs-submit { min-height: 50px; min-width: 174px; margin-left: 12px; font-size: 18.5px; font-weight: 600; }

.h-benefits { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: center; margin: 16px 10px 0; }
.h-benefits li { display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--font-title); font-weight: 800; font-size: 18px; letter-spacing: -.02em; padding: 0 12px; }
.h-benefits li + li { border-left: 1px solid #CFD9E6; }
.h-benefits .icon { width: 38px; height: 38px; color: var(--brand); stroke-width: 1.6; }

.h-title { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 30px 0 22px; }
.h-title h2 { position: relative; font-size: 36px; letter-spacing: -.03em; padding-right: 20px; border-right: 2px solid #9AA4B2; line-height: 1.05; }
.h-title h2::after { content: ""; position: absolute; left: calc(50% + 40px); bottom: -22px; width: 68px; height: 5px; border-radius: 3px; background: var(--accent); }
.h-title p { font-style: italic; font-size: 17px; color: #40404D; }

.h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: start; }
.hcard { background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 12px 16px 12px; box-shadow: 0 4px 22px rgba(16, 40, 80, .07); cursor: pointer; display: grid; gap: 0; }
.hcard-head { display: flex; gap: 14px; align-items: center; padding: 0 2px 10px; border-bottom: 1px solid #E5E7EB; }
.face { display: block; border-radius: 50%; object-fit: cover; flex: none; }
.face-lg { width: 80px; height: 80px; }
.face-sm { width: 52px; height: 52px; }
.face-initial { display: inline-flex; align-items: center; justify-content: center; background: #DCE6F3; color: var(--navy); font-weight: 800; font-size: 22px; }
.face-lg.face-initial { font-size: 32px; }
.face-free { width: 58px; height: 58px; display: block; mix-blend-mode: multiply; }
.hcard h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.15; }
.hcard h3 a { color: var(--navy); text-decoration: none; }
.hcard-facts { display: grid; gap: 1px; margin-top: 6px; font-size: 15px; }
.hcard-facts li { display: flex; align-items: center; gap: 12px; }
.hcard-facts .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.hcard-seats { display: grid; justify-items: center; padding-top: 6px; }
.faces { display: flex; align-items: center; gap: 12px; }
.seats { color: var(--brand); font-family: var(--font-title); font-weight: 800; font-size: 19px; letter-spacing: -.02em; margin-top: 2px; }
.hcard-toggle { justify-self: center; display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; font-style: italic; font-size: 16px; color: var(--navy); min-height: 36px; padding: 4px 8px; }
.hcard.is-open .hcard-toggle { font-style: normal; font-weight: 700; font-size: 15px; }
.hcard-toggle .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.hcard-sessions { background: linear-gradient(180deg, #E3EFFC, #EDF5FD); border-radius: 12px; padding: 12px 20px 8px; margin: 2px 0 10px; }
.hcard-sessions h4 { font-family: var(--font-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.hcard-sessions ul { display: grid; gap: 6px; font-size: 16px; }
.hcard-sessions li { display: flex; gap: 18px; align-items: center; }
.hcard-sessions .icon { width: 19px; height: 19px; stroke-width: 1.8; }
.hcard-sessions p { font-style: italic; font-size: 13.5px; text-align: center; margin-top: 6px; }
.btn-join { min-height: 36px; border: 2px solid var(--navy); border-radius: 8px; background: #fff; font-family: var(--font-title); font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--navy); padding: 2px 12px; margin-top: 2px; }
.hcard:not(.is-open) .btn-join { order: -1; margin: 10px 0 2px; }
.hcard:not(.is-open) .hcard-toggle { order: 0; }
.hcard-seats { order: -2; }
.hcard-head { order: -3; }
.h-note { text-align: center; font-style: italic; font-size: 15.5px; margin: 20px 0 0; padding-bottom: 40px; background: url("/assets/skitribu/accueil/montagnes-bas.png") center bottom / 1183px 45px no-repeat; padding-bottom: 50px; }
.page:has(> .home) + .site-footer { margin-top: 0; }

@media (max-width: 1150px) {
  .h-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .h-hero h1 { font-size: clamp(36px, 4.3vw, 49px); }
  .h-sub { font-size: clamp(24px, 2.8vw, 32px); }
  .home-search { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hs-field { border: 1px solid #E8ECF2 !important; border-radius: 12px !important; }
  .hs-submit { grid-column: 1 / -1; margin: 4px 0 0; }
  .nav-link[data-action="how"] { display: none; }
}
@media (max-width: 900px) {
  .h-hero { grid-template-columns: 1fr; }
  .h-cards { grid-template-columns: 1fr 1fr; }
  .h-benefits { grid-template-columns: 1fr; gap: 10px; }
  .h-benefits li { justify-content: flex-start; }
  .h-benefits li + li { border-left: 0; }
  .h-title { flex-direction: column; gap: 8px; text-align: center; }
  .h-title h2 { border-right: 0; padding-right: 0; }
  .h-title h2::after { left: 50%; margin-left: -34px; bottom: -12px; }
  .h-title p { margin-top: 14px; }
}
@media (max-width: 767px) {
  .header-inner { padding: 6px 16px; }
  .brand-icon { width: 64px; }
  .brand-name { font-size: 26px; }
  .brand-tag { font-size: 11px; }
  .nav-actions .btn-create { display: none; }
  .page:has(> .home) { padding: 0 16px 104px; }
  .home { padding-top: 18px; }
  .h-hero { padding-left: 0; }
  .h-hero-text { padding-top: 0; text-align: left; }
  .h-kicker { font-size: 12px; }
  .h-hero h1 { font-size: 34px; margin-top: 18px; }
  .h-sub { font-size: 23px; margin-top: 14px; }
  .h-lead { font-size: 16.5px; margin-top: 12px; }
  .h-actions { flex-direction: column; gap: 10px; margin-top: 20px; }
  .h-actions .btn { width: 100%; min-width: 0; }
  .h-photo { border-radius: 22px; margin-top: 8px; }
  .home-search { grid-template-columns: 1fr; padding: 10px; }
  .hs-field { min-height: 60px; }
  .h-cards { grid-template-columns: 1fr; }
  .h-title h2 { font-size: 27px; }
  .h-note { font-size: 14px; }
}
/* Ajustements après comparaison à la maquette d’accueil */
.brand-icon, .face-free { mix-blend-mode: normal; }
@media (min-width: 1151px) {
  .h-hero { grid-template-columns: 470px minmax(0, 666px); }
  .h-hero h1 { white-space: nowrap; font-size: 48px; letter-spacing: -.04em; }
  .h-sub { white-space: nowrap; }
}
.h-title { position: relative; }
.h-title h2::after { display: none; }
.h-title::after { content: ""; position: absolute; left: 50%; margin-left: -34px; bottom: -14px; width: 68px; height: 5px; border-radius: 3px; background: var(--accent); }
.h-cards { margin-top: 26px; }
.hcard-sessions { padding: 12px 16px 8px; }
.hcard-sessions ul { font-size: 15.5px; }
.hcard-sessions li { gap: 14px; white-space: nowrap; }
.hs-field { padding: 6px 12px 6px 14px; gap: 12px; }
.hs-field > .icon { width: 25px; height: 25px; }
.hs-field label { font-size: 15.5px; }
.hs-field input, .hs-field select { font-size: 14.5px; padding-right: 18px !important; text-overflow: ellipsis; }
.hs-submit { min-width: 168px; }
@media (max-width: 900px) { .h-title::after { bottom: -10px; } }
@media (min-width: 1151px) {
  .h-hero h1 { font-size: 44px; letter-spacing: -.042em; line-height: 1.12; }
  .h-sub { white-space: normal; max-width: 400px; font-size: 31px; }
}
@media (min-width: 1151px) {
  .h-hero { grid-template-columns: 452px 666px; gap: 0; padding-left: 0; justify-content: space-between; }
  .h-hero-text { padding-left: 10px; }
  .h-hero h1 { font-size: 43px; }
}
@media (min-width: 1151px) {
  .h-hero { grid-template-columns: 462px 666px; margin-right: -10px; }
  .h-hero h1 { font-size: 42px; }
}
.h-note { width: 100vw; margin-left: calc(50% - 50vw); background-size: max(1183px, 100%) 45px; }
@media (max-width: 900px) {
  .h-title::after { display: none; }
  .h-title h2::after { display: block; left: 50%; margin-left: -34px; bottom: -12px; }
}

/* =====================================================================================
   Page d’une tribu — maquette « La tribu de Julie » (1518 px). Tailles = px maquette,
   réduites proportionnellement sous 1518 px (clamp sur vw), puis empilées sur mobile.
   ===================================================================================== */
body:has(.tribe-page) { background: #FCFAFA; }
.page:has(> .tribe-page) { max-width: 1518px; padding: clamp(14px, 1.45vw, 22px) clamp(16px, 1.45vw, 22px) 56px clamp(16px, 1.98vw, 30px); }
.tribe-page { display: grid; grid-template-columns: minmax(0, 800fr) minmax(0, 638fr); column-gap: clamp(18px, 1.84vw, 28px);
  grid-template-areas: "head aside" "photo aside" "members aside" "word aside"; align-items: start; color: #060E2F; }
.tp-head { grid-area: head; }
.tp-photo { grid-area: photo; margin: clamp(22px, 2.3vw, 31px) 0 0; }
.tp-members { grid-area: members; }
.tp-word { grid-area: word; }
.tp-aside { grid-area: aside; grid-row: 1 / span 4; margin-top: clamp(4px, .5vw, 8px); }

.tp-back { display: inline-flex; align-items: center; gap: 10px; color: #E3101F; text-decoration: none; font-size: clamp(16px, 1.25vw, 19px); margin: 0 0 clamp(14px, 1.3vw, 20px) 6px; }
.tp-back .icon { width: 22px; height: 22px; }
.tp-back:hover { text-decoration: underline; }
.tp-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px clamp(14px, 1.3vw, 20px); padding-left: 4px; }
.tp-title h1 { font-size: clamp(36px, 3.29vw, 50px); letter-spacing: -.035em; line-height: 1.05; color: #060E2F; }
.tp-status, .tp-demo { display: inline-flex; align-items: center; gap: 12px; height: clamp(30px, 2.37vw, 36px); padding: 0 clamp(14px, 1.15vw, 18px); border-radius: 999px; background: #D8EAFD; color: #153158; font-weight: 600; font-size: clamp(16px, 1.32vw, 20px); }
.tp-status .icon { width: clamp(20px, 1.7vw, 26px); height: clamp(20px, 1.7vw, 26px); }
.tp-demo { background: #EEF1F5; color: #4B5565; font-size: clamp(13px, 1vw, 15px); }
.tp-meta { display: flex; align-items: center; gap: 12px; margin-top: clamp(8px, .8vw, 12px); padding-left: 6px; font-size: clamp(17px, 1.45vw, 22px); color: #434E61; }
.tp-meta .icon { width: clamp(20px, 1.7vw, 26px); height: clamp(20px, 1.7vw, 26px); color: #434E61; }
.tp-meta i { font-style: normal; font-weight: 700; }
.tp-photo > img, .tp-photo-empty { width: 100%; height: auto; aspect-ratio: 798 / 365; object-fit: cover; border-radius: 18px; display: block; }
.tp-photo-empty { display: grid; place-content: center; justify-items: center; gap: 10px; background: linear-gradient(160deg, #D8EAFD, #F4F9FE); color: #4A6E92; font-weight: 700; font-size: 20px; }
.tp-photo-empty .icon { width: 64px; height: 64px; }

.tp-members h2 { font-size: clamp(25px, 2.11vw, 32px); letter-spacing: -.03em; margin: clamp(18px, 1.6vw, 24px) 0 clamp(12px, 1.1vw, 17px) 6px; color: #060E2F; }
.tp-row { display: flex; align-items: center; gap: 0; }
.tp-list { display: flex; align-items: center; }
.tp-member { display: flex; align-items: center; gap: clamp(10px, 1.05vw, 16px); padding: 0 clamp(10px, 1.05vw, 16px) 0 6px; min-height: 100px; }
.tp-member + .tp-member, .tp-free { border-left: 2px solid #EEF1F6; }
.tp-face { width: clamp(78px, 6.72vw, 102px); height: clamp(78px, 6.72vw, 102px); border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 2px 8px rgba(6, 14, 47, .12); }
.tp-initial { display: inline-flex; align-items: center; justify-content: center; background: #DCE6F3; font-weight: 800; font-size: 36px; color: #060E2F; box-shadow: none; }
.tp-member > div { display: grid; justify-items: start; gap: 4px; }
.tp-member strong { font-family: var(--font-title); font-size: clamp(18px, 1.45vw, 22px); letter-spacing: -.02em; font-weight: 800; }
.tp-chef { display: inline-block; padding: 2px 12px; border-radius: 999px; background: #D8EAFD; color: #153158; font-size: clamp(13px, 1.05vw, 16px); font-weight: 600; }
.tp-profile { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; color: #E3101F; font-size: clamp(14px, 1.05vw, 16px); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tp-profile .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.tp-free { padding: 0 clamp(10px, 1.05vw, 16px); }
.tp-free img { width: clamp(76px, 6.6vw, 100px); height: auto; display: block; }
.tp-count { display: grid; gap: 6px; padding-left: clamp(10px, 1.05vw, 16px); border-left: 2px solid #E4E8EF; min-height: 92px; align-content: center; }
.tp-count strong { font-family: var(--font-title); font-weight: 800; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.15; letter-spacing: -.02em; }
.tp-count span { font-size: clamp(12.5px, .99vw, 15px); color: #5D5C61; line-height: 1.35; }

.tp-word { margin-top: clamp(18px, 1.7vw, 26px); background: #fff; border: 1px solid #EDF0F4; border-radius: 18px; box-shadow: 0 4px 18px rgba(6, 14, 47, .06); padding: clamp(16px, 1.45vw, 22px) clamp(20px, 1.7vw, 26px) clamp(16px, 1.3vw, 20px); }
.tp-word h2 { display: flex; align-items: center; gap: clamp(14px, 1.3vw, 20px); font-size: clamp(23px, 1.98vw, 30px); letter-spacing: -.025em; color: #060E2F; }
.tp-word h2 .icon { width: clamp(32px, 2.6vw, 40px); height: clamp(32px, 2.6vw, 40px); color: #E3101F; stroke-width: 1.8; }
.tp-word blockquote { margin: clamp(8px, .8vw, 12px) 0 0 6px; font-style: italic; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.38; color: #181824; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(14px, 1.3vw, 20px); }
.tp-tags li { display: inline-flex; align-items: center; gap: 12px; height: clamp(32px, 2.37vw, 36px); padding: 0 clamp(18px, 1.7vw, 26px) 0 clamp(14px, 1.2vw, 18px); border-radius: 999px; background: #D9EBFE; font-weight: 600; font-size: clamp(15px, 1.25vw, 19px); color: #0F2347; }
.tp-tags .icon { width: clamp(20px, 1.6vw, 24px); height: clamp(20px, 1.6vw, 24px); }

.tp-aside { background: #fff; border: 1px solid #E8ECF0; border-radius: 20px; box-shadow: 0 4px 22px rgba(6, 14, 47, .06); padding: clamp(18px, 1.5vw, 23px) clamp(14px, 1.15vw, 17px) clamp(16px, 1.45vw, 22px) clamp(18px, 1.9vw, 30px); }
.tp-aside > h2 { font-size: clamp(27px, 2.37vw, 36px); letter-spacing: -.03em; color: #060E2F; line-height: 1.1; }
.tp-left { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(8px, .8vw, 12px); height: clamp(36px, 2.77vw, 42px); padding: 0 clamp(14px, 1.2vw, 18px) 0 clamp(12px, 1.05vw, 16px); border-radius: 999px; background: #FFE8E9; color: #D71826; font-family: var(--font-title); font-weight: 800; font-size: clamp(20px, 1.65vw, 25px); letter-spacing: -.02em; }
.tp-left .icon { width: clamp(24px, 1.98vw, 30px); height: clamp(24px, 1.98vw, 30px); }
.tp-facts { margin: clamp(6px, .6vw, 9px) clamp(6px, .9vw, 12px) 0 0; }
.tp-facts li { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 24px); min-height: clamp(36px, 2.86vw, 43.5px); font-size: clamp(17px, 1.38vw, 21px); }
.tp-facts li > span { flex: 1; border-bottom: 1px solid #E6EAED; align-self: stretch; display: flex; align-items: center; }
.tp-facts li:last-child > span { border-bottom: 0; }
.tp-facts .icon { width: clamp(22px, 1.75vw, 27px); height: clamp(22px, 1.75vw, 27px); color: #060E2F; stroke-width: 1.7; }
.tp-facts strong { font-weight: 700; margin-right: 6px; }
.tp-sessions { margin: clamp(4px, .4vw, 6px) 0 0 calc(-1 * clamp(4px, .8vw, 12px)); border: 1px solid #DCE4EC; border-radius: 14px; padding: 0 clamp(12px, 1.05vw, 16px) clamp(12px, 1.05vw, 16px); background: #F8FBFD; }
.tp-sessions summary { list-style: none; display: flex; align-items: center; gap: clamp(14px, 1.3vw, 20px); min-height: clamp(44px, 3.4vw, 52px); cursor: pointer; font-family: var(--font-title); font-weight: 800; font-size: clamp(18px, 1.45vw, 22px); letter-spacing: -.02em; }
.tp-sessions summary::-webkit-details-marker { display: none; }
.tp-sessions summary .icon { width: clamp(24px, 1.85vw, 28px); height: clamp(24px, 1.85vw, 28px); stroke-width: 1.7; }
.tp-sessions summary span { flex: 1; }
.tp-chev { transition: transform var(--t); }
.tp-sessions:not([open]) .tp-chev { transform: rotate(180deg); }
.tp-sessions ul { background: #E2EEF7; border-radius: 12px 12px 0 0; padding: 4px clamp(14px, 1.3vw, 20px) 0 clamp(24px, 2.4vw, 42px); }
.tp-sessions li { display: grid; grid-template-columns: 1fr auto; padding: clamp(5px, .5vw, 7px) clamp(4px, .6vw, 10px) clamp(5px, .5vw, 7px) 0; border-bottom: 1px solid #CFDDEA; font-size: clamp(16px, 1.3vw, 20px); }
.tp-sessions li:last-child { border-bottom: 0; }
.tp-sessions li span:last-child { min-width: clamp(160px, 14vw, 216px); }
.tp-total { background: #CCE4FA; border-radius: 0 0 12px 12px; text-align: center; font-weight: 700; font-size: clamp(16px, 1.25vw, 19px); padding: clamp(5px, .5vw, 7px) 0; }
.tp-info { display: flex; align-items: center; gap: 16px; margin: clamp(12px, 1.05vw, 16px) 0 0 calc(-1 * clamp(4px, .8vw, 12px)); min-height: clamp(38px, 2.9vw, 44px); padding: 0 16px 0 20px; border-radius: 12px; background: #DCEBFD; font-size: clamp(15px, 1.19vw, 18px); }
.tp-info .icon { width: 24px; height: 24px; }
.tp-cta { display: grid; justify-items: center; margin: clamp(14px, 1.3vw, 20px) 0 0 calc(-1 * clamp(4px, .8vw, 12px)); }
.tp-join { width: 100%; min-height: clamp(50px, 3.95vw, 60px); border-radius: 16px; font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 2.11vw, 32px); letter-spacing: -.02em; background: #EB1225; border-color: #EB1225; }
.tp-join-alt { width: 100%; min-height: 52px; }
.tp-write { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(12px, 1.05vw, 16px); border: 0; background: none; color: #E3101F; font-family: var(--font-title); font-weight: 800; font-size: clamp(19px, 1.58vw, 24px); letter-spacing: -.02em; text-decoration: none; }
.tp-write span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.tp-write .icon { width: clamp(24px, 1.85vw, 28px); height: clamp(24px, 1.85vw, 28px); stroke-width: 1.8; }
.tp-hint { margin-top: clamp(10px, .9vw, 14px); font-size: clamp(16px, 1.25vw, 19px); text-align: center; }
.tp-cta .status-box { width: 100%; }
.tp-promise { display: flex; align-items: center; gap: clamp(14px, 1.3vw, 20px); margin: clamp(22px, 2.3vw, 35px) 0 0 calc(-1 * clamp(4px, .8vw, 12px)); padding: clamp(14px, 1.2vw, 18px) clamp(14px, 1.05vw, 16px) clamp(14px, 1.2vw, 18px) clamp(16px, 1.3vw, 20px); border-radius: 14px; background: #D9EBFE; }
.tp-promise .icon { width: clamp(42px, 3.3vw, 50px); height: clamp(42px, 3.3vw, 50px); flex: none; stroke-width: 1.4; color: #0F2347; }
.tp-promise div { display: grid; gap: 4px; }
.tp-promise strong { font-family: var(--font-title); font-weight: 800; font-size: clamp(17px, 1.38vw, 21px); letter-spacing: -.02em; }
.tp-promise span { font-size: clamp(14px, 1.05vw, 16px); color: #3D4656; }
.mini-profile { display: flex; gap: 18px; align-items: center; }
.mini-levels { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mini-levels .icon { width: 18px; height: 18px; }
.mini-bio { margin: 16px 0 10px; font-size: 17px; line-height: 1.45; }

@media (max-width: 1023px) {
  .tribe-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "aside" "members" "word"; }
  .tp-aside { grid-row: auto; margin-top: 20px; }
  .tp-row { flex-wrap: wrap; row-gap: 14px; }
}
@media (max-width: 767px) {
  .page:has(> .tribe-page) { padding: 14px 16px 104px; }
  .tp-title h1 { font-size: 32px; }
  .tp-meta { font-size: 16px; flex-wrap: wrap; }
  .tp-list { flex-wrap: wrap; row-gap: 12px; }
  .tp-member { min-height: 0; padding-left: 0; }
  .tp-member + .tp-member { border-left: 0; }
  .tp-free { border-left: 0; padding-left: 0; }
  .tp-count { border-left: 0; padding-left: 0; min-height: 0; width: 100%; }
  .tp-aside { padding: 18px 14px 18px 18px; }
  .tp-sessions ul { padding-left: 14px; }
  .tp-sessions li span:last-child { min-width: 0; }
}
body:has(.tribe-page) .header-inner { max-width: 1518px; padding-left: 56px; padding-right: 40px; }
.tp-photo { position: relative; }
.tp-photo .tp-demo { position: absolute; top: 14px; left: 14px; height: 28px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(6, 14, 47, .12); }
.tp-member, .tp-free { flex: none; }
.tp-chef, .tp-profile, .tp-member strong { white-space: nowrap; }
.tp-count { flex: 1; min-width: 0; }
.tp-promise strong { font-size: clamp(16px, 1.32vw, 20px); letter-spacing: -.03em; }
.tp-count { flex: none; padding-left: clamp(10px, .92vw, 14px); }
.tp-count strong, .tp-count span { white-space: nowrap; }
.tp-member { padding-right: clamp(8px, .8vw, 12px); gap: clamp(10px, .92vw, 14px); }
.tp-member + .tp-member { padding-left: clamp(8px, .8vw, 12px); }
.tp-free { padding: 0 clamp(8px, .8vw, 12px); }
@media (max-width: 1023px) { .tp-count { flex: 1 1 100%; } }
.tp-row { flex-wrap: wrap; row-gap: 14px; }
.tp-list { flex-wrap: wrap; row-gap: 12px; }

/* =====================================================================================
   Passe « sobre » (référence BlaBlaCar) : tailles modestes, graisses 600–700, air, rouge
   réservé à l'action principale. Remplace les tailles maquette trop fortes.
   ===================================================================================== */
h1, h2, .h2, .h3, h3, .h4, .title-page, .title-popup, .tagline-title, .auth-title { font-weight: 700; letter-spacing: -.02em; }
.btn { font-weight: 600; }

/* Page d’une tribu */
.page:has(> .tribe-page) { max-width: 1180px; padding: 20px 24px 64px; }
body:has(.tribe-page) .header-inner { max-width: 1183px; padding-left: 38px; padding-right: 37px; }
.tribe-page { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; color: var(--navy); }
.tp-aside { margin-top: 36px; position: sticky; top: 88px; }
.tp-back { font-size: 15px; gap: 8px; margin: 0 0 14px; font-weight: 500; }
.tp-back .icon { width: 18px; height: 18px; }
.tp-title { gap: 12px; padding-left: 0; }
.tp-title h1 { font-size: 32px; font-weight: 700; letter-spacing: -.025em; }
.tp-status { height: 28px; padding: 0 12px; gap: 8px; font-size: 13.5px; font-weight: 600; }
.tp-status .icon { width: 16px; height: 16px; }
.tp-meta { font-size: 15.5px; gap: 8px; margin-top: 6px; padding-left: 0; color: #5B6577; }
.tp-meta .icon { width: 17px; height: 17px; color: #5B6577; }
.tp-meta i { font-weight: 400; color: #A0A8B5; }
.tp-photo { margin-top: 20px; }
.tp-photo > img, .tp-photo-empty { border-radius: 16px; aspect-ratio: 16 / 7.4; }
.tp-photo .tp-demo { height: 24px; font-size: 12px; font-weight: 600; padding: 0 10px; top: 12px; left: 12px; }
.tp-photo-empty { font-size: 15px; }
.tp-photo-empty .icon { width: 44px; height: 44px; }

.tp-members h2 { font-size: 20px; font-weight: 700; margin: 32px 0 16px; letter-spacing: -.015em; }
.tp-row { align-items: center; row-gap: 16px; column-gap: 0; }
.tp-list { row-gap: 14px; }
.tp-member { min-height: 0; gap: 12px; padding: 0 20px 0 0; }
.tp-member + .tp-member { padding-left: 20px; border-left: 1px solid #E8ECF1; }
.tp-face { width: 56px; height: 56px; box-shadow: none; border: 1px solid #E8ECF1; }
.tp-initial { font-size: 20px; }
.tp-member > div { gap: 2px; }
.tp-member strong { font-family: var(--font); font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
.tp-chef { font-size: 11.5px; padding: 1px 8px; font-weight: 600; }
.tp-profile { font-size: 13.5px; font-weight: 500; color: var(--navy); text-decoration: none; gap: 2px; }
.tp-profile:hover { color: var(--accent); text-decoration: underline; }
.tp-profile .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.tp-free { padding: 0 20px; border-left: 1px solid #E8ECF1; }
.tp-free img { width: 54px; }
.tp-count { padding-left: 20px; border-left: 1px solid #E8ECF1; min-height: 0; gap: 2px; flex: none; }
.tp-count strong { font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.tp-count strong br { display: none; }
.tp-count span { font-size: 12.5px; color: #6B7383; }
.tp-count span br { display: none; }

.tp-word { margin-top: 28px; border: 1px solid #E8ECF1; border-radius: 16px; box-shadow: none; padding: 20px 22px; background: #fff; }
.tp-word h2 { font-size: 17px; font-weight: 700; gap: 10px; letter-spacing: -.01em; }
.tp-word h2 .icon { width: 20px; height: 20px; stroke-width: 2; }
.tp-word blockquote { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: #2A3142; }
.tp-tags { gap: 8px; margin-top: 14px; }
.tp-tags li { height: 28px; padding: 0 12px 0 10px; gap: 6px; font-size: 13px; font-weight: 500; background: #EEF4FB; color: #2A3B57; }
.tp-tags .icon { width: 15px; height: 15px; }

.tp-aside { border: 1px solid #E8ECF1; border-radius: 16px; box-shadow: 0 6px 24px rgba(12, 14, 29, .06); padding: 22px 22px 20px; }
.tp-aside > h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.tp-left { height: 26px; gap: 6px; margin-top: 10px; padding: 0 10px; font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: 0; color: #C8101D; background: #FDEDEE; }
.tp-left .icon { width: 15px; height: 15px; }
.tp-facts { margin: 14px 0 0; }
.tp-facts li { gap: 12px; min-height: 40px; font-size: 14.5px; }
.tp-facts li > span { border-bottom-color: #EEF1F5; }
.tp-facts .icon { width: 18px; height: 18px; color: #5B6577; stroke-width: 1.8; }
.tp-facts strong { font-weight: 500; color: #5B6577; margin-right: 4px; }
.tp-sessions { margin: 14px 0 0; border: 1px solid #E8ECF1; border-radius: 12px; padding: 0 12px 12px; background: #fff; }
.tp-sessions summary { min-height: 44px; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 14.5px; letter-spacing: 0; }
.tp-sessions summary .icon { width: 18px; height: 18px; }
.tp-sessions ul { background: #F4F8FC; border-radius: 10px 10px 0 0; padding: 4px 12px 0; }
.tp-sessions li { font-size: 14px; padding: 7px 0; border-bottom-color: #E3EAF2; }
.tp-sessions li span:last-child { min-width: 0; color: #4B5565; }
.tp-total { background: #EAF2FB; border-radius: 0 0 10px 10px; font-size: 13px; font-weight: 600; padding: 7px 0; }
.tp-info { margin: 12px 0 0; min-height: 0; padding: 9px 12px; gap: 8px; font-size: 13px; color: #4B5565; background: #F4F8FC; border-radius: 10px; }
.tp-info .icon { width: 16px; height: 16px; }
.tp-cta { margin: 18px 0 0; }
.tp-join { min-height: 48px; border-radius: 12px; font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: 0; background: var(--accent); border-color: var(--accent); }
.tp-write { margin-top: 12px; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 14.5px; letter-spacing: 0; color: var(--navy); }
.tp-write span { text-decoration: none; }
.tp-write:hover span { text-decoration: underline; }
.tp-write .icon { width: 17px; height: 17px; stroke-width: 2; color: var(--navy); }
.tp-hint { margin-top: 8px; font-size: 13px; color: #6B7383; }
.tp-promise { margin: 18px 0 0; gap: 12px; padding: 14px; border-radius: 12px; background: #F4F8FC; }
.tp-promise .icon { width: 28px; height: 28px; stroke-width: 1.6; color: #2A3B57; }
.tp-promise strong { font-family: var(--font); font-weight: 600; font-size: 13.5px; letter-spacing: 0; }
.tp-promise span { font-size: 12.5px; color: #6B7383; }
.mini-bio { font-size: 15.5px; }

@media (max-width: 1023px) {
  .tribe-page { grid-template-columns: minmax(0, 1fr); }
  .tp-aside { position: static; margin-top: 24px; }
}
@media (max-width: 767px) {
  .page:has(> .tribe-page) { padding: 12px 16px 104px; }
  .tp-title h1 { font-size: 26px; }
  .tp-member, .tp-member + .tp-member, .tp-free { padding: 0 16px 0 0; border-left: 0; }
  .tp-count { border-left: 0; padding-left: 0; flex-basis: 100%; }
}
@media (min-width: 1024px) { .tp-row { flex-wrap: nowrap; } .tp-list { flex: none; flex-wrap: nowrap; } }
.tp-count strong, .tp-count span { white-space: normal; }

/* En-tête plus discret */
.header-inner { min-height: 60px; gap: 24px; }
.brand-icon { width: 70px; }
.brand-name { font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.brand-tag { font-size: 11.5px; font-weight: 500; }
.nav-main { gap: 4px; }
.nav-link { font-size: 15px; font-weight: 500; }
.nav-actions { gap: 12px; }
.btn-nav { min-height: 38px; padding: 6px 16px; font-size: 14.5px; }
.btn-nav.btn-outline-navy { min-width: 0; border-width: 1.5px; }
.btn-create { min-width: 0; min-height: 38px; }
.btn-outline-navy { border-width: 1.5px; }
.footer-inner { font-size: 13px; }

/* Accueil : même composition, échelle plus fine */
.h-kicker { font-size: 12px; font-weight: 600; padding: 5px 11px; letter-spacing: .02em; }
.h-kicker .icon { width: 20px; height: 14px; }
.h-sub { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 20px; }
.h-lead { font-size: 16.5px; line-height: 1.55; color: #3B4252; }
.h-actions { margin-top: 28px; gap: 12px; }
.h-actions .btn { min-height: 48px; font-size: 16px; }
.h-actions .btn-primary { min-width: 200px; }
.h-actions .btn-outline-navy { min-width: 160px; font-size: 16px; }
.h-pill { font-weight: 600; font-size: 2.4cqw; }
.hero-tribe-top strong { font-weight: 700; font-size: 3cqw; }
.hero-tribe .seats { font-size: 2.4cqw; font-weight: 600; font-family: var(--font); letter-spacing: 0; }
.hs-field { min-height: 62px; }
.hs-field label { font-size: 14px; font-weight: 600; }
.hs-field input, .hs-field select { font-size: 14px; }
.hs-field > .icon { width: 22px; height: 22px; }
.hs-submit { min-height: 48px; font-size: 16px; min-width: 160px; }
.h-benefits li { font-family: var(--font); font-weight: 600; font-size: 15px; letter-spacing: -.005em; gap: 12px; }
.h-benefits .icon { width: 28px; height: 28px; }
.h-title h2 { font-size: 28px; font-weight: 700; }
.h-title p { font-size: 15px; color: #5B6577; }
.hcard { box-shadow: 0 2px 14px rgba(16, 40, 80, .06); border: 1px solid #E8EEF5; }
.hcard h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.hcard-facts { font-size: 14px; color: #3B4252; }
.face-lg { width: 64px; height: 64px; }
.face-sm { width: 44px; height: 44px; }
.face-free { width: 50px; height: 50px; }
.faces { gap: 8px; }
.seats { font-family: var(--font); font-weight: 600; font-size: 15px; letter-spacing: 0; color: #C8101D; }
.hcard-toggle { font-size: 14px; font-style: normal; color: #4B5565; }
.hcard.is-open .hcard-toggle { font-size: 14px; font-weight: 600; }
.hcard-sessions h4 { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.hcard-sessions ul { font-size: 14px; }
.hcard-sessions li { gap: 10px; }
.hcard-sessions .icon { width: 16px; height: 16px; }
.hcard-sessions p { font-size: 12.5px; color: #5B6577; }
.btn-join { min-height: 40px; border-width: 1.5px; border-radius: 10px; font-family: var(--font); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.h-note { font-size: 13.5px; color: #5B6577; }
@media (max-width: 767px) { .brand-icon { width: 56px; } .brand-name { font-size: 23px; } .brand-tag { font-size: 10.5px; } .h-sub { font-size: 21px; } }
@media (min-width: 1024px) { .tp-count { flex: 1 1 auto; min-width: 0; } }
.h-hero h1 { font-weight: 700; }
@media (min-width: 1151px) { .h-hero h1 { font-size: 40px; letter-spacing: -.035em; } }
.tp-row, .tp-row:is(*) { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; row-gap: 12px; }
@media (min-width: 1024px) { .tp-row { flex-wrap: nowrap; } .tp-list { flex-wrap: wrap; } }
.tp-count, .tp-count:is(*) { border-left: 0; padding-left: 0; flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }

/* =====================================================================================
   Passe « sobre » — tout le site (même échelle que la page tribu et l'accueil)
   ===================================================================================== */
h1 { font-size: clamp(25px, 2.4vw, 30px); }
h2, .h2 { font-size: clamp(19px, 1.7vw, 22px); }
.h3 { font-size: 17px; }
h3, .h4 { font-size: 15.5px; }
.lead { font-size: 16px; }
.btn { font-size: 15px; min-height: 42px; padding: 8px 16px; border-radius: 10px; }
.btn-lg, .btn-xl { min-height: 46px; padding: 10px 22px; font-size: 15.5px; }
.badge { font-size: 12px; padding: 3px 9px; font-weight: 600; }
.card { border-color: #E8ECF1; border-radius: 14px; box-shadow: 0 1px 2px rgba(12, 14, 29, .03), 0 4px 16px rgba(12, 14, 29, .04); }
.section-head h2 { font-size: 20px; }
.notice { font-size: 13.5px; background: #F2F7FC; }
.field > label, .field > legend, .field .label { font-size: 14px; font-weight: 600; }
input:not([type=checkbox]):not([type=file]), select, textarea { min-height: 44px; font-size: 15px; border-color: #D3DAE3; }
.facts { font-size: 14px; }
.page-head { gap: 6px; margin-bottom: 24px; }
.page-head .title-page, .title-page { font-size: clamp(25px, 2.4vw, 30px); font-weight: 700; }
.page-head .subtitle, .subtitle { font-family: var(--font); font-size: 15.5px; font-weight: 500; color: #4B5565; letter-spacing: 0; }
.page-head p.muted, .page-head p { font-size: 14.5px; color: #5B6577; }
.block > h2, .block h2 { font-size: 19px; }
.status-box { font-size: 14px; }

/* Bandeau des pages internes */
.tagline { min-height: 0; margin: -8px 0 12px; padding: 10px 0 6px; }
.tagline-title { font-size: 20px; font-weight: 700; }
.tagline-sub { font-size: 14px; }
.tagline-deco { max-width: 34%; opacity: .9; }

/* Résultats */
.search-bar { padding: 12px 14px; border-radius: 14px; gap: 10px; }
.search-field { min-height: 54px; padding: 6px 10px; border-radius: 10px; }
.search-field > .icon { width: 20px; height: 20px; }
.search-field label { font-size: 13px; font-weight: 600; }
.search-field input, .search-field select { font-size: 13.5px; }
.search-submit { min-width: 54px; min-height: 54px !important; }
.result-row { gap: 20px; padding: 16px 20px; }
.avatar-result { width: 64px; height: 64px; font-size: 24px; }
.result-person h3 { font-size: 17px; }
.result-slots { font-size: 13px; }
.result-slots .person-img { height: 30px; }
.result-cta { min-height: 40px; font-size: 14.5px; }

/* Mes tribus */
.manage-card { padding: 16px 18px; gap: 20px; border-radius: 14px; grid-template-columns: 140px minmax(0, 1fr) minmax(0, .9fr) auto; }
.manage-photo { width: 140px; border-radius: 10px; aspect-ratio: 140 / 150; }
.manage-main h3 { font-size: 18px; }
.manage-count { font-size: 14.5px; font-weight: 600; color: #4B5565; }
.manage-main .person-img { height: 30px; }
.manage-main .avatar { width: 40px; height: 40px; }
.manage-main .member-mini li, .manage-main .member-list li { font-size: 13px; font-weight: 500; }
.manage-facts { font-size: 14px; gap: 6px; }
.manage-facts .icon { width: 16px; height: 16px; color: #5B6577; }
.manage-side .btn-primary { min-height: 42px; font-size: 14.5px; padding: 8px 18px; }
.manage-side .pill { font-size: 13px; padding: 6px 12px; background: #F2F6FB; border-radius: 999px; font-weight: 600; }
.news { font-size: 14px; }

/* Gestion d’une tribu */
.groupe { padding: 16px 20px; }
.groupe-top { grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; }
.groupe-head h1 { font-size: 24px; }
.groupe-head .subtitle { font-size: 14.5px; margin: 2px 0 10px; }
.avatar-portrait { width: 64px; height: 64px; font-size: 24px; }
.portraits { gap: 12px 18px; }
.portraits li { font-size: 14px; }
.chef-tag { font-size: 11px; }
.groupe-slots { min-width: 180px; }
.groupe-slots .person-img { height: 34px; }
.groupe-slots h2 { font-size: 15px; }
.groupe-bottom { padding: 14px; gap: 18px; border-radius: 12px; }
.groupe-bottom h2 { font-size: 14.5px; }
.slot-rows { font-size: 13.5px; }
.g-next { padding: 14px; border-radius: 12px; background: #F2F7FC; }
.g-step { font-size: 15px; }
.step-num, .step-ok { width: 24px; height: 24px; font-size: 13px; }
.groupe-actions .btn { min-height: 38px; font-size: 14px; }
.requests-faces li { font-size: 13px; }
.requests-link .btn { min-height: 40px; font-size: 14.5px; }

/* Demandes et messagerie */
.req-tribe { font-family: var(--font); font-size: 15.5px; font-weight: 600; color: #4B5565; letter-spacing: 0; }
.req-meta { font-size: 14px; gap: 8px 24px; margin-top: 10px; }
.req-meta .icon { width: 17px; height: 17px; color: #5B6577; }
.req-meta-slots { font-size: 14.5px; padding-right: 20px; }
.req-meta-slots .person-img { height: 26px; }
.req-list > h2 { font-size: 16px; }
.req-item { gap: 16px; padding: 12px; border-color: #E8ECF1; box-shadow: none; }
.req-item .avatar-request { width: 76px; height: 76px; border-radius: 12px; }
.req-top h3 { font-size: 16.5px; }
.req-top .badge { font-size: 11.5px; padding: 3px 9px; }
.req-body .fact-line { font-size: 13.5px; }
.req-actions .btn { min-height: 34px; font-size: 13.5px; border-color: #D3DAE3; }
.req-actions .btn .icon { width: 15px; height: 15px; }
.thread-compact .thread-head h2 { font-size: 16px; }
.thread-compact .notice { font-size: 12.5px; }
.thread-compact .msg .avatar { width: 40px; height: 40px; }
.thread-compact .bubble { font-size: 14px; }
.req-foot { font-size: 13.5px; padding: 8px 16px; background: #F2F7FC; }
.req-foot .icon { width: 17px; height: 17px; }
.conv { padding: 10px; }
.bubble { font-size: 14.5px; }

/* Connexion */
.auth-card { width: min(520px, 100%); padding: 32px 40px 24px; border-radius: 16px; }
.auth-title, .modal .auth-title { font-size: 24px; font-weight: 700; }
.auth-sub { font-size: 15px; color: #4B5565; margin-bottom: 20px; }
.input-lg input { min-height: 46px !important; font-size: 15px; }
.auth-note { font-size: 13.5px; color: #5B6577; }
.auth-legal { font-size: 12px; }
.auth-card .btn-xl { min-height: 46px; font-size: 15.5px; }

/* Profil */
.profile-card { padding: 24px 28px; }
.avatar-profile { width: 88px; height: 88px; font-size: 32px; }
.profile-card .subtitle { font-size: 14.5px; }
.preview-card { padding: 18px; }
.preview-name { font-size: 17px; }
.preview-inner { font-size: 14px; }

/* Fenêtres (création, demande, réservation) */
.title-popup { font-size: 21px; font-weight: 700; }
.modal[data-owner="wizard"] .title-popup { font-size: 21px; margin: 4px 0 16px; }
.modal-label { font-size: 13px; color: #5B6577; }
.modal-footer .btn-primary { min-width: 150px; min-height: 44px; font-size: 15px; }
.modal-footer .btn:not(.btn-primary) { min-height: 44px; font-size: 15px; }
.modal[data-owner="wizard"] .field > label, .modal[data-owner="wizard"] .field > legend, .modal[data-owner="wizard"] .field .label { font-size: 14px; font-weight: 600; }
.modal[data-owner="wizard"] input:not([type=checkbox]):not([type=file]), .modal[data-owner="wizard"] select { min-height: 44px; font-weight: 500; font-size: 15px; }
.choice-row .choice { min-height: 44px; font-size: 14.5px; }
.choice-row .choice > .icon { width: 20px; height: 20px; }
.choice strong { font-weight: 600; }
.step-lead { font-size: 14px; font-weight: 500; color: #4B5565; }
.cal-nav strong { font-size: 15px; }
.cal-day { font-size: 14.5px; }
.cal-day.is-on { min-height: 52px; }
.count-text { font-size: 13.5px; }
.count-text strong { font-size: 14.5px; font-weight: 600; }
.group-visual .person-img { height: 56px; }
.highlight { font-size: 15px; font-weight: 600; padding: 10px 18px; max-width: 290px; }
.recap-item { font-size: 14px; font-weight: 500; }
.choose-note { font-size: 14px; font-weight: 600; padding: 10px 14px; }
.choose-note .icon { width: 22px; height: 22px; }
.stepper span { width: 10px; height: 10px; }
.stepper { gap: 12px; }
.mini-profile .title-popup { margin-bottom: 4px; }

@media (max-width: 767px) {
  .manage-card { grid-template-columns: 1fr; }
  .manage-photo { width: 100%; aspect-ratio: 16 / 8; }
  .groupe-top { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 18px; }
  .stepper span { width: 28px; height: 28px; }
  .stepper { gap: 0; }
}
@media (max-width: 767px) { .req-item .avatar-request { width: 64px; height: 64px; border-radius: 50%; box-shadow: none; border: 1px solid #E8ECF1; } .req-item .avatar-request img { border-radius: 50%; } .tribe-card .avatar-card { box-shadow: none; border: 1px solid #E8ECF1; } }
.hcard .btn-join { order: 0; margin: 12px 0 4px; }
.hcard:hover { border-color: #D6DEE8; box-shadow: 0 6px 22px rgba(16, 40, 80, .09); }
/* Photo d’accueil nette (1536 × 1024) recadrée au format de la maquette */
.h-photo > img { aspect-ratio: 666 / 496; object-fit: cover; object-position: 50% 40%; }
/* Carte sur la photo d’accueil : portraits nets avec liseré blanc et contour gris très léger */
.hero-tribe .face-sm { box-shadow: 0 0 0 .35cqw #fff, 0 0 0 .5cqw #E1E6EC; }
.hero-tribe .faces { gap: 1.4cqw; padding-left: .5cqw; }
.hero-tribe .face-free { width: 7.6cqw; height: auto; margin-left: 1.2cqw; }
/* Cartes d’accueil : portraits nets (découpes HD) avec liseré blanc et contour gris léger */
.hcard .face { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E1E6EC; border: 0; }
.hcard .face-lg { width: 72px; height: 72px; }
.hcard-head { gap: 16px; }

/* --- Liste déroulante des stations ---------------------------------------------------- */
[data-picker-anchor] { position: relative; }
.sp-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: max(100%, 340px); max-height: 340px; overflow: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid #E3E8EF; border-radius: 12px; box-shadow: 0 12px 32px rgba(12, 14, 29, .14); padding: 6px; }
.sp-group { position: sticky; top: -6px; display: flex; justify-content: space-between; gap: 12px; margin: 0 -6px; padding: 9px 16px 5px; background: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B7383; border-top: 1px solid #F0F3F7; }
.sp-group:first-child { border-top: 0; }
.sp-group span { font-weight: 500; text-transform: none; letter-spacing: 0; color: #8A93A2; }
.sp-option { padding: 8px 10px; border-radius: 8px; font-size: 14.5px; color: var(--navy); cursor: pointer; }
.sp-option:hover, .sp-option[aria-selected="true"] { background: #F2F6FB; }
.sp-other { margin-top: 4px; border-top: 1px solid #EEF1F5; border-radius: 0 0 8px 8px; font-weight: 600; color: var(--accent); }
.sp-empty { padding: 10px; font-size: 13.5px; color: #6B7383; }
.sp-other-hint { display: block; font-size: 12px; color: #6B7383; margin-top: 2px; }
.hs-field .sp-panel { top: calc(100% + 10px); left: -14px; }
.search-field .sp-panel { left: -10px; }
.modal .sp-panel { width: 100%; max-height: 260px; }

/* --- Dates du séjour ------------------------------------------------------------------ */
.dr { position: relative; flex: 1; min-width: 0; }
.dr-toggle { display: grid; width: 100%; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: var(--navy); }
.dr-label { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.search-field .dr-label { font-size: 13px; }
.dr-value { font-size: 14px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0E1D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0 center / 16px no-repeat; }
.dr-value.is-empty { color: #3B4252; }
.dr-panel { position: absolute; z-index: 40; top: calc(100% + 14px); left: -46px; width: 340px; background: #fff; border: 1px solid #E3E8EF; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(12, 14, 29, .14); padding: 16px; display: grid; gap: 12px; }
.dr-title { font-weight: 700; font-size: 15px; }
.dr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-fields label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: #4B5565; }
.dr-fields input { min-height: 42px !important; padding: 6px 8px !important; font-size: 14px; }
.dr-help { font-size: 12.5px; color: #6B7383; }
.dr-actions { display: flex; justify-content: space-between; align-items: center; }
.dr-actions .btn { min-height: 38px; font-size: 14px; }
.dr-actions .link { color: #4B5565; font-size: 14px; min-height: 0; }

/* --- Niveau : aide et lien ------------------------------------------------------------- */
.search-level-help { text-align: right; font-size: 13px; color: #5B6577; margin: 8px 4px 0; }
.level-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #B9C2CF; }
.level-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.level-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: #5B6577; }
.tp-level-link { display: inline-flex; margin-left: 8px; color: #8A93A2; }
.tp-level-link .icon { width: 15px; height: 15px; }
.tp-level-link:hover { color: var(--navy); }

/* --- Page « Connaître mon niveau » ----------------------------------------------------- */
.levels-page { max-width: 820px; margin: 0 auto; }
.levels-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #F2F7FC; font-size: 14px; color: #3B4252; }
.levels-note .icon { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.levels-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.levels-index a { padding: 5px 12px; border-radius: 999px; border: 1px solid #E3E8EF; background: #fff; font-size: 13px; font-weight: 500; color: var(--navy); text-decoration: none; }
.levels-index a:hover { border-color: var(--navy); }
.levels-list { display: grid; gap: 12px; margin-top: 16px; }
.level-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid #E8ECF1; border-radius: 14px; scroll-margin-top: 90px; }
.level-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231, 12, 29, .08); }
.level-step { width: 32px; height: 32px; border-radius: 50%; background: #F2F6FB; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #2A3B57; }
.level-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.level-top h2 { font-size: 18px; }
.level-adult { font-size: 12.5px; font-weight: 600; color: #4B5565; background: #F2F6FB; padding: 3px 10px; border-radius: 999px; }
.level-terrain { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 14px; color: #5B6577; }
.level-terrain .icon { width: 16px; height: 16px; }
.level-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 12px; font-size: 14.5px; }
.level-skills li { display: flex; gap: 8px; align-items: flex-start; }
.level-skills .icon { width: 16px; height: 16px; margin-top: 3px; color: #1F8A4C; flex: none; }
.level-you { margin-top: 12px; padding-top: 12px; border-top: 1px solid #EEF1F5; font-size: 14px; color: #3B4252; }
.levels-unsure { margin-top: 28px; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid #E8ECF1; display: grid; gap: 10px; justify-items: start; }
.levels-unsure h2 { font-size: 18px; }
.levels-unsure p { font-size: 14.5px; color: #3B4252; }
.levels-sources { margin-top: 18px; font-size: 12.5px; color: #6B7383; }
.levels-sources a { color: #4B5565; }
@media (max-width: 767px) {
  .level-card { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .level-skills { grid-template-columns: 1fr; }
  .dr-panel { left: -38px; width: min(340px, calc(100vw - 32px)); }
  .search-level-help { text-align: left; }
  .sp-panel { width: 100%; left: 0; }
  .hs-field .sp-panel { left: -14px; width: calc(100% + 28px); }
}
.hs-field .dr-fields input, .search-field .dr-fields input { border: 1px solid #D3DAE3 !important; border-radius: 8px; padding: 6px 10px !important; background: #fff !important; color: var(--navy); font-size: 14px; }
.hs-field .dr-fields input:focus-visible, .search-field .dr-fields input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.modal .sp-panel { position: static; width: 100%; margin-top: 6px; max-height: 240px; box-shadow: 0 6px 18px rgba(12, 14, 29, .08); }
.modal [data-picker-anchor] .sp-other-hint { margin-top: 6px; }
/* Calendrier du séjour (1er clic arrivée, 2e clic départ) */
.dr-panel { width: 330px; gap: 10px; padding: 14px; }
.dr-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dr-sum > div { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid #E3E8EF; border-radius: 10px; }
.dr-sum span { font-size: 11.5px; font-weight: 600; color: #6B7383; text-transform: uppercase; letter-spacing: .04em; }
.dr-sum strong { font-size: 14px; font-weight: 600; }
.dr-sum .is-next { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.dr-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dr-cal-nav strong { font-size: 14.5px; font-weight: 600; }
.dr-nav { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--navy); }
.dr-nav:hover:not(:disabled) { background: #F2F6FB; }
.dr-nav:disabled { opacity: .3; cursor: default; }
.dr-nav .icon { width: 18px; height: 18px; }
.dr-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.dr-dow { text-align: center; font-size: 11.5px; font-weight: 600; color: #8A93A2; padding: 4px 0; }
.dr-day { height: 38px; border: 0; background: none; font-size: 14px; color: var(--navy); border-radius: 0; cursor: pointer; font-variant-numeric: tabular-nums; position: relative; }
.dr-day:hover:not(:disabled):not(.is-start):not(.is-end) { background: #F2F6FB; border-radius: 8px; }
.dr-day:disabled { color: #C4CAD3; cursor: default; }
.dr-day.is-today { font-weight: 700; }
.dr-day.is-in { background: #FDECEC; }
.dr-day.is-start, .dr-day.is-end { background: var(--accent); color: #fff; font-weight: 600; border-radius: 8px; }
.dr-day.is-start:has(~ .is-in), .dr-day.is-start:has(~ .is-end) { border-radius: 8px 0 0 8px; }
.dr-day.is-in + .is-end { border-radius: 0 8px 8px 0; }
.dr-help { font-size: 12px; }
@media (max-width: 767px) { .dr-panel { width: min(330px, calc(100vw - 32px)); } }
/* Menus déroulants SkiTribu (Discipline, Niveau) — même style que la liste des stations */
.ns { position: static; flex: 1; min-width: 0; }
.ns-toggle { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: var(--navy); }
.ns-value { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; color: var(--navy);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0E1D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0 center / 16px no-repeat; }
.ns-value.is-empty { color: #3B4252; }
.ns-toggle[aria-expanded="true"] .ns-value { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0E1D' stroke-width='2'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E"); }
.ns-panel { position: absolute; z-index: 40; top: calc(100% + 10px); left: -14px; min-width: calc(100% + 28px); width: max-content; max-width: 340px; max-height: 360px; overflow: auto;
  background: #fff; border: 1px solid #E3E8EF; border-radius: 12px; box-shadow: 0 12px 32px rgba(12, 14, 29, .14); padding: 6px; }
.ns-option { display: grid; gap: 1px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--navy); position: relative; padding-right: 34px; }
.ns-option small { font-size: 12px; color: #6B7383; line-height: 1.35; }
.ns-option:hover, .ns-option.is-active { background: #F2F6FB; }
.ns-option[aria-selected="true"] { font-weight: 600; }
.ns-option[aria-selected="true"]::after { content: ""; position: absolute; right: 12px; top: 11px; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E70C1D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.ns-footer { margin-top: 4px; padding: 10px 12px 6px; border-top: 1px solid #EEF1F5; font-size: 13px; color: #5B6577; }
.search-field .ns-panel { left: -10px; top: calc(100% + 8px); }
.search-field .ns-value { font-size: 13.5px; }
/* Dans la fenêtre de création : menu affiché sous le champ, dans le flux */
.wz-nice { border: 1px solid #CBD3DD; border-radius: 10px; min-height: 44px; display: flex; align-items: center; padding: 0 12px 0 44px; background: #fff; }
.wz-nice .ns-value { font-size: 15px; font-weight: 500; }
.wz-nice .ns-panel { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); width: auto; max-width: none; max-height: 280px; }
.wz-nice:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(30, 102, 176, .2); }
.ns-toggle:focus-visible { outline: none; }
.hs-field:focus-within, .search-field:focus-within { box-shadow: inset 0 0 0 2px rgba(30, 102, 176, .35); }
@media (max-width: 767px) { .ns-panel { left: -14px; right: -14px; width: auto; max-width: none; } }
/* Menu Niveau dans la fenêtre de création : liste affichée dans le flux (jamais coupée par la fenêtre) */
.wz-nice { border: 0; padding: 0; display: block; min-height: 0; background: none; box-shadow: none !important; }
.wz-nice > .icon { top: 22px; transform: none; z-index: 1; }
.wz-nice .ns-toggle { display: flex; align-items: center; min-height: 44px; padding: 0 12px 0 44px; border: 1px solid #CBD3DD; border-radius: 10px; background: #fff; }
.wz-nice .ns-toggle:focus-visible, .wz-nice .ns-toggle[aria-expanded="true"] { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(30, 102, 176, .2); }
.wz-nice .ns-value { flex: 1; }
.wz-nice .ns-panel { position: static; width: 100%; max-width: none; margin-top: 6px; max-height: 260px; box-shadow: 0 6px 18px rgba(12, 14, 29, .08); }

/* --- Animation « la tribu dévale la piste » (page tribu sans photo) -------------------- */
.slope { position: relative; aspect-ratio: 16 / 7.4; border-radius: 16px; overflow: hidden; container-type: inline-size; background: #EAF4FE; isolation: isolate; }
.slope-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flakes i { position: absolute; top: -4%; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .85;
  animation: sl-fall var(--d) linear var(--delay) infinite; }
@keyframes sl-fall { to { transform: translate(-3cqw, 48cqw); } }

/* Télésiège : sièges qui glissent le long du câble ; le premier amène la place libre */
.chair { position: absolute; left: -8%; top: 17.5%; animation: sl-chair 18s linear var(--delay) infinite; z-index: 2; }
@keyframes sl-chair { from { left: -8%; top: 17.5%; } to { left: 108%; top: 5.2%; } }
.chair-hanger { display: block; width: 2px; height: 5.2cqw; margin: 0 auto; background: #4B5565; }
.chair-seat { position: relative; display: block; width: 7.6cqw; height: 1.2cqw; margin-left: -3.7cqw; border-radius: 0 0 .8cqw .8cqw; background: #2A3B57; }
.chair-seat::before { content: ""; position: absolute; left: .4cqw; bottom: 1cqw; width: .6cqw; height: 3cqw; border-radius: .3cqw; background: #2A3B57; }
.chair-seat img { position: absolute; left: 1.4cqw; bottom: .9cqw; width: 5cqw; height: auto; }
.chair-seat em { position: absolute; left: 6.6cqw; bottom: 3.2cqw; white-space: nowrap; font-style: normal; font-weight: 700; font-size: max(11px, 1.6cqw);
  color: #fff; background: var(--accent); padding: .3cqw 1cqw; border-radius: 999px; box-shadow: 0 2px 8px rgba(231, 12, 29, .3); }
.chair-seat em::before { content: ""; position: absolute; left: -.5cqw; bottom: .5cqw; border: .5cqw solid transparent; border-right-color: var(--accent); border-left: 0; }

/* Skieurs : photo de profil + skis, slalom de haut en bas, légère perspective */
.sk { position: absolute; left: 90%; top: 44%; z-index: 3; --dx: 0%; --dur: 11s; display: grid; justify-items: center;
  transform: translate(-50%, -100%) scale(.62); animation: sl-slalom var(--dur) ease-in-out var(--delay) infinite; will-change: left, top, transform; }
.sk-b { --dx: -3%; --dur: 12.5s; }
.sk-c { --dx: 3%; --dur: 10s; }
.sk-d { --dx: -6%; --dur: 13s; }
.sk-e { --dx: 1%; --dur: 11.5s; }
.sk-f { --dx: -2%; --dur: 12s; }
@keyframes sl-slalom {
  0% { left: calc(90% + var(--dx)); top: 58%; transform: translate(-50%, -100%) scale(.6) rotate(10deg); opacity: 0; }
  6% { opacity: 1; }
  22% { left: calc(72% + var(--dx)); top: 64%; transform: translate(-50%, -100%) scale(.7) rotate(-14deg); }
  40% { left: calc(83% + var(--dx)); top: 70%; transform: translate(-50%, -100%) scale(.8) rotate(14deg); }
  58% { left: calc(56% + var(--dx)); top: 80%; transform: translate(-50%, -100%) scale(.9) rotate(-14deg); }
  76% { left: calc(67% + var(--dx)); top: 90%; transform: translate(-50%, -100%) scale(1) rotate(14deg); }
  93% { left: calc(36% + var(--dx)); top: 105%; transform: translate(-50%, -100%) scale(1.08) rotate(-14deg); opacity: 1; }
  100% { left: calc(28% + var(--dx)); top: 114%; transform: translate(-50%, -100%) scale(1.1) rotate(-14deg); opacity: 0; }
}
/* Le petit malin de la bande : un saut avec vrille au milieu de la piste */
.sk-jump { animation-name: sl-slalom-jump; }
@keyframes sl-slalom-jump {
  0% { left: calc(90% + var(--dx)); top: 58%; transform: translate(-50%, -100%) scale(.6) rotate(10deg); opacity: 0; }
  6% { opacity: 1; }
  22% { left: calc(72% + var(--dx)); top: 64%; transform: translate(-50%, -100%) scale(.7) rotate(-14deg); }
  40% { left: calc(83% + var(--dx)); top: 70%; transform: translate(-50%, -100%) scale(.8) rotate(14deg); }
  47% { left: calc(74% + var(--dx)); top: 71%; transform: translate(-50%, -132%) scale(.86) rotate(150deg); }
  53% { left: calc(64% + var(--dx)); top: 76%; transform: translate(-50%, -108%) scale(.9) rotate(360deg); }
  58% { left: calc(56% + var(--dx)); top: 80%; transform: translate(-50%, -100%) scale(.9) rotate(346deg); }
  76% { left: calc(67% + var(--dx)); top: 90%; transform: translate(-50%, -100%) scale(1) rotate(374deg); }
  93% { left: calc(36% + var(--dx)); top: 105%; transform: translate(-50%, -100%) scale(1.08) rotate(346deg); opacity: 1; }
  100% { left: calc(28% + var(--dx)); top: 114%; transform: translate(-50%, -100%) scale(1.1) rotate(346deg); opacity: 0; }
}
.sk-body { position: relative; display: grid; justify-items: center; animation: sl-bob .8s ease-in-out infinite alternate; }
@keyframes sl-bob { to { transform: translateY(-.35cqw); } }
.sk-face { display: grid; place-items: center; width: 7.2cqw; height: 7.2cqw; border-radius: 50%; overflow: hidden; background: #DCE6F3; color: var(--navy);
  font-weight: 800; font-size: 3cqw; box-shadow: 0 0 0 .4cqw #fff, 0 .5cqw 1.2cqw rgba(12, 14, 29, .25); position: relative; z-index: 1; }
.sk-face img { width: 100%; height: 100%; object-fit: cover; }
.sk-gear { width: 10cqw; height: 5cqw; margin-top: -1.6cqw; overflow: visible; }
.sk-pole { stroke: #4B5565; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.sk-ski { fill: var(--accent); }
.sk-ski2 { fill: #1F3F73; }
.sk-spray { position: absolute; bottom: -.4cqw; right: -2.4cqw; width: 5cqw; height: 2.2cqw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); animation: sl-spray .55s ease-out infinite; }
@keyframes sl-spray { 0% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4) translateX(1cqw); } }
.sk-name { margin-top: .3cqw; padding: .15cqw .9cqw; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: max(10px, 1.55cqw); font-weight: 600; color: var(--navy);
  box-shadow: 0 1px 4px rgba(12, 14, 29, .12); }
.sk-flag { position: absolute; top: -3.4cqw; left: 62%; padding: .2cqw .8cqw .2cqw 1cqw; background: var(--accent); color: #fff; font-size: max(9px, 1.35cqw); font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%); animation: sl-wave 1s ease-in-out infinite alternate; transform-origin: left center; z-index: 2; }
.sk-flag::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 6cqw; background: #4B5565; }
@keyframes sl-wave { to { transform: skewY(-6deg) scaleX(.94); } }

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none !important; left: calc(26% + var(--i) * 15%); top: 88%; transform: translate(-50%, -100%) scale(.95); opacity: 1; }
  .chair { animation: none !important; left: calc(20% + var(--delay) * -6%); top: 13%; }
  .flakes { display: none; }
}
.sk-pole { stroke: #8A93A2; stroke-width: 1.8; }
.sk-board { fill: var(--accent); }
.sk-binding { fill: #1F3F73; }

/* --- Accueil : la tribu dévale la piste derrière la carte ------------------------------ */
.hero-scene { position: relative; aspect-ratio: 666 / 496; }
.hero-wait { position: absolute; inset: 0; background: linear-gradient(180deg, #9FCBF3, #D7EAFB 55%, #fff 56%, #E3EDF7); }
.hero-fallback { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.slope-hero { aspect-ratio: 666 / 496; border-radius: 0; height: 100%; }
.slope-hero .chair { top: 22.1%; animation-name: sl-chair-hero; animation-duration: 16s; }
@keyframes sl-chair-hero { from { left: -8%; top: 22.1%; } to { left: 108%; top: 12.5%; } }
.slope-hero .sk { animation-name: sl-hero; --dur: 9s; }
.slope-hero .sk-b { --dx: -2%; --dur: 10s; }
.slope-hero .sk-c { --dx: 2%; --dur: 8.5s; }
.slope-hero .sk-jump { animation-name: sl-hero-jump; }
/* Trajet : en haut à droite → slalom au-dessus de la carte → sortie à gauche de la carte */
@keyframes sl-hero {
  0% { left: calc(97% + var(--dx)); top: 47%; transform: translate(-50%, -100%) scale(.55) rotate(10deg); opacity: 0; }
  7% { opacity: 1; }
  24% { left: calc(74% + var(--dx)); top: 51%; transform: translate(-50%, -100%) scale(.64) rotate(-14deg); }
  42% { left: calc(87% + var(--dx)); top: 53%; transform: translate(-50%, -100%) scale(.72) rotate(14deg); }
  62% { left: calc(50% + var(--dx)); top: 57%; transform: translate(-50%, -100%) scale(.82) rotate(-14deg); }
  80% { left: calc(30% + var(--dx)); top: 57%; transform: translate(-50%, -100%) scale(.9) rotate(12deg); }
  93% { left: calc(12% + var(--dx)); top: 62%; transform: translate(-50%, -100%) scale(.96) rotate(-14deg); opacity: 1; }
  100% { left: calc(3% + var(--dx)); top: 67%; transform: translate(-50%, -100%) scale(1) rotate(-14deg); opacity: 0; }
}
@keyframes sl-hero-jump {
  0% { left: calc(97% + var(--dx)); top: 47%; transform: translate(-50%, -100%) scale(.55) rotate(10deg); opacity: 0; }
  7% { opacity: 1; }
  24% { left: calc(74% + var(--dx)); top: 51%; transform: translate(-50%, -100%) scale(.64) rotate(-14deg); }
  42% { left: calc(87% + var(--dx)); top: 53%; transform: translate(-50%, -100%) scale(.72) rotate(14deg); }
  50% { left: calc(74% + var(--dx)); top: 54%; transform: translate(-50%, -165%) scale(.76) rotate(170deg); }
  57% { left: calc(60% + var(--dx)); top: 56%; transform: translate(-50%, -112%) scale(.8) rotate(360deg); }
  62% { left: calc(50% + var(--dx)); top: 57%; transform: translate(-50%, -100%) scale(.82) rotate(346deg); }
  80% { left: calc(30% + var(--dx)); top: 57%; transform: translate(-50%, -100%) scale(.9) rotate(372deg); }
  93% { left: calc(12% + var(--dx)); top: 62%; transform: translate(-50%, -100%) scale(.96) rotate(346deg); opacity: 1; }
  100% { left: calc(3% + var(--dx)); top: 67%; transform: translate(-50%, -100%) scale(1) rotate(346deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slope-hero .sk { left: calc(40% + var(--i) * 18%); top: 55%; }
}
.slope-hero .sk-face { width: 9.6cqw; height: 9.6cqw; }
.slope-hero .sk-gear { width: 13cqw; height: 6.5cqw; margin-top: -2cqw; }
.slope-hero .sk-name { font-size: max(10px, 1.9cqw); }
.slope-hero .sk-flag { font-size: max(9px, 1.6cqw); top: -4cqw; }
.slope-hero .chair-seat em { font-size: max(10px, 1.9cqw); }
.tp-photo .tp-demo { z-index: 5; }
/* Place libre cliquable (même action que « Rejoindre ce groupe ») */
.tp-seat { display: grid; justify-items: center; gap: 2px; border: 0; background: none; padding: 4px 6px; border-radius: 12px; cursor: pointer; text-decoration: none; color: var(--accent);
  transition: background var(--t), transform var(--t); }
.tp-seat img { width: 54px; height: auto; }
.tp-seat span { font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(-2px); transition: opacity var(--t), transform var(--t); }
.tp-seat:hover, .tp-seat:focus-visible { background: #FDECEC; }
.tp-seat:hover span, .tp-seat:focus-visible span { opacity: 1; transform: none; }
.tp-seat:hover img { transform: scale(1.06); transition: transform var(--t); }
@media (hover: none) { .tp-seat span { opacity: 1; transform: none; } }
.sp-other-hint { display: block; margin: 6px 0 0; font-size: 12.5px; color: #6B7383; }
.sp-other-hint[hidden] { display: none; }
/* Centrage vertical des icônes dans les champs sans translate en % (Chrome le calcule sur la viewBox des SVG) */
.input-icon > .icon, .input-icon > .select-chevron, .field-pic { top: 0 !important; bottom: 0; margin: auto 0; transform: none !important; }
.input-area > .icon { top: 14px !important; bottom: auto; margin: 0; }
.wz-nice > .icon { top: 12px !important; bottom: auto; margin: 0; }

/* --- Étape 4 « Combien serez-vous ? » : compteurs en ligne, places, résumé ---------------- */
.gs-card { border: 1px solid #E3E8EF; border-radius: 14px; overflow: hidden; }
.gs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.gs-row + .gs-row { border-top: 1px solid #EEF1F5; }
.gs-text { display: grid; gap: 2px; min-width: 0; }
.gs-text strong { font-size: 15px; font-weight: 600; }
.gs-text span { font-size: 12.5px; color: #6B7383; }
.gs-stepper { display: flex; align-items: center; gap: 12px; flex: none; }
.gs-stepper output { min-width: 22px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gs-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #B9C3CF; background: #fff; display: grid; place-items: center; color: var(--navy); cursor: pointer;
  transition: border-color var(--t), background var(--t); }
.gs-btn .icon { width: 16px; height: 16px; }
.gs-btn:hover:not(:disabled) { border-color: var(--navy); background: #F7F9FC; }
.gs-btn:disabled { opacity: .3; cursor: default; }
.gs-seats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.gs-seat { display: grid; justify-items: center; gap: 4px; width: 56px; }
.gs-seat img, .gs-seat > span { width: 46px; height: 46px; border-radius: 50%; }
.gs-seat img { background: #FFF1EC; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #F3C9BE; object-fit: contain; animation: gs-pop .22s ease-out; }
.gs-seat > span { display: grid; place-items: center; border: 1.5px dashed #B9C3CF; color: #8A93A2; font-size: 20px; font-weight: 500; background: #fff; }
.gs-seat small { font-size: 11px; color: #6B7383; white-space: nowrap; }
.gs-seat.is-on small { color: var(--navy); font-weight: 600; }
@keyframes gs-pop { from { transform: scale(.7); opacity: .4; } to { transform: none; opacity: 1; } }
.gs-summary { text-align: center; margin-top: 10px; font-size: 14.5px; color: #3B4252; }
.gs-summary strong { color: #C8101D; font-weight: 700; }
@media (max-width: 767px) { .gs-row { padding: 12px; } .gs-seat { width: 48px; } .gs-seat img, .gs-seat > span { width: 40px; height: 40px; } }

/* --- Champs : un seul contour net au focus (plus de double cadre) ----------------------- */
input:not([type=checkbox]):not([type=file]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--focus) !important; box-shadow: 0 0 0 3px rgba(30, 102, 176, .15); }
.hs-field input:focus-visible, .search-field input:focus-visible { box-shadow: none; }

/* --- Étape 5 « Présentez votre tribu » ------------------------------------------------ */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.label-row label { font-size: 14px; font-weight: 600; }
.char-count { font-size: 12px; color: #8A93A2; font-variant-numeric: tabular-nums; }
.bio-area { min-height: 112px !important; padding: 12px 14px !important; line-height: 1.55; font-size: 15px; resize: vertical; }
.field-hint { margin-top: 6px; font-size: 12.5px; color: #6B7383; }
.photo-drop { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px dashed #C4CDD8; border-radius: 12px; background: #FAFCFE; cursor: pointer;
  transition: border-color var(--t), background var(--t); }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--navy); background: #F4F8FC; }
.photo-drop > .icon { width: 26px; height: 26px; color: #4B5565; flex: none; }
.photo-drop span { display: grid; gap: 2px; }
.photo-drop strong { font-size: 14.5px; font-weight: 600; }
.photo-drop small { font-size: 12.5px; color: #6B7383; }
.photo-card { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid #E3E8EF; border-radius: 12px; }
.photo-card img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.photo-card > div { display: grid; gap: 2px; font-size: 13px; color: #6B7383; }
.photo-card strong { font-size: 14px; color: var(--navy); font-weight: 600; }
.photo-actions { display: flex; gap: 14px; margin-top: 2px; }
.photo-actions .link { min-height: 0; color: var(--navy); }
.field > label.photo-drop { display: flex; padding: 14px 16px; margin: 0; font-size: inherit; font-weight: 400; }

/* =====================================================================================
   Inscription / connexion : carte en deux colonnes (pourquoi s’inscrire + formulaire)
   ===================================================================================== */
.ap-page { display: grid; justify-items: center; padding: 8px 0 24px; }
.ap-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(1000px, 100%); background: #fff; border: 1px solid #E8ECF1;
  border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(12, 14, 29, .08); }
.ap-card-single { grid-template-columns: 1fr; width: min(480px, 100%); }
.ap-hero { position: relative; min-height: 100%; color: #fff; display: flex; align-items: flex-end; }
.ap-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.ap-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 45, .05) 0%, rgba(8, 18, 45, .35) 38%, rgba(8, 18, 45, .88) 100%); }
.ap-hero-body { position: relative; z-index: 1; padding: 28px 30px 26px; display: grid; gap: 14px; }
.ap-kicker { justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
.ap-hero-title { font-family: var(--font-title); font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -.025em; }
.ap-hero-title span { color: #FF8A8F; }
.ap-benefits { display: grid; gap: 12px; }
.ap-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .82); line-height: 1.4; }
.ap-benefits strong { display: block; font-size: 14.5px; font-weight: 600; color: #fff; }
.ap-benefits .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #fff; flex: none; stroke-width: 1.8; }
.ap-trust { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .8); border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; }
.ap-trust .icon { width: 16px; height: 16px; color: #8EE3B0; }

.ap-panel { padding: 34px 40px 30px; display: grid; align-content: start; gap: 4px; }
.ap-in-modal { padding: 4px 30px 26px; }
.ap-head { text-align: left; margin-bottom: 14px; }
.ap-title { font-family: var(--font-title); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; outline: none; }
.ap-sub { font-size: 14.5px; color: #4B5565; margin-top: 6px; line-height: 1.5; }
.ap-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #F1F4F8; margin-bottom: 18px; }
.ap-tab { min-height: 38px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; color: #4B5565; cursor: pointer; }
.ap-tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(12, 14, 29, .12); }
.ap-form { display: grid; gap: 0; }
.ap-form .field { margin-bottom: 14px; }
.ap-form .field-row { gap: 12px; }
.ap-form input:not([type=checkbox]) { min-height: 44px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 4px; top: 0; bottom: 0; margin: auto 0; width: 38px; height: 38px; border: 0; background: none; border-radius: 8px; color: #5B6577; display: grid; place-items: center; cursor: pointer; }
.pw-toggle:hover { background: #F2F6FB; color: var(--navy); }
.pw-toggle .icon { width: 18px; height: 18px; }
.pw-meter { height: 4px; border-radius: 4px; background: #EEF1F5; margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width var(--t), background var(--t); }
.pw-meter[data-level="weak"] span { width: 33%; background: #E5484D; }
.pw-meter[data-level="ok"] span { width: 66%; background: #F5A524; }
.pw-meter[data-level="strong"] span { width: 100%; background: #1F8A4C; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: #6B7383; }
.pw-rules li { display: inline-flex; align-items: center; gap: 5px; }
.pw-rules .icon { width: 13px; height: 13px; stroke-width: 3; color: #C4CAD3; }
.pw-rules li.ok { color: #1F6B3A; }
.pw-rules li.ok .icon { color: #1F8A4C; }
.ap-terms { font-size: 13px; font-weight: 400; color: #3B4252; min-height: 0; padding-top: 0; margin: 2px 0 10px; align-items: flex-start; gap: 10px; }
.ap-terms input { width: 18px; height: 18px; margin-top: 1px; }
.ap-terms a { color: var(--navy); }
.ap-submit { min-height: 48px; font-size: 15.5px; margin-top: 4px; }
.ap-private { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12.5px; color: #6B7383; line-height: 1.45; }
.ap-private .icon { width: 16px; height: 16px; color: #1F8A4C; flex: none; margin-top: 1px; }
.ap-row { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
.ap-row .link, .ap-back { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #B9C2CF; }
.ap-back { margin-top: 14px; justify-self: center; display: inline-flex; gap: 6px; }
.ap-back .icon { width: 16px; height: 16px; }
.ap-sent { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 10px 0; }
.ap-sent-ic { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: #FDECEC; color: var(--accent); }
.ap-sent .btn { margin-top: 4px; }
.ap-help { font-size: 13px; color: #6B7383; }
.ap-help .link { min-height: 0; color: var(--navy); }
.modal:has(.ap-in-modal) { width: min(480px, calc(100% - 32px)); }
@media (max-width: 860px) {
  .ap-card { grid-template-columns: 1fr; }
  .ap-hero { min-height: 260px; }
  .ap-hero-body { padding: 20px; }
  .ap-benefits li:nth-child(3) { display: none; }
}
@media (max-width: 767px) {
  .ap-page { padding: 0; }
  .ap-card { border-radius: 16px; }
  .ap-hero { min-height: 220px; }
  .ap-hero-title { font-size: 22px; }
  .ap-benefits li { font-size: 12.5px; }
  .ap-panel { padding: 24px 18px 22px; }
  .ap-in-modal { padding: 4px 16px 20px; }
  .ap-form .field-row { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 767px) {
  .ap-hero { min-height: 0; }
  .ap-hero-body { padding: 70px 18px 16px; gap: 10px; }
  .ap-kicker { display: none; }
  .ap-trust { font-size: 11.5px; }
}
@media (max-width: 860px) { .ap-hero::after { background: linear-gradient(180deg, rgba(8, 18, 45, .25), rgba(8, 18, 45, .9) 55%); } }

/* --- Mes tribus : en-tête aéré, état vide soigné ------------------------------------------ */
.mt-head { display: grid; gap: 8px; margin: 8px 0 28px; }
.mt-title { font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.mt-sub { font-size: 15.5px; color: #5B6577; }
.mt-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 24px 36px; background: #fff; border: 1px solid #E8ECF1; border-radius: 18px;
  box-shadow: 0 4px 22px rgba(12, 14, 29, .05); }
.mt-faces { display: flex; gap: 10px; margin-bottom: 8px; }
.mt-faces img { width: 56px; height: 56px; object-fit: contain; }
.mt-empty h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.mt-empty > p { font-size: 15px; color: #4B5565; max-width: 460px; line-height: 1.55; }
.mt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.mt-actions .btn { min-height: 44px; min-width: 170px; }
.mt-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #EEF1F5; width: min(640px, 100%);
  font-size: 13.5px; color: #4B5565; }
.mt-steps li { display: inline-flex; align-items: center; gap: 8px; }
.mt-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #FDECEC; color: var(--accent); font-size: 12px; font-weight: 700; }
@media (max-width: 767px) { .mt-empty { padding: 32px 18px 28px; } .mt-actions .btn { width: 100%; } .mt-steps { flex-direction: column; align-items: flex-start; } }
.mt-steps { width: min(760px, 100%); gap: 10px 24px; } .mt-steps li { white-space: nowrap; }
/* Listes dans la fenêtre de création : hauteur raisonnable, défilement interne fluide */
.modal .sp-panel, .wz-nice .ns-panel { max-height: 232px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding: 6px; }
.modal .sp-panel { margin-bottom: 4px; }

/* =====================================================================================
   Profil — « Les belles rencontres commencent par vous »
   ===================================================================================== */
.page:has(> .pf) { max-width: 1183px; padding-top: 0; }
.pf { position: relative; }
.pf-banner { width: 100vw; margin-left: calc(50% - 50vw); height: 124px; overflow: hidden; }
.pf-banner img { width: 100%; height: 124px; object-fit: cover; object-position: 60% 50%; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.pf-crumbs { display: flex; align-items: center; gap: 8px; margin: -8px 0 0 34px; font-size: 13px; color: #5B6577; position: relative; }
.pf-crumbs a { color: #3B4252; text-decoration: none; display: inline-flex; }
.pf-crumbs a:hover { text-decoration: underline; }
.pf-crumbs .icon { width: 15px; height: 15px; }
.pf-crumbs > .icon { width: 12px; height: 12px; color: #8A93A2; }
.pf-crumbs strong { color: var(--accent); font-weight: 600; }
.pf-head { text-align: center; margin: 14px 0 30px; }
.pf-head h1 { font-size: clamp(26px, 2.9vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.pf-swoosh { position: relative; white-space: nowrap; }
.pf-swoosh::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C30 2 70 1 98 7' fill='none' stroke='%23E70C1D' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.pf-head p { margin-top: 12px; font-size: 16px; color: #4B5565; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-card { background: #fff; border: 1px solid #E8ECF1; border-radius: 18px; box-shadow: 0 4px 22px rgba(12, 14, 29, .05); padding: 26px 30px 22px; }
.pf-card > h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.pf-photo { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.pf-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; background: #E9F0F8; border: 3px solid #fff; box-shadow: 0 0 0 1px #DCE4EE;
  display: grid; place-items: center; cursor: pointer; flex: none; }
.pf-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-avatar > span:first-child, .pf-preview-face > span { font-family: var(--font-title); font-weight: 700; font-size: 32px; color: var(--navy); }
.pf-cam { position: absolute; right: -6px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #DCE4EE; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(12, 14, 29, .12); color: var(--navy); }
.pf-cam .icon { width: 16px; height: 16px; }
.pf-avatar:hover .pf-cam, .pf-avatar:focus-within .pf-cam { border-color: var(--navy); }
.pf-avatar:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.pf-photo-text { display: grid; gap: 2px; padding-left: 22px; border-left: 1px solid #E8ECF1; font-size: 13px; color: #6B7383; }
.pf-photo-text strong { font-size: 14.5px; color: var(--navy); font-weight: 600; }
.pf-photo-text .link { justify-self: start; min-height: 0; margin-top: 2px; color: var(--accent); }
.pf-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pf-label label { margin: 0 !important; font-size: 14px; font-weight: 600; }
.pf-private { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #EEF3FA; font-size: 11.5px; font-weight: 600; color: #3B4252; }
.pf-private .icon { width: 11px; height: 11px; stroke-width: 2.4; }
.pf-sub { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 10px; }
.pf-levels .field { margin-bottom: 6px; }
.pf-nice { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid #D3DAE3; border-radius: 10px; background: #fff; }
.pf-nice:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(30, 102, 176, .15); }
.pf-nice .ns { position: static; }
.pf-nice .ns-value { font-size: 15px; }
.pf-nice .ns-panel { left: -1px; right: -1px; top: calc(100% + 6px); width: auto; min-width: 0; max-width: none; }
.pf-hint { margin: 2px 0 16px; }
.pf-card textarea { min-height: 88px; }
.pf-save { min-height: 48px; font-size: 15.5px; margin-top: 4px; }
.pf-settings { text-align: center; margin-top: 12px; font-size: 13.5px; }
.pf-settings a { color: var(--accent); }
.pf-side { display: grid; gap: 20px; }
.pf-preview { background: #fff; border: 1px solid #E8ECF1; border-radius: 18px; box-shadow: 0 4px 22px rgba(12, 14, 29, .05); padding: 22px; }
.pf-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pf-preview-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.pf-preview-head span { font-size: 12px; font-weight: 600; color: #2A3B57; background: #E6EFFA; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pf-preview-card { background: #F4F8FC; border-radius: 14px; padding: 18px; }
.pf-preview-top { display: flex; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #E3EAF2; }
.pf-preview-face { width: 72px; height: 72px; border-radius: 50%; background: #E9F0F8; border: 3px solid #fff; box-shadow: 0 0 0 1px #DCE4EE; display: grid; place-items: center; overflow: hidden; flex: none; }
.pf-preview-face img { width: 100%; height: 100%; object-fit: cover; }
.pf-preview-face > span { font-size: 28px; }
.pf-preview-top strong { font-family: var(--font-title); font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.pf-chips { display: grid; gap: 6px; margin-top: 6px; justify-items: start; }
.pf-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #E3EAF2; font-size: 12.5px; font-weight: 500; }
.pf-chips .icon { width: 14px; height: 14px; color: #2F6FD0; }
.pf-chip-empty { color: #6B7383; }
.pf-preview-bio { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #2A3142; white-space: pre-line; overflow-wrap: anywhere; }
.pf-preview-bio.is-empty { color: #6B7383; font-style: italic; }
.pf-trust { background: #E8F1FC; border-radius: 18px; padding: 22px 24px; }
.pf-trust h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 14px; }
.pf-trust ul { display: grid; gap: 12px; }
.pf-trust li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #1F2A44; }
.pf-trust .icon { width: 24px; height: 24px; color: var(--accent); stroke-width: 1.8; flex: none; }
.pf-minors { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 6px; font-size: 13px; color: #5B6577; text-align: center; }
.pf-minors .icon { width: 16px; height: 16px; }
@media (max-width: 960px) { .pf-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .page:has(> .pf) { padding: 0 16px 104px; }
  .pf-banner, .pf-banner img { height: 90px; }
  .pf-crumbs { margin-left: 0; }
  .pf-card { padding: 20px 16px; }
  .pf-photo { gap: 14px; }
  .pf-photo-text { padding-left: 14px; }
  .pf-card .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Menus d’heure : toute la case ouvre la liste (plus besoin de viser l’horloge) */
.ts { position: relative; display: flex; align-items: center; gap: 8px; min-width: 112px; min-height: 44px; padding: 0 10px; border: 1px solid #CBD3DD; border-radius: 10px; background: #fff; cursor: pointer; }
.ts > .icon { width: 16px; height: 16px; color: #5B6577; flex: none; pointer-events: none; }
.ts .ns { position: static; flex: 1; }
.ts .ns-toggle { min-height: 42px; }
.ts .ns-toggle::before { content: ""; position: absolute; inset: 0; } /* zone cliquable = toute la case */
.ts .ns-value { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ts .ns-panel { left: -1px; right: auto; min-width: calc(100% + 2px); width: max-content; top: calc(100% + 6px); max-height: 220px; z-index: 60; }
.ts:hover { border-color: #9AA6B5; }
.ts:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(30, 102, 176, .15); }
.time-pair { display: inline-flex; align-items: center; gap: 8px; }
.time-line { flex-wrap: wrap; }
.time-line .link-small { margin-left: auto; }
.session-list.editable .ts { min-width: 104px; }
/* Âge visible (profil public) */
.tp-age, .req-age, .mini-age { margin-left: 8px; font-family: var(--font); font-size: .78em; font-weight: 500; color: #5B6577; letter-spacing: 0; }
.pf-age { margin-left: 8px; font-size: 14px; font-weight: 500; color: #5B6577; }
.pf-birth .field { max-width: 260px; }
.pf-birth .field-hint { display: flex; align-items: center; gap: 6px; }
.pf-birth .field-hint .icon { width: 12px; height: 12px; }
.req-bio { font-size: 13px; color: #4B5565; font-style: italic; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req-profile { justify-self: start; font-size: 13px; min-height: 0; padding: 0; }

/* --- Compte à rebours : fin des inscriptions (page tribu) ------------------------------- */
.cd { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid #F5D0D3; border-radius: 12px; background: #FFF7F7; color: #0B1220; }
.cd > svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #D62F2F; }
.cd > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; font-size: 14px; }
.cd-label { color: #4B5565; }
.cd-time { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; }
.cd-seg { font-size: 13px; color: #4B5565; }
.cd-seg b { font-size: 16px; font-weight: 600; color: #D62F2F; margin-right: 1px; }
.cd small { flex-basis: 100%; font-size: 12.5px; color: #6B7280; }
.cd.is-over { border-color: #E5E7EB; background: #F7F8FA; }
.cd.is-over > svg { color: #6B7280; }
.cd.is-over strong { font-weight: 600; }
.cd.is-over span { flex-basis: 100%; font-size: 12.5px; color: #6B7280; }

/* Création : jour et heure de fin des inscriptions */
.deadline-field { margin-top: 18px; }
.deadline-field .field-hint { margin: 2px 0 10px; }
.deadline-line { align-items: center; gap: 10px; flex-wrap: wrap; }
.deadline-day { flex: 0 1 220px; }

/* Cours souhaités (page de gestion) : dates et horaires en deux colonnes alignées */
.slot-rows { grid-template-columns: max-content max-content; column-gap: 28px; row-gap: 8px; font-variant-numeric: tabular-nums; }
.slot-rows li { display: contents; }
@media (max-width: 420px) { .slot-rows { column-gap: 14px; } }

/* Page tribu : demande envoyée (tick aligné sur le titre, actions sur une ligne) */
.req-sent { width: 100%; padding: 16px 18px; border: 1px solid #CFE8D8; border-radius: 14px; background: #F4FBF6; text-align: left; }
.req-sent-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: #0B1220; }
.req-sent-head strong { font-weight: 600; line-height: 22px; }
.req-sent-tick { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #2E9E5B; color: #fff; stroke-width: 3; }
.req-sent-text { margin: 6px 0 0 32px; font-size: 13.5px; line-height: 1.5; color: #4B5565; }
.req-sent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0 32px; }
.req-sent-actions .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600; border: 1px solid #CBD3DD; border-radius: 10px; background: #fff; color: #0B1220; }
.req-sent-actions .btn .icon { width: 15px; height: 15px; }
.req-sent-withdraw { padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: #6B7280; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.req-sent-withdraw:hover { color: #D62F2F; }

/* --- Numéro de mobile : indicatif + numéro ------------------------------------------- */
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-row input[type="tel"] { flex: 1; min-width: 0; }
.phone-cc { position: relative; flex: none; display: flex; align-items: center; width: 124px; min-height: 44px; padding: 0 10px 0 12px; border: 1px solid #CBD3DD; border-radius: 10px; background: #fff; cursor: pointer; }
.phone-cc:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 23, 42, .08); }
.phone-cc .ns { width: 100%; position: static; }
.phone-cc .ns-toggle { font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-cc .ns-value { overflow: visible; text-overflow: clip; }
.phone-cc .ns-toggle::before { content: ""; position: absolute; inset: 0; }
.phone-cc .ns-panel { left: 0; top: calc(100% + 6px); min-width: 280px; }
.phone-cc .ns-option { display: flex; align-items: baseline; gap: 10px; }
.phone-cc .ns-option span { flex: none; width: 74px; font-variant-numeric: tabular-nums; }
.phone-cc .ns-option small { font-size: 13.5px; color: #374151; }
.phone-field .field-hint { display: flex; align-items: center; gap: 6px; }
.phone-field .field-hint .icon { width: 12px; height: 12px; }
.pf-private-row { align-items: start; }
.pf-private-row .pf-birth .field { max-width: none; }

/* --- Accusés de messages façon WhatsApp ------------------------------------------------ */
.msg-foot { display: flex; justify-content: flex-end; margin: 2px -4px -4px 0; line-height: 0; }
.ticks { display: inline-flex; flex: none; color: #8696A0; }
.ticks.is-read { color: #34B7F1; }
.ticks svg { display: block; }
.conv-last .ticks { margin-right: 4px; vertical-align: -1px; }

/* Accueil : cartes de même hauteur, trait, avatars et bouton alignés d'une carte à l'autre */
.h-cards { align-items: stretch; }
.hcard { display: flex; flex-direction: column; }
.hcard-head { flex: 1 0 auto; align-items: flex-start; }
.hcard-head > :first-child { flex: none; }
.face-more { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #EEF2F7; border: 2px solid #fff; box-shadow: 0 0 0 1px #E2E8F0; color: #374151; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-tribe .face-more { font-size: 2.6cqw; }
.hcard-facts li { align-items: flex-start; }
.hcard-facts li .icon { margin-top: 4px; flex: none; }

/* --- Mes tribus (maquette « J’organise / Je participe ») ------------------------------- */
.mt2-head { margin: 8px 0 18px; }
.mt2-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.mt2-title h1 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mt2-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: #E3EDFA; color: #1E3A6E; font-size: 13.5px; font-weight: 600; }
.mt2-head > p { margin-top: 6px; font-size: 15.5px; color: #5B6577; }
.mt2-tabs { display: flex; gap: 6px; margin: 4px 0 22px; border-bottom: 1px solid #DCE3EC; }
.mt2-tabs button { position: relative; padding: 10px 14px 12px; border: 0; background: none; font: inherit; font-size: 15.5px; color: #374151; cursor: pointer; }
.mt2-tabs button.is-on { color: #D62F2F; font-weight: 600; }
.mt2-tabs button.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: #D62F2F; }
.mt2-tabs button:focus-visible { outline: 2px solid #1E3A6E; outline-offset: -2px; border-radius: 8px; }
.mt2-list { display: grid; gap: 16px; }
.mt2-h2 { margin: 26px 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }

.mt2-card { padding: 20px 22px 0; border: 1px solid #E5EAF1; border-radius: 18px; background: #fff; box-shadow: 0 4px 22px rgba(16, 40, 80, .06); }
.mt2-top { display: grid; grid-template-columns: 172px minmax(0, 1fr) 240px; gap: 22px; padding-bottom: 18px; border-bottom: 1px solid #E8EDF3; }
.mt2-photo img { display: block; width: 172px; height: 162px; border-radius: 12px; object-fit: cover; }
.mt2-main { min-width: 0; }
.mt2-main h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.mt2-main h3 a { color: #0B1220; text-decoration: none; }
.mt2-main h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mt2-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mt2-count { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: 15px; }
.mt2-count strong { font-weight: 700; color: #0B1220; }
.mt2-count span { padding-left: 12px; border-left: 1px solid #D5DCE5; color: #4B5565; font-size: 14px; }
.mt2-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.mt2-faces li { line-height: 0; }
.mt2-faces .avatar { width: 44px !important; height: 44px !important; }
.mt2-helmet, .mt2-free { width: 44px; height: 44px; object-fit: contain; }
.mt2-caption { margin-top: 6px; font-size: 13.5px; color: #374151; }
.mt2-side { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; padding-left: 22px; border-left: 1px solid #E8EDF3; }
.mt2-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #F1F4F8; font-size: 13.5px; font-weight: 600; color: #0B1220; }
.mt2-pill .icon { width: 17px; height: 17px; }
.mt2-pill.is-new { background: #FDECEC; color: #B4232A; }
.mt2-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; font-size: 15px; }
.mt2-links { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mt2-links i { width: 1px; height: 18px; background: #D5DCE5; }
.mt2-links button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: 14px; color: #0B1220; cursor: pointer; }
.mt2-links button:hover { color: #D62F2F; }
.mt2-links .icon { width: 16px; height: 16px; }

.mt2-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt2-info { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.mt2-info + .mt2-info { border-left: 1px solid #E8EDF3; }
.mt2-info > .icon { flex: none; width: 24px; height: 24px; margin-top: 1px; color: #374151; stroke-width: 1.6; }
.mt2-info div { display: grid; gap: 2px; min-width: 0; }
.mt2-info strong { font-size: 15px; font-weight: 700; color: #0B1220; line-height: 1.35; }
.mt2-info span { font-size: 13.5px; color: #5B6577; }
.mt2-slots summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; list-style: none; font-size: 13.5px; font-weight: 500; color: #1F5FBF; cursor: pointer; }
.mt2-slots summary::-webkit-details-marker { display: none; }
.mt2-slots summary .icon { width: 15px; height: 15px; transition: transform .15s; }
.mt2-slots[open] summary .icon { transform: rotate(180deg); }
.mt2-slots ul { display: grid; grid-template-columns: max-content max-content; gap: 4px 18px; margin-top: 8px; font-size: 13.5px; color: #374151; font-variant-numeric: tabular-nums; }
.mt2-slots li { display: contents; }

.mt2-banner { display: flex; align-items: center; gap: 14px; margin-top: -4px; padding: 14px 18px; border-radius: 14px; background: #EAF2FC; }
.mt2-banner > .icon { flex: none; width: 22px; height: 22px; color: #1E3A6E; }
.mt2-banner p { flex: 1; font-size: 14.5px; color: #0B1220; }
.mt2-share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1.5px solid #D62F2F; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #D62F2F; cursor: pointer; white-space: nowrap; }
.mt2-share-btn:hover { background: #FFF5F5; }
.mt2-share-btn .icon { width: 16px; height: 16px; }
.mt2-none { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border: 1px dashed #CFD8E3; border-radius: 16px; background: #fff; }
.mt2-none p { display: grid; gap: 4px; font-size: 14px; color: #5B6577; }
.mt2-none strong { font-size: 15.5px; color: #0B1220; }

@media (max-width: 960px) {
  .mt2-top { grid-template-columns: 140px minmax(0, 1fr); }
  .mt2-photo img { width: 140px; height: 132px; }
  .mt2-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 0 0; border-left: 0; border-top: 1px solid #E8EDF3; }
  .mt2-go { flex: 1 1 200px; }
  .mt2-bottom { grid-template-columns: 1fr; }
  .mt2-info + .mt2-info { border-left: 0; border-top: 1px solid #E8EDF3; }
}
@media (max-width: 560px) {
  .mt2-card { padding: 16px 16px 0; }
  .mt2-top { grid-template-columns: 1fr; gap: 14px; }
  .mt2-photo img { width: 100%; height: 150px; }
  .mt2-info { padding: 14px 0; }
  .mt2-banner { flex-wrap: wrap; }
  .mt2-none { flex-direction: column; align-items: flex-start; }
}

/* --- Couronne du chef de tribu ------------------------------------------------------- */
.has-crown { position: relative; display: inline-block; flex: none; line-height: 0; }
.crown { position: absolute; top: -5px; right: -5px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .18); transform: rotate(14deg); }
.crown svg { width: 16px; height: 16px; }
.mt2-faces .crown { top: -6px; right: -6px; width: 20px; height: 20px; }
.mt2-faces .crown svg { width: 13px; height: 13px; }
.tp-member .crown { top: -2px; right: -2px; width: 28px; height: 28px; }
.tp-member .crown svg { width: 18px; height: 18px; }
.crown-inline { display: inline-flex; line-height: 0; }
.crown-inline svg { width: 14px; height: 14px; }
.chef-badge, .tp-chef { display: inline-flex; align-items: center; gap: 5px; }
.chef-badge { min-height: 24px; padding: 0 10px; border-radius: 999px; background: #FFF6D9; color: #7A5300; font-size: 12.5px; font-weight: 600; }

/* Liste des tribus : identité du chef plus lisible */
.result-who { display: grid; gap: 2px; min-width: 0; }
.result-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.result-tribe { font-size: 14px; color: #5B6577; }
.result-who .member-mini { margin-top: 8px; }
.tp-chef { background: #FFF6D9; color: #7A5300; }

/* Animation : les images gardent leurs proportions (aucune règle de photo ne doit les recadrer) */
.slope img { aspect-ratio: auto; max-width: none; }
.chair-seat img { height: auto; object-fit: contain; border-radius: 0; }
.sk-face img { aspect-ratio: 1; border-radius: 50%; }
/* « Exemple de démonstration » en bas à gauche : il ne cache plus le télésiège ni la place libre */
.tp-photo { display: flex; flex-direction: column; }
.tp-photo .tp-demo { position: static; order: 2; align-self: flex-end; height: auto; margin-top: 6px; padding: 0; background: none; box-shadow: none; font-size: 12px; font-weight: 500; color: #6B7280; }

/* Animation sur petit écran (piste de moins de 520 px) : visages, drapeau et télésiège à l’échelle des textes */
@container (max-width: 520px) {
  .slope:not(.slope-hero) .sk-face { width: 8.6cqw; height: 8.6cqw; }
  .slope:not(.slope-hero) .sk-flag { top: -5.4cqw; left: 58%; font-size: 8.5px; padding: 1px 5px 1px 6px; }
  .slope:not(.slope-hero) .sk-flag::before { height: 8cqw; }
  .slope:not(.slope-hero) .sk-name { font-size: 9px; padding: 0 5px; }
  .slope:not(.slope-hero) .chair-hanger { height: 4.6cqw; }
  .slope:not(.slope-hero) .chair-seat { width: 10.4cqw; height: 1.6cqw; margin-left: -5.2cqw; }
  .slope:not(.slope-hero) .chair-seat::before { left: .5cqw; bottom: 1.3cqw; width: .8cqw; height: 4.2cqw; }
  .slope:not(.slope-hero) .chair-seat img { left: 2cqw; bottom: 1.2cqw; width: 7cqw; }
  .slope:not(.slope-hero) .chair-seat em { left: 9cqw; bottom: 4.6cqw; font-size: 9.5px; padding: 1px 6px; }
}
.h-pill { left: 3%; right: auto; }

/* --- Enfants inscrits par un parent (prénom + âge) ------------------------------------- */
.kid-field { border: 0; padding: 0; margin: 14px 0 0; }
.kid-field legend { font-weight: 600; font-size: 14px; color: var(--navy, #0b2545); margin-bottom: 2px; }
.kid-field .field-hint { margin: 0 0 8px; }
.kid-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kid-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 32px; gap: 8px; align-items: center; }
.kid-row .kid-name input { width: 100%; }
.kid-age { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid #CBD3DD; border-radius: 10px; background: #fff; }
.kid-age:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(30, 102, 176, .15); }
.kid-age .ns { position: static; width: 100%; }
.kid-age .ns-toggle { width: 100%; min-height: 42px; }
.kid-age .ns-toggle::before { content: ""; position: absolute; inset: 0; }
.kid-age .ns-value { font-size: 15px; }
.kid-age .ns-panel { left: -1px; right: -1px; top: calc(100% + 6px); width: auto; min-width: 0; max-width: none; max-height: 232px; overflow-y: auto; z-index: 30; }
.kid-row .kid-name { margin: 0; }
.kid-remove { width: 32px; height: 32px; }
.kid-field + .field, .join-counter + .field { margin-top: 18px; }
.kid-add { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.kid-add svg { width: 14px; height: 14px; }
.tp-kids { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #5b6676; margin-top: 2px; }
.tp-kids svg { width: 13px; height: 13px; flex: none; }
.kid-line strong { font-weight: 600; }
.levels-group { font-size: 20px; font-weight: 700; margin: 28px 0 10px; scroll-margin-top: 80px; }
@media (max-width: 520px) { .kid-row { grid-template-columns: minmax(0, 1fr) 96px 32px; } }

/* Avantages de l'accueil : titre + phrase courte (cours particulier partagé) */
.h-benefits { align-items: stretch; }
.h-benefits li { justify-content: flex-start; padding: 2px 22px; }
.h-benefits li > span { display: flex; flex-direction: column; gap: 2px; font-weight: 400; font-size: 14px; color: #5b6676; line-height: 1.35; }
.h-benefits li > span strong { font-family: var(--font-title); font-weight: 700; font-size: 16px; color: var(--navy, #0b2545); letter-spacing: -.01em; }
.h-benefits .icon { flex: none; }
@media (min-width: 900px) { .h-benefits { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) { .h-benefits li { padding: 6px 4px; } }
.age-range-field { margin-top: 14px; }
.age-range { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.age-range .kid-age { width: 112px; }
.age-range-field .small-strong { font-size: 14px; font-weight: 600; color: var(--navy, #0b2545); }

/* --- Partage d'une tribu (réseaux sociaux) ------------------------------------------------ */
.sh-preview { margin: 14px 0 0; }
.sh-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 12px; border: 1px solid #E3E8EF; background: #EEF6FE; }
.sh-preview figcaption { margin-top: 6px; font-size: 12px; color: #6B7686; }
.sh-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sh-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border: 0; background: none; border-radius: 10px;
  font: 500 12px/1.2 var(--font); color: var(--navy, #0b2545); cursor: pointer; }
.sh-btn:hover { background: #F2F6FB; }
.sh-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sh-btn > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sh-btn > span svg { width: 22px; height: 22px; }
.sh-whatsapp > span { background: #25D366; }
.sh-facebook > span { background: #1877F2; }
.sh-instagram > span { background: radial-gradient(circle at 30% 110%, #FDCB52 0 20%, #FD5949 45%, #D6249F 65%, #285AEB 100%); }
.sh-x > span { background: #111; }
.sh-mail > span, .sh-copy > span { background: #EEF2F7; color: var(--navy, #0b2545); }
.sh-mail > span .icon, .sh-copy > span .icon { width: 20px; height: 20px; }
.sh-link { display: flex; gap: 8px; margin-top: 14px; }
.sh-link input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #CBD3DD; border-radius: 10px; font-size: 14px; color: #3d4757; background: #F8FAFC; }
.sh-files { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #F4F7FB; }
.sh-files strong { font-size: 14px; font-weight: 600; }
.sh-file-btns { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 4px; }
.sh-file-btns .link { display: inline-flex; align-items: center; gap: 6px; }
.sh-file-btns .icon { width: 16px; height: 16px; }
.sh-files .field-hint { margin: 2px 0 0; }
.sh-dev { margin-top: 12px; font-size: 12px; color: #8A6D1F; background: #FFF8E6; border-radius: 8px; padding: 8px 10px; }
@media (max-width: 520px) { .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; } }
.tp-status.is-ended { background: #EEF1F5; color: #4B5565; }

/* --- Numéros de mobile entre le chef et ses membres acceptés --------------------------------- */
.g-contacts { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #E3E8EF; border-radius: 12px; background: #fff; }
.g-contacts h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.g-contacts h2 .icon { width: 18px; height: 18px; }
.gc-list { list-style: none; margin: 0; padding: 0; }
.gc-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #EEF1F5; }
.gc-list li:first-child { border-top: 0; }
.gc-who { display: flex; flex-direction: column; }
.gc-who strong { font-weight: 600; }
.gc-num { font-variant-numeric: tabular-nums; color: var(--navy, #0b2545); text-decoration: none; font-weight: 500; }
.gc-actions { display: flex; gap: 6px; }
.g-contacts > p { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; }
.g-contacts > p .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }
@media (max-width: 600px) {
  .gc-list li { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .gc-num { grid-column: 2; }
  .gc-actions { grid-column: 1 / -1; }
  .gc-actions .btn { flex: 1; }
}

/* « 100 % gratuit » sous les boutons de l'accueil */
.h-free { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; padding: 0; font-size: 14px; color: #4B5565; }
.h-free li { display: inline-flex; align-items: center; gap: 5px; }
.h-free li:first-child strong { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #E8F6EE; color: #146C43; font-weight: 700; font-size: 14px; }
.h-free .icon { width: 15px; height: 15px; color: #1E8A5A; }
.h-free { gap: 8px 14px; margin-top: 18px; font-size: 14px; }
.h-free li:first-child strong { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 15px; letter-spacing: -.005em; }
.h-free li:first-child .icon { color: #146C43; width: 16px; height: 16px; stroke-width: 2.4; }

/* --- Logo officiel (image) --------------------------------------------------------------- */
.brand-logo { display: inline-flex; align-items: center; }
.brand-img { display: block; height: 50px; width: auto; }
.modal-top .brand-img { height: 30px; }
.brand-footer .brand-img { height: 40px; }
@media (max-width: 767px) { .brand-img { height: 40px; } .modal-top .brand-img { height: 26px; } .brand-footer .brand-img { height: 36px; } }
.site-header .brand-img { height: 44px; }
@media (max-width: 767px) { .site-header .brand-img { height: 38px; } }

/* --- Aucune tribu trouvée : scène animée « lancez votre tribu » --------------------------------- */
.empty-fun { text-align: center; padding: 28px 24px 26px; overflow: hidden; }
.ef-scene { position: relative; width: 100%; max-width: 540px; aspect-ratio: 520 / 230; margin: 0 auto 6px; }
.ef-bg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; background: linear-gradient(#EAF4FE, #F7FBFF); }
.ef-l { stroke-dashoffset: 0; opacity: 0; animation: ef-dash 1.2s linear infinite; }
@keyframes ef-dash { to { stroke-dashoffset: -22; } }
.ef-you, .ef-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ef-you { left: 50%; top: 65%; z-index: 3; animation: ef-bob 2.4s ease-in-out infinite; }
.ef-you img { width: 13.5cqw; max-width: 66px; height: auto; filter: drop-shadow(0 4px 8px rgba(11,37,69,.18)); }
.ef-scene { container-type: inline-size; }
.ef-crown { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); color: #F2B705; }
.ef-crown svg { width: 4.4cqw; max-width: 22px; height: auto; }
.ef-label, .ef-name { font: 700 clamp(10px, 2.5cqw, 13px)/1.2 var(--font); color: var(--navy, #0b2545); background: #fff; padding: 2px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(11,37,69,.12); white-space: nowrap; }
@keyframes ef-bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -56%); } }
.ef-ring { position: absolute; left: 50%; top: 62%; width: 14cqw; height: 14cqw; border-radius: 50%; border: 2px solid rgba(225,37,27,.45);
  transform: translate(-50%, -50%) scale(.6); opacity: 0; animation: ef-ring 10s ease-out infinite; z-index: 1; }
.ef-ring2 { animation-delay: .5s; }
@keyframes ef-ring { 0%, 8% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 10% { opacity: .9; } 22% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } 100% { opacity: 0; } }
.ef-share { position: absolute; left: 50%; top: 31%; transform: translate(-50%, -50%) scale(.6); opacity: 0; z-index: 4; display: inline-flex; align-items: center; gap: 5px;
  font: 700 clamp(10px, 2.5cqw, 13px)/1 var(--font); color: #fff; background: var(--brand, #E1251B); padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(225,37,27,.3);
  animation: ef-share 10s ease-out infinite; }
.ef-share svg { width: 14px; height: 14px; }
@keyframes ef-share { 0%, 8% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 14%, 26% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 32%, 100% { opacity: 0; transform: translate(-50%, -80%) scale(.9); } }
.ef-seat { z-index: 2; }
.ef-seat img { width: 11cqw; max-width: 56px; height: auto; display: block; }
.ef-friend { position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(0); opacity: 0; }
.ef-name { position: relative; }
.ef-name i, .ef-name b { font-style: normal; font-weight: 600; }
.ef-name b { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; color: #146C43; }
.ef-done { position: absolute; left: 50%; top: 12%; transform: translate(-50%, -50%) scale(.5); opacity: 0; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
  font: 800 clamp(11px, 3cqw, 15px)/1 var(--font-title, var(--font)); color: #146C43; background: #E8F6EE; border: 1px solid #BFE5CF; padding: 7px 12px; border-radius: 999px;
  animation: ef-done 10s ease-out infinite; }
.ef-done svg { width: 15px; height: 15px; stroke-width: 2.6; }
@keyframes ef-done { 0%, 66% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 73%, 90% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 95%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
.ef-flake { position: absolute; top: -8%; color: #fff; text-shadow: 0 0 2px rgba(31,111,208,.35); font-size: clamp(10px, 2.8cqw, 15px); opacity: 0; animation: ef-flake 10s linear infinite; z-index: 1; }
.ef-flake.f1 { left: 12%; } .ef-flake.f2 { left: 38%; animation-delay: .4s; } .ef-flake.f3 { left: 62%; animation-delay: .8s; } .ef-flake.f4 { left: 88%; animation-delay: .2s; }
@keyframes ef-flake { 0%, 68% { opacity: 0; transform: translateY(0) rotate(0); } 72% { opacity: 1; } 94% { opacity: 1; transform: translateY(190px) rotate(160deg); } 100% { opacity: 0; transform: translateY(210px); } }
.empty-fun h2 { font: 800 22px/1.25 var(--font-title, var(--font)); letter-spacing: -.02em; margin: 14px 0 6px; }
.ef-text { max-width: 560px; margin: 0 auto; color: #5B6676; font-size: 15px; line-height: 1.5; }
.ef-steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 16px 0 18px; font-size: 14px; font-weight: 600; color: var(--navy, #0b2545); }
.ef-steps li { display: inline-flex; align-items: center; gap: 8px; }
.ef-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #FDECEB; color: var(--brand, #E1251B); font-size: 12px; font-weight: 800; }
.empty-fun .actions .btn-primary svg { width: 16px; height: 16px; margin-right: 4px; }
.ef-free-note { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: #146C43; }
.ef-free-note svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .empty-fun { padding: 18px 14px 20px; } .empty-fun h2 { font-size: 19px; } .ef-steps { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; } }

.ef-a { left: 17.7%; top: 57%; }
.ef-la { animation: ef-dash 1.2s linear infinite, ef-line-a 10s linear infinite; }
@keyframes ef-line-a { 0%, 18% { opacity: 0; } 20%, 24% { opacity: .9; } 27%, 100% { opacity: 0; } }
.ef-a .ef-friend { animation: ef-friend-a 10s ease-out infinite; filter: hue-rotate(0deg); }
@keyframes ef-friend-a { 0%, 24% { opacity: 0; transform: translateX(-50%) scale(0); } 27% { opacity: 1; transform: translateX(-50%) scale(1.18); } 29%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 97%, 100% { opacity: 0; transform: translateX(-50%) scale(.8); } }
.ef-a .ef-free { animation: ef-free-a 10s ease-out infinite; }
@keyframes ef-free-a { 0%, 24% { opacity: 1; } 27%, 94% { opacity: 0; } 99%, 100% { opacity: 1; } }
.ef-a .ef-name i { animation: ef-free-a 10s ease-out infinite; }
.ef-a .ef-name b { animation: ef-nm-a 10s ease-out infinite; }
@keyframes ef-nm-a { 0%, 24% { opacity: 0; } 27%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }

.ef-b { left: 33.8%; top: 27%; }
.ef-lb { animation: ef-dash 1.2s linear infinite, ef-line-b 10s linear infinite; }
@keyframes ef-line-b { 0%, 30% { opacity: 0; } 32%, 36% { opacity: .9; } 39%, 100% { opacity: 0; } }
.ef-b .ef-friend { animation: ef-friend-b 10s ease-out infinite; filter: hue-rotate(140deg); }
@keyframes ef-friend-b { 0%, 36% { opacity: 0; transform: translateX(-50%) scale(0); } 39% { opacity: 1; transform: translateX(-50%) scale(1.18); } 41%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 97%, 100% { opacity: 0; transform: translateX(-50%) scale(.8); } }
.ef-b .ef-free { animation: ef-free-b 10s ease-out infinite; }
@keyframes ef-free-b { 0%, 36% { opacity: 1; } 39%, 94% { opacity: 0; } 99%, 100% { opacity: 1; } }
.ef-b .ef-name i { animation: ef-free-b 10s ease-out infinite; }
.ef-b .ef-name b { animation: ef-nm-b 10s ease-out infinite; }
@keyframes ef-nm-b { 0%, 36% { opacity: 0; } 39%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }

.ef-c { left: 66.2%; top: 27%; }
.ef-lc { animation: ef-dash 1.2s linear infinite, ef-line-c 10s linear infinite; }
@keyframes ef-line-c { 0%, 42% { opacity: 0; } 44%, 48% { opacity: .9; } 51%, 100% { opacity: 0; } }
.ef-c .ef-friend { animation: ef-friend-c 10s ease-out infinite; filter: hue-rotate(250deg); }
@keyframes ef-friend-c { 0%, 48% { opacity: 0; transform: translateX(-50%) scale(0); } 51% { opacity: 1; transform: translateX(-50%) scale(1.18); } 53%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 97%, 100% { opacity: 0; transform: translateX(-50%) scale(.8); } }
.ef-c .ef-free { animation: ef-free-c 10s ease-out infinite; }
@keyframes ef-free-c { 0%, 48% { opacity: 1; } 51%, 94% { opacity: 0; } 99%, 100% { opacity: 1; } }
.ef-c .ef-name i { animation: ef-free-c 10s ease-out infinite; }
.ef-c .ef-name b { animation: ef-nm-c 10s ease-out infinite; }
@keyframes ef-nm-c { 0%, 48% { opacity: 0; } 51%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }

.ef-d { left: 82.3%; top: 57%; }
.ef-ld { animation: ef-dash 1.2s linear infinite, ef-line-d 10s linear infinite; }
@keyframes ef-line-d { 0%, 54% { opacity: 0; } 56%, 60% { opacity: .9; } 63%, 100% { opacity: 0; } }
.ef-d .ef-friend { animation: ef-friend-d 10s ease-out infinite; filter: hue-rotate(40deg); }
@keyframes ef-friend-d { 0%, 60% { opacity: 0; transform: translateX(-50%) scale(0); } 63% { opacity: 1; transform: translateX(-50%) scale(1.18); } 65%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 97%, 100% { opacity: 0; transform: translateX(-50%) scale(.8); } }
.ef-d .ef-free { animation: ef-free-d 10s ease-out infinite; }
@keyframes ef-free-d { 0%, 60% { opacity: 1; } 63%, 94% { opacity: 0; } 99%, 100% { opacity: 1; } }
.ef-d .ef-name i { animation: ef-free-d 10s ease-out infinite; }
.ef-d .ef-name b { animation: ef-nm-d 10s ease-out infinite; }
@keyframes ef-nm-d { 0%, 60% { opacity: 0; } 63%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .empty-fun *, .empty-fun *::before { animation: none !important; }
  .ef-friend, .ef-name b, .ef-done { opacity: 1 !important; }
  .ef-friend { transform: translateX(-50%) scale(1) !important; }
  .ef-done { transform: translate(-50%, -50%) !important; }
  .ef-free, .ef-name i, .ef-share, .ef-ring, .ef-flake, .ef-l { opacity: 0 !important; }
}
.ef-b, .ef-c { top: 33%; }
.ef-done { top: 9%; }
.ef-share { top: 36%; }
.ef-share { top: 25%; }

/* --- Gestion de la tribu : barre d'actions, carte « partager », demandes (maquette) ---------------- */
.mg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding: 12px 14px 12px 18px; }
.mg-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.mg-status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.mg-status.is-green { background: #E8F6EE; color: #146C43; }
.mg-status.is-green i { background: #2E9E5B; }
.mg-status.is-amber { background: #FFF4DE; color: #8A5A00; }
.mg-status.is-amber i { background: #E3A008; }
.mg-status.is-grey { background: #EEF1F5; color: #4B5565; }
.mg-status.is-grey i { background: #8A94A6; }
.mg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mg-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid #CBD3DD; background: #fff; font-weight: 600; font-size: 14px; color: var(--navy, #0b2545); }
.mg-btn .icon { width: 17px; height: 17px; }
.mg-more { position: relative; }
.mg-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 260px; padding: 6px; background: #fff; border: 1px solid #E3E8EF; border-radius: 12px; box-shadow: 0 10px 28px rgba(11,37,69,.12); }
.mg-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: none; border-radius: 8px; font: 600 14px/1.2 var(--font); color: var(--navy, #0b2545); text-align: left; cursor: pointer; }
.mg-menu button + button { border-top: 1px solid #EEF1F5; border-radius: 0 0 8px 8px; }
.mg-menu button:hover, .mg-menu button:focus-visible { background: #F4F7FB; outline: none; }
.mg-menu button .icon { width: 18px; height: 18px; }
.mg-menu .is-danger { color: var(--brand, #E1251B); }
.mg-share { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 18px 28px 0 22px; overflow: hidden; }
.mg-illu { width: 300px; height: auto; align-self: end; display: block; }
.mg-share-text { padding: 18px 0 18px 28px; border-left: 1px solid #E3E8EF; }
.mg-share-text h2 { font: 800 26px/1.2 var(--font-title, var(--font)); letter-spacing: -.02em; margin: 0 0 8px; color: var(--navy, #0b2545); }
.mg-share-text p { margin: 0; color: #4B5565; font-size: 16px; line-height: 1.45; }
.mg-share-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 18px; }
.mg-share-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.mg-share-btn .icon { width: 20px; height: 20px; }
.mg-link { font-size: 15px; color: var(--navy, #0b2545); text-decoration: underline; text-underline-offset: 3px; }
.mg-requests { margin-top: 28px; }
.mg-h2 { display: flex; align-items: center; gap: 12px; font: 800 24px/1.2 var(--font-title, var(--font)); letter-spacing: -.02em; margin: 0 0 14px; }
.mg-count { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 999px; background: #E6ECF3; font: 700 15px/1 var(--font); color: var(--navy, #0b2545); }
.mg-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 28px; }
.mg-empty-icon { width: 76px; height: 76px; border-radius: 50%; background: #EEF3FA; display: grid; place-items: center; margin-bottom: 14px; }
.mg-empty-icon .icon { width: 34px; height: 34px; color: var(--navy, #0b2545); }
.mg-empty h3 { font: 800 22px/1.25 var(--font-title, var(--font)); letter-spacing: -.02em; margin: 0 0 8px; }
.mg-empty p { margin: 0 0 16px; color: #4B5565; font-size: 15px; }
.mg-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; background: #E8F6EE; color: #0F4F33; font-weight: 600; font-size: 14px; }
.mg-pill .icon { width: 18px; height: 18px; color: #146C43; }
.mg-foot { display: flex; align-items: center; gap: 10px; margin: 18px 0 0 6px; font-size: 14px; color: #4B5565; }
.mg-foot strong { color: var(--navy, #0b2545); }
.mg-foot .icon { width: 20px; height: 20px; color: #1F6FD0; flex: none; }
@media (max-width: 900px) {
  .mg-share { grid-template-columns: 1fr; text-align: center; gap: 4px; padding: 18px 18px 22px; }
  .mg-illu { width: 220px; margin: 0 auto; align-self: auto; }
  .mg-share-text { border-left: 0; padding: 8px 0 12px; }
  .mg-share-text h2 { font-size: 21px; }
  .mg-share-cta { padding-bottom: 0; }
  .mg-share-btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .mg-bar { padding: 12px; }
  .mg-actions { width: 100%; }
  .mg-actions > .mg-btn { flex: 1; justify-content: center; padding: 0 10px; }
  .mg-h2 { font-size: 20px; }
  .mg-empty h3 { font-size: 19px; }
}
.mg-bar + .stack { margin-top: 28px; }
.mg-menu { min-width: 300px; }
.mg-menu button { white-space: nowrap; }
@media (max-width: 600px) { .mg-menu { min-width: 0; width: max-content; max-width: calc(100vw - 32px); } .mg-menu button { white-space: normal; } }
/* Partage : vidéo animée en premier, puis les réseaux */
.sh-video { margin-top: 14px; }
.sh-video-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; font-size: 16px; font-weight: 700; }
.sh-video-btn .icon { width: 20px; height: 20px; }
.sh-video-btn:disabled { opacity: .75; cursor: progress; }
.sh-spin { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.4); border-top-color: #fff; }
.sh-video-hint { text-align: center; margin: 6px 0 0; }
.sh-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 13px; color: #6B7686; }
.sh-or::before, .sh-or::after { content: ""; flex: 1; height: 1px; background: #E3E8EF; }
.sh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; margin-top: 12px; }
.sh-messenger > span { background: radial-gradient(circle at 20% 100%, #0099FF 0, #A033FF 60%, #FF5280 90%); }
.sh-telegram > span { background: #27A7E7; }
.sh-sms > span { background: #34C759; }
@media (max-width: 520px) { .sh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sh-btn { font-size: 11px; } .sh-btn > span { width: 42px; height: 42px; } }
/* Création de compte depuis une tribu : rappel de la tribu à rejoindre */
.ap-subject { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #F2F7FD; border: 1px solid #DCE7F5; }
.aps-faces { display: flex; flex: none; }
.aps-faces > * { margin-left: -8px; box-shadow: 0 0 0 2px #fff; border-radius: 50%; }
.aps-faces > *:first-child { margin-left: 0; }
.aps-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.aps-text span { font-size: 12px; color: #6B7686; }
.aps-text strong { font-size: 15px; color: var(--navy, #0b2545); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aps-text small { font-size: 12px; color: #4B5565; }
.ap-after { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #E8F6EE; color: #0F4F33; font-size: 14px; }
.ap-after .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sh-video-label { display: inline-flex; align-items: center; gap: 8px; }

/* --- Espace d'administration ------------------------------------------------------------------- */
.ad-page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ad-head h1 { font: 800 28px/1.2 var(--font-title, var(--font)); letter-spacing: -.02em; margin: 0 0 4px; }
.ad-head p { margin: 0; }
.ad-btn, .ad-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #CBD3DD; background: #fff; font: 600 14px/1 var(--font); color: var(--navy, #0b2545); cursor: pointer; text-decoration: none; }
.ad-btn .icon { width: 16px; height: 16px; }
.ad-tabs { display: flex; gap: 4px; margin: 20px 0 18px; border-bottom: 1px solid #DCE3EC; overflow-x: auto; }
.ad-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-weight: 600; font-size: 14px; color: #4B5565; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ad-tabs a .icon { width: 16px; height: 16px; }
.ad-tabs a.is-active { color: var(--brand, #E1251B); border-bottom-color: var(--brand, #E1251B); }
.ad-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ad-kpi { background: #fff; border: 1px solid #E3E8EF; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ad-kpi span { font-size: 13px; color: #5B6676; }
.ad-kpi strong { font: 800 28px/1.1 var(--font-title, var(--font)); color: var(--navy, #0b2545); }
.ad-kpi small { font-size: 12px; color: #6B7686; }
.ad-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.ad-grid-2 { grid-template-columns: 1fr 1fr; }
.ad-card { padding: 16px 18px; }
.ad-card h2 { font: 700 16px/1.3 var(--font-title, var(--font)); margin: 0 0 12px; }
.ad-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 130px; }
.ad-bars li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ad-bars i { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 0 0; background: #F2A29C; }
.ad-bars li:last-child i { background: var(--brand, #E1251B); }
.ad-bars span { font-size: 11px; color: #8A94A6; }
.ad-list { list-style: none; margin: 0; padding: 0; }
.ad-list li { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-top: 1px solid #EEF1F5; font-size: 14px; }
.ad-list li:first-child { border-top: 0; }
.ad-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ad-pill.is-green { background: #E8F6EE; color: #146C43; }
.ad-pill.is-amber { background: #FFF4DE; color: #8A5A00; }
.ad-pill.is-red { background: #FDECEB; color: #B42318; }
.ad-pill.is-blue { background: #E8F0FB; color: #1F5FAD; }
.ad-pill.is-grey { background: #EEF1F5; color: #4B5565; }
.ad-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--navy, #0b2545); }
.ad-more .icon { width: 14px; height: 14px; }
.ad-recent { list-style: none; margin: 0; padding: 0; }
.ad-recent li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #EEF1F5; }
.ad-recent li:first-child { border-top: 0; }
.ad-recent div { display: flex; flex-direction: column; min-width: 0; }
.ad-recent strong, .ad-recent small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-recent small, .ad-table small { font-size: 12px; color: #6B7686; }
.ad-av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: #E6ECF3; color: var(--navy, #0b2545); font-weight: 700; font-size: 14px; object-fit: cover; flex: none; }
.ad-av .icon { width: 16px; height: 16px; }
.ad-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: #5B6676; }
.ad-note .icon { width: 16px; height: 16px; }
.ad-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ad-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #CBD3DD; border-radius: 10px; background: #fff; flex: 1; min-width: 220px; max-width: 360px; }
.ad-search .icon { width: 16px; height: 16px; color: #6B7686; }
.ad-search input { border: 0; outline: 0; flex: 1; font-size: 14px; background: transparent; min-width: 0; }
.ad-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-chip { height: 34px; font-size: 13px; }
.ad-chip.is-on { background: var(--navy, #0b2545); border-color: var(--navy, #0b2545); color: #fff; }
.ad-table-wrap { background: #fff; border: 1px solid #E3E8EF; border-radius: 12px; overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-table th { text-align: left; font-size: 12px; font-weight: 600; color: #6B7686; text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; background: #F8FAFC; border-bottom: 1px solid #E3E8EF; white-space: nowrap; }
.ad-table td { padding: 10px 14px; border-top: 1px solid #EEF1F5; vertical-align: middle; }
.ad-table td small { display: block; }
.ad-table tbody tr[data-user] { cursor: pointer; }
.ad-table tbody tr[data-user]:hover, .ad-table tbody tr[data-user]:focus-visible { background: #F6F9FD; outline: none; }
.ad-who { display: flex; align-items: center; gap: 10px; }
.ad-who div { display: flex; flex-direction: column; }
.ad-count { margin: 8px 2px 0; font-size: 13px; color: #6B7686; }
.ad-empty { padding: 22px; text-align: center; color: #5B6676; }
.ad-link-danger { border: 0; background: none; color: var(--brand, #E1251B); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.ad-dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; margin: 12px 0 0; font-size: 14px; }
.ad-dl dt { color: #6B7686; }
.ad-dl dd { margin: 0; color: var(--navy, #0b2545); word-break: break-word; }
.ad-mail-state { margin-bottom: 4px; }
.ad-steps { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #F4F7FB; font-size: 14px; }
.ad-steps ol { margin: 6px 0 0; padding-left: 20px; }
.ad-steps code, .ad-card code { font-size: 13px; background: #fff; border: 1px solid #E3E8EF; border-radius: 6px; padding: 1px 6px; }
.ad-mail + .ad-card { margin-top: 12px; }
.ad-user-head { display: flex; align-items: center; gap: 12px; }
.ad-user-head .ad-av { width: 48px; height: 48px; font-size: 18px; }
.ad-user-head h2 { margin: 0; }
.ad-bio { font-style: italic; color: #4B5565; margin: 12px 0 0; }
.ad-h3 { font-size: 14px; font-weight: 700; margin: 16px 0 6px; }
.ad-mini { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.ad-log { list-style: none; margin: 0; padding: 0; }
.ad-log li { display: grid; grid-template-columns: 150px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #EEF1F5; font-size: 14px; }
.ad-log li:first-child { border-top: 0; }
.btn-danger { background: var(--brand, #E1251B); border-color: var(--brand, #E1251B); color: #fff; }
@media (max-width: 1000px) { .ad-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ad-grid, .ad-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-kpi strong { font-size: 24px; }
  .ad-dl { grid-template-columns: 1fr; gap: 2px 0; } .ad-dl dd { margin-bottom: 8px; }
  .ad-log li { grid-template-columns: 1fr; gap: 2px; }
  .ad-search { max-width: none; }
}
/* Barre de recherche : la case « Station » a le même aspect que les autres (séparateur seulement),
   et le champ ne dessine plus son propre cadre au clic (le contour bleu de la case suffit). */
.hs-field:first-child { border: 0; border-right: 1px solid #E3E8EF; }
.hs-field input:focus, .hs-field select:focus, .search-field input:focus { box-shadow: none !important; outline: none !important; }
.ad-actions { white-space: nowrap; }
.ad-actions button + button { margin-left: 12px; }
.ad-link { border: 0; background: none; color: var(--navy, #0b2545); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.mt2-hide { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--brand, #E1251B); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }
.mt2-hide .icon { width: 16px; height: 16px; }
.mg-danger { color: var(--brand, #E1251B); border-color: #F2C4C0; }
.mt2-links .mt2-hide { color: var(--brand, #E1251B); }
/* Admin : formulaires de modification */
.ad-form { margin-top: 12px; }
.ad-form .field { margin-bottom: 12px; }
.ad-form input:not([type="checkbox"]), .ad-form select, .ad-form textarea { width: 100%; }
.ad-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ad-rows { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.ad-rows li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.ad-rows input { height: 40px; padding: 0 10px; border: 1px solid #CBD3DD; border-radius: 8px; font-size: 14px; }
.ad-photo-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.ad-photo { width: 160px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid #E3E8EF; }
.ad-photo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ad-form .ad-link .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 600px) { .ad-3 { grid-template-columns: 1fr; } .ad-rows li { grid-template-columns: 1fr 1fr 32px; } .ad-rows li input[type="date"] { grid-column: 1 / -1; } }
.ad-search input, .ad-search input:focus { border: 0 !important; box-shadow: none !important; outline: none !important; padding: 0 !important; min-height: 0 !important; height: 36px; background: transparent !important; }
.ad-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(30, 102, 176, .15); }
.ad-table td:nth-child(2), .ad-table td:nth-child(3) { white-space: nowrap; }

/* --- Accueil : chiffres du ski en France + ruban de stations qui défile -------------------------- */
.h-stats { position: relative; margin: 40px 0 8px; padding: 34px 28px 0; border-radius: 20px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #0B2545 0%, #133B6B 100%); color: #fff; }
.h-stats::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(ellipse at center, rgba(255,255,255,.10), transparent 70%); pointer-events: none; }
.h-stats-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9FC2EA; }
.h-stats h2 { margin: 8px auto 0; max-width: 760px; font: 800 30px/1.2 var(--font-title, var(--font)); letter-spacing: -.02em; color: #fff; }
.h-stats h2 .red { color: #FF6B5E; }
.h-stats-list { list-style: none; margin: 26px auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.h-stats-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 20px; }
.h-stats-list li + li { border-left: 1px solid rgba(255,255,255,.16); }
.hs-num { font: 800 46px/1 var(--font-title, var(--font)); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-stats-list span { max-width: 260px; font-size: 15px; line-height: 1.4; color: #C9DAEE; }
.h-stats-text { margin: 22px auto 0; max-width: 620px; font-size: 15px; color: #E3ECF7; }
.h-marquee { position: relative; margin: 26px -28px 0; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.h-marquee-track { display: flex; gap: 28px; width: max-content; animation: h-marquee 60s linear infinite; }
.h-marquee:hover .h-marquee-track { animation-play-state: paused; }
.h-marquee span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #DCE8F6; white-space: nowrap; }
.h-marquee .icon { width: 14px; height: 14px; color: #FF6B5E; }
@keyframes h-marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .h-stats { padding: 26px 16px 0; border-radius: 16px; }
  .h-stats h2 { font-size: 22px; }
  .h-stats-list { grid-template-columns: 1fr; gap: 18px; }
  .h-stats-list li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
  .hs-num { font-size: 38px; }
  .h-marquee { margin: 22px -16px 0; }
}
@media (prefers-reduced-motion: reduce) { .h-marquee-track { animation: none; } }
.h-stats h2 { max-width: 900px; }

/* --- Mentions légales, CGU, données personnelles ---------------------------------------------- */
.lg-page { max-width: 860px; margin: 0 auto; padding: 28px 16px 56px; }
.lg-head h1 { font: 800 30px/1.2 var(--font-title, var(--font)); letter-spacing: -.02em; margin: 4px 0 6px; }
.lg-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 18px; }
.lg-toc a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid #DCE3EC; font-size: 13px; font-weight: 600; color: var(--navy, #0b2545); text-decoration: none; }
.lg-toc a:hover { border-color: var(--navy, #0b2545); }
.lg-card { background: #fff; border: 1px solid #E3E8EF; border-radius: 14px; padding: 22px 26px; margin-bottom: 14px; scroll-margin-top: 90px; }
.lg-card h2 { font: 800 21px/1.3 var(--font-title, var(--font)); letter-spacing: -.01em; margin: 0 0 12px; }
.lg-card h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 6px; color: var(--navy, #0b2545); }
.lg-card p, .lg-card li { font-size: 15px; line-height: 1.6; color: #374151; }
.lg-card p { margin: 0 0 10px; }
.lg-card ul { margin: 0 0 10px; padding-left: 20px; }
.lg-dl { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 16px; margin: 6px 0 0; font-size: 15px; }
.lg-dl dt { color: #6B7686; }
.lg-dl dd { margin: 0; color: var(--navy, #0b2545); }
.lg-todo { background: #FFF1C2; color: #7A4B00; padding: 1px 6px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.lg-foot { font-size: 13px; color: #6B7686; text-align: center; margin-top: 18px; }
.lg-summary { margin: 12px 0; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: #374151; }
.lg-summary li + li { margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--brand, #E1251B); }
.footer-editor { margin: 4px 0 0; }
@media (max-width: 600px) { .lg-card { padding: 18px 16px; } .lg-dl { grid-template-columns: 1fr; gap: 2px; } .lg-dl dd { margin-bottom: 8px; } .lg-head h1 { font-size: 24px; } }

/* --- Menu du compte : sobre et lisible -------------------------------------------------------- */
.menu-list { min-width: 260px; padding: 6px; border-radius: 14px; border: 1px solid #E3E8EF; background: #fff;
  box-shadow: 0 16px 40px rgba(11, 37, 69, .12), 0 2px 6px rgba(11, 37, 69, .06); }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid #EEF1F5; }
.menu-head > div { display: flex; flex-direction: column; min-width: 0; }
.menu-head strong { font-size: 14px; font-weight: 600; color: var(--navy, #0b2545); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head span { font-size: 12.5px; color: #6B7686; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head img, .menu-head .avatar, .menu-head > :first-child { width: 36px !important; height: 36px !important; flex: none; }
.menu-list a, .menu-list button { min-height: 40px; padding: 8px 10px; gap: 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: #1F2937; width: 100%; text-align: left; text-decoration: none; }
.menu-list a .icon, .menu-list button .icon { width: 18px; height: 18px; color: #6B7686; stroke-width: 1.8; flex: none; }
.menu-list a:hover, .menu-list button:hover { background: #F4F6F9; color: var(--navy, #0b2545); }
.menu-list a:hover .icon, .menu-list button:hover .icon { color: var(--navy, #0b2545); }
.menu-list a:focus, .menu-list button:focus { outline: none; }
.menu-list a:focus-visible, .menu-list button:focus-visible { background: #F4F6F9; box-shadow: inset 0 0 0 2px rgba(30, 102, 176, .35); }
.menu-sep { height: 1px; background: #EEF1F5; margin: 4px 6px; }
.menu-list .menu-out { color: #4B5565; }
.menu-list .menu-out:hover { background: #FDF1F0; color: #B42318; }
.menu-list .menu-out:hover .icon { color: #B42318; }
.avatar-btn[aria-expanded="true"] > .icon:last-child { transform: rotate(180deg); }
.avatar-btn > .icon:last-child { transition: transform .15s ease; }
.pf-rule, .photo-rule { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5B6676; margin: 4px 0 0; }
.pf-rule .icon, .photo-rule .icon { width: 14px; height: 14px; color: #146C43; flex: none; }
.photo-rule { margin: 2px 0 8px; }

/* --- Pied de page --------------------------------------------------------------------------- */
.site-footer { background: #fff; border-top: 1px solid #E3E8EF; }
.ft-inner { max-width: var(--content, 1180px); margin: 0 auto; padding: 44px 24px 0; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 32px; }
.ft-brand p { margin: 14px 0 0; max-width: 340px; font-size: 14px; line-height: 1.55; color: #5B6676; }
.ft-brand .brand-img { height: 42px; }
.ft-brand .ft-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 11px; border-radius: 999px; background: #E8F6EE; color: #146C43; font-size: 13px; font-weight: 600; }
.ft-badge .icon { width: 14px; height: 14px; stroke-width: 2.4; fill: none; stroke: currentColor; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft-col h2 { margin: 6px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy, #0b2545); }
.ft-col a, .ft-col button, .ft-col span { font: 400 14px/1.4 var(--font); color: #4B5565; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ft-col span { cursor: default; }
.ft-col a:hover, .ft-col button:hover { color: var(--navy, #0b2545); text-decoration: underline; text-underline-offset: 3px; }
.ft-col a:focus-visible, .ft-col button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.ft-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 18px 0 22px; border-top: 1px solid #EEF1F5; }
.ft-bottom p { margin: 0; font-size: 12.5px; color: #8A94A6; }
@media (max-width: 900px) { .ft-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .ft-inner { padding: 32px 16px 0; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ft-col:last-child { grid-column: 1 / -1; }
  .ft-bottom { flex-direction: column; padding-bottom: 96px; }
}
.ft-illu { width: 100%; max-width: 230px; height: auto; margin-top: 4px; mix-blend-mode: multiply; }
@media (max-width: 600px) { .ft-illu { max-width: 220px; } }
/* Modération et signalement */
.msg-guard { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; padding: 9px 12px; border-radius: 10px; background: #F4F7FB; color: #4B5565; font-size: 13px; line-height: 1.45; }
.msg-guard .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; color: #1F5FAD; }
.link-quiet { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: #6B7686; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-quiet:hover { color: #B42318; }
.req-report { margin-top: 10px; }
.btn-quiet { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #6B7686; font-weight: 500; }
.btn-quiet:hover { color: #B42318; }
.btn-quiet .icon { width: 16px; height: 16px; }
.rp-reasons { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.rp-reasons legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.rp-reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #E3E8EF; border-radius: 10px; font-size: 14px; cursor: pointer; }
.rp-reason:has(input:checked) { border-color: var(--navy, #0b2545); background: #F6F9FD; }
.rp-reason input { accent-color: var(--brand, #E1251B); }
.ad-tab-count { margin-left: 4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand, #E1251B); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.ad-reports { display: grid; gap: 10px; }
.ad-report { padding: 16px 18px; display: grid; gap: 8px; }
.ad-report .ad-who { gap: 10px; }
.ad-report .ad-who .ad-pill { margin-left: 6px; }
.ad-report p { margin: 0; }
.ad-quote { margin: 0; padding: 8px 12px; border-left: 3px solid #E3E8EF; color: #374151; font-size: 14px; font-style: italic; background: #FAFBFC; border-radius: 0 8px 8px 0; }
.ad-report-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-events { margin-top: 14px; }
.ad-excerpt { max-width: 360px; color: #4B5565; font-size: 13px; word-break: break-word; }
.ad-kpi strong a { color: inherit; text-decoration: none; }
.msg-blocked { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #FDECEB; color: #8A1C12; font-size: 13.5px; line-height: 1.45; }
.msg-blocked .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.rp-reason { flex-direction: row !important; justify-content: flex-start; text-align: left; }
.rp-reason input[type="radio"] { width: 18px !important; height: 18px !important; min-height: 0 !important; flex: none; margin: 0; padding: 0; box-shadow: none !important; }
.rp-reason span { flex: 1; font-weight: 500; }
.rp-reasons .rp-reason { display: flex !important; align-items: center; gap: 12px; padding: 11px 14px !important; margin: 0 !important; font-size: 14px; font-weight: 500; color: #1F2937; }

/* --- Mobile : conversation plein écran façon application ---------------------------------------- */
@media (max-width: 767px) {
  body.is-thread .page-head, body.is-thread .site-footer { display: none; }
  body.is-thread #app { padding: 0; }
  body.is-thread .messenger { display: block; }
  body.is-thread .thread { position: fixed; left: 0; right: 0; top: 61px; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 5;
    min-height: 0; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  body.is-thread .thread-head { padding: 10px 12px; gap: 10px; }
  body.is-thread .thread-head h2 { font-size: 16px; }
  body.is-thread .thread-head p { font-size: 12.5px; line-height: 1.35; }
  body.is-thread .thread-chef-note { display: none; }
  body.is-thread .msg-guard { margin: 8px 12px 0; padding: 7px 10px; font-size: 12px; }
  body.is-thread .msgs { padding: 12px; gap: 10px; }
  body.is-thread .msg { max-width: 88%; }
  body.is-thread .msg .avatar, body.is-thread .msg img.avatar { width: 28px; height: 28px; }
  body.is-thread .bubble { font-size: 15px; padding: 8px 12px; }
  body.is-thread .msg-system { font-size: 12.5px; }
  body.is-thread .msg-form { padding: 8px 10px; gap: 8px; background: #fff; }
  body.is-thread .msg-form textarea { min-height: 42px; font-size: 16px; }
  body.is-thread .msg-blocked { margin: 6px 10px; font-size: 12.5px; }
}
/* iPhone : un champ en dessous de 16 px provoque un zoom au toucher. */
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px !important; }
}
/* Mobile : fenêtres courtes en « feuille » qui monte du bas (la création de tribu reste plein écran). */
@media (max-width: 767px) {
  .modal:not([data-owner="wizard"]) { margin: auto 0 0; height: auto; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .modal:not([data-owner="wizard"]) .modal-shell { height: auto; max-height: 94dvh; }
  .modal:not([data-owner="wizard"])[open] { animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
  .modal:not([data-owner="wizard"]) .modal-shell::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: #D5DCE5; margin: 8px auto 0; }
  .modal:not([data-owner="wizard"]) .modal-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none !important; } }
@media (max-width: 767px) { .modal:not([data-owner="wizard"]) { position: fixed; inset: auto 0 0 0; margin: 0; } }

/* --- Application installable : invitation et notifications --------------------------------------- */
.pwa-sheet { position: relative; text-align: center; }
.pwa-stage { display: flex; justify-content: center; margin: 2px 0 14px; }
.pwa-phone { position: relative; width: 230px; height: 196px; border-radius: 30px 30px 0 0; overflow: hidden;
  background: linear-gradient(170deg, #9FC7EE 0%, #CFE3F7 55%, #F4F9FF 100%); border: 6px solid #0B2545; border-bottom: 0; box-shadow: 0 18px 40px rgba(11, 37, 69, .18); }
.pwa-notch { position: absolute; top: 6px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%); border-radius: 12px; background: #0B2545; }
.pwa-time { position: absolute; top: 30px; left: 0; right: 0; font: 800 28px/1 var(--font-title, var(--font)); color: #fff; text-shadow: 0 2px 8px rgba(11,37,69,.25); }
.pwa-notif { position: absolute; left: 10px; right: 10px; top: 72px; display: flex; gap: 8px; align-items: center; padding: 8px 9px; text-align: left;
  border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 20px rgba(11,37,69,.15); animation: pwa-drop 5s cubic-bezier(.2,.8,.2,1) infinite; }
.pwa-notif img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.pwa-notif div { min-width: 0; }
.pwa-n-top { display: flex; justify-content: space-between; gap: 6px; margin: 0; font-size: 10.5px; color: #6B7686; }
.pwa-n-top strong { color: #0B2545; }
.pwa-n-body { margin: 1px 0 0; font-size: 11.5px; line-height: 1.3; color: #1F2937; font-weight: 600; }
.pwa-notif-2 { top: 126px; animation-delay: .6s; opacity: 0; }
.pwa-app { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 6px 14px rgba(11,37,69,.2); opacity: 0; animation: pwa-app 5s ease infinite; }
.pwa-app-name { display: none; }
@keyframes pwa-drop { 0% { transform: translateY(-90px); opacity: 0; } 10%, 82% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-10px); opacity: 0; } }
@keyframes pwa-app { 0%, 20% { opacity: 0; transform: translate(-50%, 20px); } 30%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.pwa-title { margin: 0 0 6px; font: 800 22px/1.2 var(--font-title, var(--font)); letter-spacing: -.02em; color: var(--navy, #0b2545); }
.pwa-sub { margin: 0 auto 14px; max-width: 420px; font-size: 15px; line-height: 1.45; color: #4B5565; }
.pwa-list { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; display: grid; gap: 10px; text-align: left; }
.pwa-list li { display: flex; gap: 12px; align-items: flex-start; }
.pwa-list .icon { width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 10px; background: #FDECEB; color: var(--brand, #E1251B); }
.pwa-list span { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.35; color: #5B6676; }
.pwa-list strong { font-size: 14.5px; color: var(--navy, #0b2545); }
.pwa-steps { list-style: none; margin: 16px auto 0; padding: 0; max-width: 420px; display: grid; gap: 8px; text-align: left; }
.pwa-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F4F7FB; font-size: 14.5px; }
.pwa-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--navy, #0b2545); color: #fff; font-size: 12px; font-weight: 800; }
.pwa-ios-share { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 2px; vertical-align: middle; border-radius: 7px; background: #fff; color: #1F6FD0; box-shadow: 0 1px 3px rgba(11,37,69,.15); }
.pwa-hint { margin: 10px 0 0; font-size: 12.5px; color: #6B7686; }
.pwa-arrow { margin: 6px auto 0; font-size: 26px; line-height: 1; color: var(--brand, #E1251B); animation: pwa-bounce 1.2s ease-in-out infinite; }
@keyframes pwa-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.pwa-ok { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 6px 12px; border-radius: 999px; background: #E8F6EE; color: #146C43; font-size: 13.5px; font-weight: 600; }
.pwa-ok .icon { width: 15px; height: 15px; }
.pwa-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pwa-cta .icon { width: 18px; height: 18px; }
@media (max-width: 767px) { .pwa-cta { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .pwa-notif, .pwa-app, .pwa-arrow { animation: none; opacity: 1; } .pwa-app { transform: translateX(-50%); } }
.pwa-phone { height: 178px; }
.pwa-notif { top: 66px; }
.pwa-notif-2 { top: 118px; }
@media (max-width: 767px) {
  .pwa-stage { margin-bottom: 10px; }
  .pwa-title { font-size: 20px; }
  .pwa-sub { font-size: 14px; margin-bottom: 12px; }
  .pwa-list { gap: 8px; }
  .pwa-list .icon { width: 30px; height: 30px; padding: 7px; }
  .pwa-steps { margin-top: 12px; }
}
/* --- Pages de référencement (cours de ski, stations…) : sobres, lisibles ------------------------------ */
.seo-page { max-width: 880px; margin: 0 auto; display: grid; gap: 40px; }
.seo-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.seo-crumbs a { color: var(--muted); text-decoration: none; }
.seo-crumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.seo-crumbs [aria-current] { color: var(--navy); }
.seo-hero { display: grid; gap: 14px; margin-top: -24px; }
.seo-kicker { display: inline-flex; justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--success-soft, #E8F6EE); color: var(--success, #146C43); font-size: 12.5px; font-weight: 600; }
.seo-lead { font-size: 16.5px; line-height: 1.6; color: #4B5565; max-width: 680px; }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.seo-section { display: grid; gap: 16px; }
.seo-section h2 { font-size: 20px; line-height: 1.25; color: var(--navy); }
.seo-text p { font-size: 15px; line-height: 1.65; color: #3F4A5A; }
.seo-text p + p { margin-top: 10px; }
.seo-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.seo-list li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; color: #3F4A5A; }
.seo-tribes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.seo-tribe { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); text-decoration: none; color: inherit; transition: border-color var(--t, .15s), box-shadow var(--t, .15s); }
.seo-tribe:hover { border-color: #C9D3E0; box-shadow: var(--shadow); }
.seo-tribe-name { font-weight: 650; color: var(--navy); }
.seo-tribe-meta, .seo-tribe-foot { font-size: 13.5px; color: var(--muted); }
.seo-tribe-foot { color: var(--accent); font-weight: 600; }
.seo-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border: 1px dashed #C9D3E0; border-radius: var(--radius-card); background: var(--surface); }
.seo-empty p { font-size: 14.5px; color: #4B5565; max-width: 560px; }
.seo-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.seo-benefits li { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.seo-benefits h3, .seo-steps h3 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.seo-benefits p, .seo-steps p { font-size: 14px; line-height: 1.55; color: #5B6676; }
.seo-steps { display: grid; gap: 14px; padding: 0; list-style: none; }
.seo-steps li { display: flex; gap: 14px; align-items: flex-start; }
.seo-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ice); color: var(--navy); font-size: 13px; font-weight: 700; }
.seo-faq { display: grid; border-top: 1px solid var(--border); }
.seo-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.seo-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.seo-faq details[open] summary::after { content: "–"; }
.seo-faq p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #4B5565; }
.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.seo-chips a { display: inline-block; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13.5px; color: #3F4A5A; text-decoration: none; }
.seo-chips a:hover { border-color: #C9D3E0; color: var(--navy); }
.seo-more a { font-size: 14px; color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.seo-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 24px; }
.seo-dept h3 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.seo-dept ul { display: grid; gap: 6px; padding: 0; list-style: none; }
.seo-dept a { font-size: 14px; color: #3F4A5A; text-decoration: none; }
.seo-dept a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .seo-page { gap: 32px; }
  .seo-hero { margin-top: -12px; }
  .seo-benefits { grid-template-columns: 1fr; }
  .seo-cta .btn { flex: 1; }
}
.ft-top { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* --- Évaluations (étoiles, avis, page « Évaluer mes compagnons ») ------------------------------------ */
:root { --star: #F2A922; --star-off: #D9DEE6; }
.rv-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rv-stars i { position: relative; display: inline-flex; width: 16px; height: 16px; }
.rv-stars.is-sm i { width: 13px; height: 13px; }
.rv-stars svg { width: 100%; height: 100%; fill: var(--star-off); }
.rv-stars i.is-full svg { fill: var(--star); }
.rv-stars i.is-half::after { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--star); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E") left/200% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E") left/200% 100% no-repeat; }
.rv-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #3F4A5A; }
.rv-badge svg { width: 14px; height: 14px; fill: var(--star); }
.rv-badge span { color: var(--muted); }
.portraits .rv-badge { display: flex; justify-content: center; margin-top: 2px; font-size: 12.5px; }
.req-top + .rv-badge { margin: -2px 0 6px; }
/* Avis sur un profil */
.mini-reviews { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rv-head h3 { font-size: 15px; color: var(--navy); }
.rv-sum { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.rv-sum span { color: var(--muted); font-size: 13px; }
.rv-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; max-height: 320px; overflow: auto; }
.rv-item { display: flex; gap: 10px; align-items: flex-start; }
.rv-item-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rv-item-meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.rv-item-text { font-size: 14px; line-height: 1.5; color: #3F4A5A; margin-top: 4px; }
.pf-reviews { padding: 18px; margin-bottom: 16px; scroll-margin-top: 90px; }
/* Carte d'invitation sur la page de la tribu */
.rv-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-color: #F6DDA9; background: #FFFBF2; }
.rv-card.is-done { border-color: var(--border); background: var(--surface); }
.rv-card-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #FDEFD0; }
.rv-card-icon svg { width: 22px; height: 22px; fill: var(--star); }
.rv-card-text { flex: 1; min-width: 0; }
.rv-card-text h2 { font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.rv-card-text p { font-size: 14px; color: #4B5565; }
@media (max-width: 640px) { .rv-card { flex-wrap: wrap; } .rv-card .btn { width: 100%; } }
/* Page « Évaluer mes compagnons » */
.rv-page { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.rv-page-head h1 { margin: 6px 0 4px; }
.rv-window { margin-top: 8px; font-size: 14px; color: #4B5565; }
.rv-people { display: grid; gap: 14px; }
.rv-person { display: grid; gap: 12px; padding: 18px 20px; }
.rv-person-top { display: flex; align-items: center; gap: 12px; }
.rv-person-top h2 { font-size: 16px; color: var(--navy); }
.rv-saved { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--success, #146C43); }
.rv-saved .icon { width: 15px; height: 15px; }
.rv-input { display: flex; align-items: center; gap: 4px; border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.rv-star { position: relative; cursor: pointer; display: inline-flex; padding: 2px; border-radius: 6px; }
.rv-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-star svg { width: 30px; height: 30px; fill: var(--star-off); transition: fill var(--t, .15s), transform var(--t, .15s); }
.rv-star.is-on svg { fill: var(--star); }
.rv-star:hover svg { transform: scale(1.08); }
.rv-star:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.rv-input-label { margin-left: 8px; font-size: 14px; color: var(--muted); }
.rv-comment { display: grid; gap: 6px; font-size: 14px; color: #3F4A5A; }
.rv-comment em { color: var(--muted); font-style: normal; }
.rv-comment textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--input-border, var(--border)); border-radius: var(--radius-input); resize: vertical; }
.rv-hint { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.rv-person .btn { justify-self: start; }
@media (max-width: 640px) { .rv-person .btn { justify-self: stretch; } .rv-star svg { width: 34px; height: 34px; } }
.ad-stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.ad-table tr.is-muted td { opacity: .55; }
.mini-reviews { margin-bottom: 12px; }
.tp-member .rv-badge { display: flex; margin-top: 2px; font-size: 12.5px; }
.h-save { margin: 14px 0 -4px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--accent); }
.h-save sup { font-size: .6em; font-weight: 600; margin-left: 1px; }
@media (max-width: 767px) { .h-save { font-size: 15px; margin-top: 12px; } }
.h-note .h-note-text, .h-note .h-note-star { display: block; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.h-note .h-note-star { margin-top: 6px; font-style: normal; font-size: 13px; color: #6B7586; }
/* Photo de profil : choisir ou prendre une photo */
.pf-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.pf-photo-btns .btn { min-height: 38px; padding: 7px 12px; font-size: 14px; gap: 6px; }
.pf-photo-btns .icon { width: 17px; height: 17px; }
.cam { display: grid; gap: 12px; justify-items: center; text-align: center; }
.cam-frame { position: relative; width: min(100%, 360px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #0C0E1D; }
.cam-video, .cam-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-video { transform: scaleX(-1); }
.cam-ring { position: absolute; inset: 12%; border: 2px dashed rgba(255,255,255,.7); border-radius: 50%; pointer-events: none; }
.cam-shot:not([hidden]) ~ .cam-ring { display: none; }
.cam-status { position: absolute; inset: auto 16px 50% 16px; transform: translateY(50%); color: #fff; font-size: 14px; }
.cam-status.is-error { color: #fff; background: rgba(12,14,29,.75); padding: 10px 12px; border-radius: 10px; }
.cam-hint { max-width: 360px; }
/* Création de tribu : personnes déjà avec le chef */
.gs-seat img.is-photo { border-radius: 50%; object-fit: cover; }
.gs-comps { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); text-align: left; }
.gs-comps h3 { font-size: 15px; color: var(--navy); }
.gs-comps h3 span { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.gs-comps-sub { font-size: 13.5px; color: var(--muted); margin: 2px 0 12px; }
.gs-comps ul { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.gs-comp { display: flex; gap: 12px; align-items: center; }
.gs-comp-face img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--ice); display: block; }
.gs-comp-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.gs-comp-main input[type="text"] { width: 100%; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--input-border, var(--border)); border-radius: var(--radius-input); }
.gs-comp-btns { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.gs-consent { margin-top: 14px; font-size: 13.5px; align-items: flex-start; }
.gs-comps-rule { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.gs-comps-rule .icon { width: 15px; height: 15px; }
.tp-with { display: inline-block; font-size: 12.5px; color: var(--muted); }
.tp-companion .tp-face { object-fit: cover; }
.gs-comp-btns { justify-content: flex-start; }
.gs-comp-btns > * { flex: none; width: auto; }
.gs-comp-fields { display: flex; gap: 8px; }
.gs-comp-fields > input { flex: 1; min-width: 0; }
.gs-comp-age { position: relative; flex: none; width: 92px; }
.gs-comp-age input { width: 100%; font: inherit; font-size: 16px; padding: 9px 34px 9px 12px; border: 1px solid var(--input-border, var(--border)); border-radius: var(--radius-input); }
.gs-comp-age em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.gs-comp-btns > * { margin: 0 !important; }
.ad-av { width: 40px; height: 40px; }
.ad-av-lg { width: 112px; height: 112px; font-size: 40px; border: 1px solid var(--border); }
a > .ad-av-lg { display: block; transition: transform var(--t, .15s); }
a > .ad-av-lg:hover { transform: scale(1.03); }
.ad-user-head { align-items: center; }
.ad-user-head .ad-av.ad-av-lg { width: 112px; height: 112px; font-size: 40px; }
.ad-user-head { gap: 16px; }
/* Création de tribu : photo de profil du chef (obligatoire pour publier) */
.pp-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px dashed #C9D3E0; border-radius: var(--radius-card); background: var(--surface); }
.pp-card.has-photo { border-style: solid; border-color: var(--border); }
.pp-face { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--ice); color: var(--muted); }
.pp-face img { width: 100%; height: 100%; object-fit: cover; }
.pp-face .icon { width: 30px; height: 30px; }
.pp-text { display: grid; gap: 3px; min-width: 0; }
.pp-text strong { font-size: 15px; color: var(--navy); }
.pp-text > span { font-size: 13.5px; color: var(--muted); }
.pp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pp-btns .btn { min-height: 36px; padding: 6px 12px; font-size: 14px; gap: 6px; }
.pp-btns .icon { width: 16px; height: 16px; }
.mg-todo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-color: #F6DDA9; background: #FFFBF2; }
.mg-todo > .icon { flex: none; width: 22px; height: 22px; color: #B7791F; }
.mg-todo > div { flex: 1; min-width: 0; }
.mg-todo h2 { font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.mg-todo p { font-size: 14px; color: #4B5565; }
@media (max-width: 640px) { .mg-todo { flex-wrap: wrap; } .mg-todo .btn { width: 100%; } }
.tip-line { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; padding: 9px 11px; border-radius: 10px; background: var(--ice); font-size: 13px; color: #3F4A5A; }
.tip-line .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--navy); }

/* Demandes en attente, en haut de la page de gestion */
.mg-pending { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-color: #F3C7C3; background: #FFF6F5; color: inherit; text-decoration: none; }
.mg-pending:hover { border-color: var(--red, #D62F2F); }
.mg-pending .requests-faces { flex: none; display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.mg-pending .requests-faces li + li { margin-left: -12px; }
.mg-pending .requests-faces .avatar { box-shadow: 0 0 0 2px #fff; }
.mg-pending > div { flex: 1; min-width: 0; }
.mg-pending h2 { font-size: 16px; color: var(--navy); margin: 0 0 2px; }
.mg-pending p { font-size: 14px; color: #4B5565; margin: 0; }
.mg-pending .btn { flex: none; }
@media (max-width: 640px) { .mg-pending { flex-wrap: wrap; } .mg-pending .btn { width: 100%; justify-content: center; } }

.req-msg { margin: 8px 0 6px; padding: 10px 12px; border-radius: 10px; background: #F4F6FA; font-size: 14px; line-height: 1.45; color: var(--navy); white-space: pre-line; }
.req-msg span { display: block; font-size: 12px; font-weight: 600; color: #6B7280; margin-bottom: 2px; }

/* Prix indicatif (facultatif, cité par le chef de tribu) */
.gs-price { margin-top: 18px; padding: 16px; border: 1px solid var(--line, #E5E7EB); border-radius: 14px; background: #fff; }
.gs-price-label { display: block; font-weight: 600; font-size: 15px; color: var(--navy); }
.gs-price-label em { font-style: normal; font-weight: 400; color: #6B7280; }
.gs-price-help { margin: 4px 0 10px; font-size: 13px; color: #6B7280; line-height: 1.45; }
.gs-price-input { position: relative; max-width: 180px; }
.gs-price-input input { width: 100%; padding-right: 34px; }
.gs-price-input span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #6B7280; pointer-events: none; }
.gs-price-each { margin: 8px 0 0; font-size: 13px; color: #4B5565; line-height: 1.45; }
.gs-price-each strong { color: var(--navy); }
.tp-price small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: #6B7280; }
.mg-price { margin: 10px 0 0; padding: 0; list-style: none; }
.mg-price li { display: flex; gap: 8px; font-size: 14px; }
.mg-price .icon { flex: none; width: 18px; height: 18px; color: #6B7280; }
.tp-facts li.tp-price > span { display: block; padding: 8px 0; }
.mg-price li { min-height: 0; align-items: flex-start; font-size: 14px; }
.mg-price li > span { display: block; border: 0; }

/* ==== Fin des inscriptions : félicitations, « pas encore d'inscrit », réservation ========================= */
.fete-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
.fete { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 6px 0 4px; }
.fete-title { margin: 2px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; color: var(--navy);
  animation: fete-rise .5s .25s cubic-bezier(.2, .8, .2, 1) both; }
.fete-sub { margin: 0; max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.55; animation: fete-rise .5s .35s cubic-bezier(.2, .8, .2, 1) both; }
.fete-sub strong { color: var(--navy); }

/* Badge : cercle qui se dessine, coche, halo */
.fete-badge { position: relative; width: 96px; height: 96px; animation: fete-pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.fete-check { position: relative; z-index: 1; width: 96px; height: 96px; }
.fete-check-ring { fill: var(--success-soft); stroke: var(--success); stroke-width: 4; stroke-dasharray: 264; stroke-dashoffset: 264;
  animation: fete-draw .7s .1s ease-out forwards; }
.fete-check-mark { fill: none; stroke: var(--success); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: fete-draw .45s .65s ease-out forwards; }
.fete-glow { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 158, 91, .22), transparent 68%);
  animation: fete-glow 2.4s .8s ease-in-out infinite; }

/* L'équipe qui apparaît */
.fete-crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin: 4px 0 0; padding: 0; list-style: none; max-width: 520px; }
.fete-crew li { display: grid; justify-items: center; gap: 3px; min-width: 64px; animation: fete-pop .5s calc(.55s + var(--i) * .09s) cubic-bezier(.2, 1.4, .4, 1) both; }
.fete-crew .avatar { width: 56px; height: 56px; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(16, 28, 53, .14); }
.fete-crew strong { font-size: 14px; color: var(--navy); }
.fete-crew span { font-size: 12px; color: var(--muted); }

.fete-next { display: flex; align-items: flex-start; gap: 12px; width: 100%; max-width: 500px; margin-top: 6px; padding: 14px 16px; text-align: left;
  border-radius: 14px; background: var(--ice); animation: fete-rise .5s .9s cubic-bezier(.2, .8, .2, 1) both; }
.fete-next .icon { flex: none; width: 22px; height: 22px; color: var(--focus); margin-top: 1px; }
.fete-next p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--navy); }

/* « Pas encore d'inscrit » : places qui attendent, flocons */
.fete-empty { position: relative; width: 100%; max-width: 360px; height: 120px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #EAF3FC 0%, #F7FAFD 100%); animation: fete-rise .5s both; }
.fete-seats { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.fete-seats .avatar { width: 58px; height: 58px; font-size: 21px; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(16, 28, 53, .14); }
.fete-seat { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px dashed #A9B8CA; color: #7D8DA3; background: rgba(255, 255, 255, .7);
  animation: fete-wait 2.6s calc(var(--i) * .35s) ease-in-out infinite; }
.fete-seat .icon { width: 18px; height: 18px; }
.fete-flake { position: absolute; top: -10px; left: var(--x); width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(125, 141, 163, .25);
  animation: fete-snow 4.2s var(--d) linear infinite; }

.fete-pending { display: flex; align-items: center; gap: 10px; animation: fete-rise .5s .25s cubic-bezier(.2, .8, .2, 1) both; width: 100%; max-width: 500px; padding: 12px 14px; border-radius: 12px; text-align: left;
  background: var(--accent-soft); color: var(--navy); text-decoration: none; font-size: 14px; }
.fete-pending > .icon:first-child { flex: none; width: 20px; height: 20px; color: var(--accent); }
.fete-pending > .icon:last-child { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--accent); }

.fete-dates { width: 100%; max-width: 500px; margin: 4px 0 0; padding: 0; border: 0; text-align: left; animation: fete-rise .5s .3s cubic-bezier(.2, .8, .2, 1) both; }
.fete-dates legend { margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--navy); }
.fete-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fete-chip { position: relative; display: block; cursor: pointer; }
.fete-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fete-chip span { display: grid; gap: 2px; height: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  transition: border-color var(--t), box-shadow var(--t), background var(--t); }
.fete-chip strong { font-size: 14px; color: var(--navy); }
.fete-chip small { font-size: 12px; color: var(--muted); }
.fete-chip:hover span { border-color: #B9C5D3; }
.fete-chip input:checked + span { border-color: var(--accent); background: #FFF8F6; box-shadow: 0 0 0 1px var(--accent); }
.fete-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fete-custom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 10px; }
.fete-custom label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.fete-custom input { width: 100%; }
.fete-limit { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; text-align: left; }
.fete-limit .icon { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.fete-limit.is-block { max-width: 460px; padding: 12px 14px; border-radius: 12px; background: #F4F6FA; font-size: 14px; color: var(--navy); }
.fete-sorry .form-error-slot { width: 100%; max-width: 500px; text-align: left; }

/* Réservation : étapes qui arrivent une à une, reliées par un fil */
.bk-title { text-align: center; }
.bk-intro { margin: -4px 0 16px; text-align: center; color: var(--muted); }
.bk-steps { position: relative; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bk-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 54px; bottom: -6px; width: 2px; border-radius: 2px; background: var(--border);
  transform-origin: top; animation: bk-line .5s calc(.3s + var(--i) * .12s) ease-out both; }
.bk-steps > li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 8px 0 12px;
  animation: fete-rise .45s calc(.12s + var(--i) * .12s) cubic-bezier(.2, .8, .2, 1) both; }
.bk-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  color: var(--accent); box-shadow: 0 2px 8px rgba(16, 28, 53, .06); }
.bk-ic .icon { width: 20px; height: 20px; }
.bk-steps > li:first-child .bk-ic { background: var(--success-soft); border-color: #BFE0C9; color: var(--success); }
.bk-steps h3 { margin: 10px 0 4px; font-size: 16px; color: var(--navy); }
.bk-text { font-size: 14px; line-height: 1.55; color: #3E4B5E; }
.bk-faces { display: flex; margin-top: 8px; }
.bk-faces .avatar { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 2px #fff; }
.bk-faces .avatar + .avatar { margin-left: -8px; }
.bk-list { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.bk-list li { display: flex; gap: 8px; align-items: flex-start; }
.bk-list .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--success); }
.bk-trust { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #F4F6FA; font-size: 13px; line-height: 1.5; color: #3E4B5E;
  animation: fete-rise .45s .8s both; }
.bk-trust .icon { flex: none; width: 18px; height: 18px; color: var(--success); margin-top: 1px; }

/* Cartes sur la page de la tribu */
.fete-card { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border-color: #BFE0C9; background: linear-gradient(135deg, #F1FAF4, #fff 70%); }
.fete-card-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--success); color: #fff; }
.fete-card-ic .icon { width: 22px; height: 22px; }
.fete-card > div { flex: 1; min-width: 0; }
.fete-card h2 { margin: 0 0 2px; font-size: 17px; color: var(--navy); }
.fete-card p { margin: 0; font-size: 14px; color: #4B5565; }
.fete-card .btn { flex: none; }
.fete-card.is-empty { border-color: #F3D9B5; background: linear-gradient(135deg, #FFF8EE, #fff 70%); }
.fete-card.is-empty .fete-card-ic { background: #B7791F; }
@media (max-width: 640px) { .fete-card { flex-wrap: wrap; } .fete-card .btn { width: 100%; justify-content: center; } }

/* Vos coéquipiers */
.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; margin: 6px 0 10px; padding: 0; list-style: none; }
.gc-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid #E3E8EF; border-radius: 14px; background: #fff;
  animation: fete-rise .4s calc(var(--i) * .06s) both; }
.gc-card .avatar { width: 48px; height: 48px; font-size: 18px; }
.gc-card .gc-who { gap: 1px; min-width: 0; }
.gc-card .gc-who span { font-size: 13px; color: var(--muted); }
.gc-card .gc-num { margin-top: 2px; font-size: 15px; font-weight: 600; }
.gc-private { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.gc-private .icon { width: 13px; height: 13px; }
.gc-card .gc-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 38px; padding: 6px 4px; overflow: hidden; white-space: nowrap; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--navy); font: 600 13px/1 var(--font); text-decoration: none; cursor: pointer; transition: background var(--t), border-color var(--t); }
.gc-btn:hover { background: #F4F6FA; border-color: #C5D0DC; }
.gc-btn .icon { width: 16px; height: 16px; }
.gc-help { display: flex; gap: 6px; align-items: flex-start; }
.gc-help .icon { flex: none; width: 14px; height: 14px; margin-top: 3px; }

@keyframes fete-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fete-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fete-draw { to { stroke-dashoffset: 0; } }
@keyframes fete-glow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes fete-wait { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fete-snow { from { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } to { transform: translate(14px, 140px); opacity: 0; } }
@keyframes bk-line { from { transform: scaleY(0); } to { transform: none; } }
@media (max-width: 640px) {
  .fete-title { font-size: 23px; }
  .fete-chips { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fete *, .fete, .bk-steps > li, .bk-steps > li::after, .bk-trust, .gc-card { animation: none !important; }
  .fete-check-ring, .fete-check-mark { stroke-dashoffset: 0; }
}
.g-next-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
@media (max-width: 640px) {
  .modal-footer.fete-footer { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .modal-footer.fete-footer .btn { width: 100%; justify-content: center; }
  .fete { gap: 12px; }
  .fete-badge, .fete-check { width: 80px; height: 80px; }
}
.groupe-bottom > * { min-width: 0; }
.g-next .btn-block { white-space: normal; height: auto; min-height: 44px; text-align: center; line-height: 1.3; }
.g-book { margin-top: 10px; }
@media (max-width: 420px) {
  .gc-btn .icon { display: none; }
  .gc-card { padding: 12px 10px; }
}

/* Conseil paiement : rassurant, pas alarmant */
.bk-safe { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--ice); border: 1px solid #D3E5F7;
  animation: fete-rise .45s .75s both; }
.bk-safe > .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--focus); }
.bk-safe strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--navy); }
.bk-safe p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #3E4B5E; }
.bk-trust { animation-delay: .9s; }
@media (prefers-reduced-motion: reduce) { .bk-safe { animation: none !important; } }

/* ==== Messagerie instantanée (chat.js) ==================================================================== */
.thread { height: min(78vh, 760px); max-height: none; min-height: 520px; }
.ch { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #F4F6F9; }
.ch-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.ch-back { display: none; }
.ch-faces { display: flex; flex: none; }
.ch-faces .avatar { width: 34px; height: 34px; font-size: 13px; box-shadow: 0 0 0 2px #fff; }
.ch-faces .avatar + .avatar { margin-left: -10px; }
.ch-title { flex: 1; min-width: 0; }
.ch-title h2 { margin: 0; font-size: 16px; line-height: 1.25; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-sub { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-typing { color: var(--success); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ch-dots { display: inline-flex; gap: 3px; }
.ch-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: ch-dot 1.2s infinite ease-in-out; }
.ch-dots i:nth-child(2) { animation-delay: .15s; } .ch-dots i:nth-child(3) { animation-delay: .3s; }
.ch-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.ch-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ch-report { font-size: 12.5px; }
.ch-sound { color: var(--navy); }
.ch-sound.is-off { color: #9AA6B6; }
.ch-sound .icon { width: 19px; height: 19px; }
.ch-banner { display: flex; align-items: flex-start; gap: 8px; margin: 10px 14px 0; padding: 8px 12px; border-radius: 10px; background: #FFF8E6; color: #5B4A1C;
  font-size: 12.5px; line-height: 1.45; }
.ch-banner .icon { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.ch-banner.is-lock { background: #EEF2F7; color: #3E4B5E; }
.ch-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 8px; scroll-padding-bottom: 12px; }
.ch-msgs { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ch-day { align-self: center; margin: 12px 0 8px; }
.ch-day span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(16, 28, 53, .08); font-size: 12px; font-weight: 600; color: #5A6779; }
.ch-sys { align-self: center; max-width: 86%; margin: 6px 0; text-align: center; }
.ch-sys span { display: inline-block; padding: 6px 12px; border-radius: 10px; background: #E7EEF7; font-size: 12.5px; line-height: 1.45; color: #3E4B5E; }
.ch-empty { align-self: center; display: grid; justify-items: center; gap: 8px; margin: auto; padding: 40px 0; color: var(--muted); font-size: 14px; }
.ch-empty .icon { width: 28px; height: 28px; }
.ch-msg { display: flex; align-items: flex-end; gap: 8px; max-width: min(78%, 560px); margin-top: 8px; }
.ch-msg.is-cont { margin-top: 2px; }
.ch-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.ch-msg .avatar { width: 30px; height: 30px; font-size: 12px; flex: none; }
.ch-face-gap { width: 30px; flex: none; }
.ch-bubble { position: relative; min-width: 72px; padding: 7px 10px 6px 12px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 1.5px rgba(16, 28, 53, .1);
  font-size: 15px; line-height: 1.42; color: #1A2433; overflow-wrap: anywhere; }
.ch-msg.is-cont .ch-bubble { border-radius: 14px 14px 14px 14px; }
.ch-msg.mine .ch-bubble { background: #FFE6DF; border-radius: 14px 14px 4px 14px; }
.ch-msg.mine.is-cont .ch-bubble { border-radius: 14px; }
.ch-msg.is-chef .ch-bubble { box-shadow: 0 1px 1.5px rgba(16, 28, 53, .1), inset 3px 0 0 #F6C343; }
.ch-name { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 13px; font-weight: 700; }
.ch-chef { padding: 1px 7px; border-radius: 999px; background: #FFF4D6; color: #8A6100; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.ch-text a { color: var(--focus); }
.ch-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font-size: 11px; color: #7C8796; line-height: 1; }
.ch-meta .ticks svg { width: 15px; height: 11px; }
.ticks.is-pending { color: #9AA6B6; }
.ticks.is-failed { color: var(--danger); }
.ticks.is-failed .icon { width: 13px; height: 13px; }
.ch-retry { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--danger); font: 600 12px var(--font); cursor: pointer; }
.ch-msg.is-new { animation: ch-in .22s cubic-bezier(.2, .8, .2, 1); }
.ch-msg.mine.is-new { transform-origin: bottom right; }
.ch-new { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 13px var(--font); box-shadow: 0 6px 18px rgba(16, 28, 53, .25); cursor: pointer; z-index: 2; }
.ch-new .icon { width: 15px; height: 15px; }
.thread { position: relative; }
.ch-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--border); }
.ch-form textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 22px; background: #F7F9FB;
  font: 15px/1.4 var(--font); resize: none; overflow-y: auto; }
.ch-form textarea:focus { outline: none; border-color: #9FB6CF; background: #fff; box-shadow: 0 0 0 3px rgba(30, 102, 176, .12); }
.ch-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer;
  transition: transform .12s, background var(--t), opacity var(--t); }
.ch-send:disabled { opacity: .45; cursor: default; }
.ch-send:not(:disabled):active { transform: scale(.92); }
.ch-send .icon { width: 19px; height: 19px; }
.ch-blocked { margin: 0 12px 6px; }
.ch-pick { display: grid; place-items: center; gap: 8px; height: 100%; color: var(--muted); }
.ch-pick .icon { width: 32px; height: 32px; }
.ch.is-compact .ch-banner:not(.is-lock) { display: none; }
@keyframes ch-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ch-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* Liste des conversations */
.conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.conv-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-top time { flex: none; font-size: 12px; color: var(--muted); }
.conv.has-unread .conv-top time { color: var(--accent); font-weight: 600; }
.conv.has-unread .conv-last { color: var(--navy); font-weight: 600; }
.conv-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-group { position: relative; flex: none; }
.conv-group i { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff;
  box-shadow: 0 0 0 2px #fff; }
.conv-group i .icon { width: 12px; height: 12px; }

@media (max-width: 767px) {
  .ch-back { display: inline-grid; }
  .ch-head { padding: 8px 10px; gap: 8px; }
  .ch-link, .ch-report { display: none; }
  .ch-msg { max-width: 86%; }
  .ch-bubble { font-size: 15.5px; }
  .ch-form { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .ch-form textarea { font-size: 16px; }
  body.is-thread .thread { background: #F4F6F9; }
  .thread { height: auto; min-height: 0; }
  body.is-thread .ch-new { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .ch-msg.is-new, .ch-dots i { animation: none; } }
.bk-p { margin: 0 0 4px; }

/* Rappels de sécurité (paiements) : discrets et rassurants */
.safe-line { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #4B5565; }
.safe-line .icon, .tp-safe .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--success); }
.tp-safe { display: flex; gap: 8px; align-items: flex-start; }
.ch-safe { align-self: center; max-width: 92%; margin: 4px 0 6px; text-align: center; }
.ch-safe span { display: inline-flex; align-items: flex-start; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #EAF5EE; color: #24543A; font-size: 12px; line-height: 1.45; text-align: left; }
.ch-safe .icon { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.ch-alert { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #FFF4D6; color: #6B4E00; font-size: 12px; line-height: 1.4; }
.ch-alert .icon { flex: none; width: 13px; height: 13px; margin-top: 1px; }
.ch-alert a { color: inherit; font-weight: 600; }

/* Paramètres : notifications et son */
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.st-notif h2 + .st-row { border-top: 0; }
.st-row > div { display: grid; gap: 2px; min-width: 0; }
.st-row strong { font-size: 15px; color: var(--navy); }
.st-sounds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 0 8px; }
.switch { position: relative; display: inline-block; flex: none; width: 46px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch input + span { position: absolute; inset: 0; border-radius: 999px; background: #C5CEDA; transition: background var(--t); }
.switch input + span::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,.2); transition: transform var(--t); }
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Petite bannière d'installation (mobile) */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(16, 28, 53, .22); border: 1px solid var(--border);
  transform: translateY(24px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.pwa-banner.is-in { transform: none; opacity: 1; }
.pwa-banner img { flex: none; border-radius: 10px; }
.pwa-banner-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.pwa-banner-text strong { font-size: 14.5px; color: var(--navy); }
.pwa-banner-text span { font-size: 12.5px; color: var(--muted); }
.pwa-banner .btn { flex: none; }
.pwa-banner-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.pwa-banner-close .icon { width: 16px; height: 16px; }
@media (min-width: 768px) { .pwa-banner { left: auto; right: 20px; bottom: 20px; width: 380px; } }
@media (prefers-reduced-motion: reduce) { .pwa-banner { transition: none; } }

/* ==== Invitation à installer l'appli : scène de montagne animée ========================================= */
.pp { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.pp-veil { position: absolute; inset: 0; background: rgba(16, 28, 53, .38); opacity: 0; transition: opacity .35s; pointer-events: auto; }
.pp.is-in .pp-veil { opacity: 1; }
.pp-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(16, 28, 53, .25);
  transform: translateY(105%); transition: transform .5s cubic-bezier(.2, 1.1, .3, 1); pointer-events: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
.pp.is-in .pp-sheet { transform: none; }
.pp-close { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--navy); box-shadow: 0 2px 8px rgba(16, 28, 53, .15); cursor: pointer; }
.pp-close .icon { width: 16px; height: 16px; }

.pp-scene { position: relative; height: 190px; overflow: hidden; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #A9D3F7 0%, #DCEEFE 55%, #F5FAFF 100%); }
.pp-sun { position: absolute; top: 18px; left: 26px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #FFF6C9 0%, #FFE27A 60%, rgba(255, 226, 122, 0) 72%);
  animation: pp-sun 6s ease-in-out infinite; }
.pp-mountains { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 110px; }
.pp-slope { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 86px; }
.pp-flake { position: absolute; top: -8px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 2px rgba(16, 28, 53, .15);
  animation: pp-snow 5s var(--d) linear infinite; }

/* Les riders descendent la piste en boucle */
.pp-track { position: absolute; left: 0; top: 0; width: 64px; height: 64px; offset-path: path('M -40 96 C 90 108, 190 140, 330 186'); offset-rotate: 0deg; }
.pp-track-1 { animation: pp-ride 5.2s .3s cubic-bezier(.45, .05, .55, .95) infinite; }
.pp-track-2 { animation: pp-ride 5.2s 2.9s cubic-bezier(.45, .05, .55, .95) infinite; }
.pp-rider { width: 48px; height: 48px; overflow: visible; transform: rotate(16deg); animation: pp-carve 1.3s ease-in-out infinite; }
.pp-skier { animation-delay: .2s; }
.pp-skis, .pp-board { fill: none; stroke: #101C35; stroke-width: 3.5; stroke-linecap: round; }
.pp-board { stroke: #1E66B0; stroke-width: 5; }
.pp-limb { fill: none; stroke: #101C35; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-pole { fill: none; stroke: #5A6779; stroke-width: 1.8; stroke-linecap: round; }
.pp-body-red { fill: #E2332F; } .pp-body-blue { fill: #1E66B0; }
.pp-head-red, .pp-head-blue { fill: #F3C9A8; }
.pp-helmet { fill: #E2332F; } .pp-helmet-dark { fill: #101C35; }
.pp-spray { position: absolute; left: 2px; bottom: 6px; width: 26px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, .95) 0 30%, rgba(255, 255, 255, 0) 70%); filter: blur(1px); animation: pp-spray .65s ease-out infinite; }

/* Téléphone : les notifications du groupe arrivent une à une */
.pp-phone { position: absolute; right: 52px; bottom: -26px; width: 152px; height: 190px; padding: 10px 7px 0; border-radius: 22px; background: #101C35; box-shadow: 0 14px 28px rgba(16, 28, 53, .35);
  transform: rotate(-4deg); animation: pp-float 4s ease-in-out infinite; }
.pp-phone::before { content: ""; position: absolute; inset: 4px; border-radius: 18px; background: linear-gradient(180deg, #2C5E93, #7FB3E6); }
.pp-phone-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 8px 6px; color: #fff; font: 600 9px var(--font); }
.pp-phone-top i { width: 26px; height: 6px; border-radius: 4px; background: #101C35; }
.pp-notif { position: relative; display: flex; gap: 5px; align-items: flex-start; margin: 0 2px 5px; padding: 5px 6px; border-radius: 10px; background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(-8px) scale(.96); animation: pp-notif 7.5s infinite; }
.pp-notif img { flex: none; width: 16px; height: 16px; border-radius: 4px; }
.pp-notif p { margin: 0; font: 9.5px/1.25 var(--font); color: #1A2433; }
.pp-notif b { display: block; font-size: 9px; color: #101C35; }
.pp-n1 { animation-delay: .6s; } .pp-n2 { animation-delay: 1.9s; } .pp-n3 { animation-delay: 3.2s; }
.pp-bell { position: absolute; left: -16px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 6px 14px rgba(198, 61, 37, .45); animation: pp-ring 2.5s .6s ease-in-out infinite; }
.pp-bell .icon { width: 17px; height: 17px; }
.pp-bell i { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(198, 61, 37, .5); animation: pp-wave 2.5s .6s ease-out infinite; }
.pp-bell i + i { animation-delay: 1s; }

.pp-body { padding: 18px 20px 16px; text-align: center; }
.pp-body h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; color: var(--navy); }
.pp-body > p { margin: 0 auto 12px; max-width: 460px; font-size: 14.5px; line-height: 1.5; color: #4B5565; }
.pp-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.pp-perks li { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--navy); }
.pp-perks .icon { width: 15px; height: 15px; color: var(--success); }
.pp-cta { width: 100%; max-width: 420px; min-height: 52px; font-size: 16px; border-radius: 14px; box-shadow: 0 8px 20px rgba(198, 61, 37, .32); animation: pp-pulse 2.6s 1.5s ease-in-out infinite; }
.pp-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.pp-link { padding: 6px 4px; border: 0; background: none; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; }
.pp-link:hover { color: var(--navy); }
@media (min-width: 768px) {
  .pp-sheet { left: 50%; right: auto; bottom: 24px; width: 440px; border-radius: 24px; transform: translate(-50%, 120%); }
  .pp.is-in .pp-sheet { transform: translate(-50%, 0); }
}

@keyframes pp-ride { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes pp-carve { 0%, 100% { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(22deg) translateY(2px); } }
@keyframes pp-spray { from { opacity: .9; transform: translateX(0) scale(.6); } to { opacity: 0; transform: translateX(-14px) scale(1.3); } }
@keyframes pp-snow { from { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } to { transform: translate(18px, 200px); opacity: 0; } }
@keyframes pp-sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pp-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-5px); } }
@keyframes pp-notif { 0% { opacity: 0; transform: translateY(-8px) scale(.96); } 6%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes pp-ring { 0%, 60%, 100% { transform: rotate(0); } 8% { transform: rotate(-16deg); } 16% { transform: rotate(14deg); } 24% { transform: rotate(-10deg); } 32% { transform: rotate(6deg); } 40% { transform: rotate(0); } }
@keyframes pp-wave { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }
@keyframes pp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) {
  .pp *, .pp-sheet { animation: none !important; transition: none !important; }
  .pp-notif { opacity: 1; transform: none; }
  .pp-track { display: none; }
}

/* Admin : tribus animées */
.an-intro { margin-bottom: 12px; }
.an-wrap { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.an-list { margin: 0; padding: 6px; list-style: none; max-height: 72vh; overflow: auto; }
.an-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--navy); }
.an-item:hover { background: #F5F7FA; } .an-item.is-active { background: var(--accent-soft); }
.an-item-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.an-item-text small { color: var(--muted); font-size: 12px; }
.an-last { font-size: 13px; color: #4B5565; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-item.has-unread .an-last { font-weight: 600; color: var(--navy); }
.an-side { display: grid; justify-items: end; gap: 4px; flex: none; font-size: 11.5px; color: var(--muted); }
.an-none { padding: 18px; color: var(--muted); font-size: 14px; }
.an-thread { padding: 0; display: flex; flex-direction: column; min-height: 420px; max-height: 76vh; overflow: hidden; }
.an-pick { display: grid; place-items: center; gap: 6px; flex: 1; color: var(--muted); padding: 40px; }
.an-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.an-head h2 { margin: 0; font-size: 16px; }
.an-head p { margin: 2px 0 0; }
.an-app { display: flex; gap: 10px; align-items: center; padding: 8px 16px; background: #FBFCFE; border-bottom: 1px solid var(--border); font-size: 13px; color: #4B5565; }
.an-msgs { flex: 1; overflow: auto; margin: 0; padding: 14px 16px; list-style: none; display: grid; gap: 8px; align-content: start; background: #F4F6F9; }
.an-sys { justify-self: center; max-width: 90%; padding: 5px 10px; border-radius: 8px; background: #E7EEF7; font-size: 12.5px; color: #3E4B5E; text-align: center; }
.an-msg { display: flex; } .an-msg.is-team { justify-content: flex-end; }
.an-msg > div { max-width: 78%; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1.5px rgba(16,28,53,.1); font-size: 14.5px; line-height: 1.45; }
.an-msg.is-team > div { background: #FFE6DF; }
.an-author { display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.an-msg time { display: block; margin-top: 3px; font-size: 11px; color: #7C8796; text-align: right; }
.an-form { padding: 12px 16px; border-top: 1px solid var(--border); background: #fff; display: grid; gap: 8px; }
.an-form textarea { width: 100%; resize: vertical; }
.an-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.an-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.an-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.an-hint .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; }
@media (max-width: 900px) { .an-wrap { grid-template-columns: 1fr; } }
.ch-demo { display: inline-block; margin-bottom: 3px; padding: 1px 7px; border-radius: 999px; background: #EEF2F7; color: #5A6779; font-size: 11px; font-weight: 600; }

.gc-masked { margin-top: 2px; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: #8A96A6; font-variant-numeric: tabular-nums; }
.gc-reveal { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--border); border-radius: 10px;
  background: #F7F9FB; color: var(--navy); font: 600 14px var(--font); cursor: pointer; transition: background var(--t); }
.gc-reveal:hover { background: #EEF2F7; }
.gc-reveal .icon { width: 17px; height: 17px; }
.gc-card .gc-actions:not([hidden]) { animation: fete-rise .25s both; }

/* Membres de la tribu : grille régulière, chaque carte alignée en haut */
.portraits.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; margin: 4px 0 0; padding: 0; list-style: none; align-items: start; }
.pm { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.pm .avatar { margin-bottom: 4px; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(16, 28, 53, .12); }
.pm-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 1.25; color: var(--navy); }
.pm-role { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #F1F4F8; color: #4B5565; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pm-role.is-chef { background: var(--accent-soft); color: var(--accent); }
.pm-extra { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.pm .rv-badge { margin-top: 0; }
@media (max-width: 767px) {
  .portraits.pm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .pm-name { font-size: 15px; }
  .pm-role { font-size: 12px; padding: 2px 8px; }
}

/* Station, discipline, niveau : petites pastilles qui passent à la ligne proprement */
.tp-meta { flex-wrap: wrap; gap: 8px; padding-left: 0; }
.tp-meta > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #F1F4F8; color: #3E4B5E;
  font-size: 14.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.tp-meta > span .icon { width: 15px; height: 15px; color: #6B7686; }
/* Icône d’aide du niveau : zone tactile confortable sans changer son apparence */
.tp-level-link { position: relative; }
.tp-level-link::after { content: ""; position: absolute; inset: -12px; }
.pf-crumbs a { position: relative; }
.pf-crumbs a::after { content: ""; position: absolute; inset: -12px -8px; }

/* Page tribu (mobile) : membres en grille de 3 colonnes (6 personnes = 2 rangées compactes), place libre dans la grille */
@media (max-width: 767px) {
  .tp-row, .tp-row:is(*) { align-items: stretch; }
  .tp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; row-gap: 18px; width: 100%; align-items: start; }
  .tp-member, .tp-member + .tp-member { flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; min-height: 0; text-align: center; min-width: 0; }
  .tp-member .tp-face, .tp-member .has-crown .tp-face { width: 72px; height: 72px; }
  .tp-member .tp-initial { font-size: 26px; }
  .tp-member > div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
  .tp-member strong { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 15px; line-height: 1.2; white-space: normal; max-width: 100%; }
  .tp-member .tp-age { margin: 0; font-size: 12.5px; font-weight: 500; }
  .tp-member .tp-chef { font-size: 11.5px; padding: 2px 8px; }
  .tp-member .tp-with { font-size: 12px; color: var(--muted); }
  .tp-member .tp-profile { font-size: 12.5px; white-space: nowrap; }
  .tp-member .tp-profile .icon { width: 12px; height: 12px; }
  .tp-free { padding: 0; border: 0; width: 100%; height: 100%; }
  .tp-free .tp-seat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; min-height: 136px;
    padding: 10px 6px; border: 1.5px dashed #F1B9B0; border-radius: 14px; background: #FFF8F6; text-align: center; }
  .tp-free .tp-seat img { width: 54px; height: auto; flex: none; }
  .tp-free .tp-seat span { opacity: 1; transform: none; font-size: 13px; font-weight: 700; color: var(--accent); }
}

/* Fenêtre « Rejoindre » : carte de profil alignée (photo · prénom et niveau · bouton) */
.ps-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ps-card .avatar { flex: none; width: 60px; height: 60px; }
.ps-text { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 6px; }
.ps-name { display: flex; align-items: baseline; gap: 8px; font-size: 18px; color: var(--navy); }
.ps-name span { font-size: 13px; font-weight: 500; color: var(--muted); }
.ps-level { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #E8F0FA; color: #1E3A5F; font-size: 13px; font-weight: 600; }
.ps-level .icon { width: 15px; height: 15px; }
.ps-level.is-empty { background: #F1F4F8; color: var(--muted); font-weight: 500; }
.ps-edit { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.ps-edit .icon { width: 14px; height: 14px; }
.ps-edit:hover { background: #F4F6FA; }
@media (max-width: 380px) { .ps-edit span { display: none; } .ps-edit { padding: 9px; } }

/* Tribu formée en vitrine : badge « Tribu complète » */
.hcard, .result-row { position: relative; }
.badge-complete { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--success); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 12px rgba(31, 107, 58, .3); }
.badge-complete .icon { width: 14px; height: 14px; }
.hcard.is-complete, .result-row.is-complete { border-color: #BFE0C9; }
.btn-join.is-ghost { background: #fff; color: var(--success); border: 1.5px solid #BFE0C9; }
.rv-left { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: #FFF4D6; color: #8A6100; font-size: 12px; font-weight: 600; }
.mg-menu a[role="menuitem"] { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 8px; font: 600 14px/1.2 var(--font); color: var(--navy); text-decoration: none; }
.mg-menu a[role="menuitem"]:hover, .mg-menu a[role="menuitem"]:focus-visible { background: #F4F7FB; outline: none; }
.mg-menu a[role="menuitem"] .icon { width: 18px; height: 18px; }
.mg-menu a[role="menuitem"] + button { border-top: 1px solid #EEF1F5; }

/* Bouton Accepter (vert) et vérification du niveau avant d’accepter */
.btn-accept { background: #1F8A4C; border-color: #1F8A4C; color: #fff; }
.btn-accept:hover { background: #18723E; border-color: #18723E; color: #fff; }
.btn-accept:disabled { background: #9CCFB0; border-color: #9CCFB0; color: #fff; cursor: not-allowed; }
.btn-accept .icon { color: #fff; }
.acc-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.acc-levels > div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.acc-levels span { font-size: 12.5px; color: var(--muted); }
.acc-levels strong { font-size: 15px; color: var(--navy); }
.acc-levels .is-warn { border-color: #F3D9B5; background: #FFF8EE; }
.acc-tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--ice); }
.acc-tip > .icon { flex: none; width: 22px; height: 22px; color: var(--focus); margin-top: 1px; }
.acc-tip strong { display: block; margin-bottom: 4px; color: var(--navy); }
.acc-tip p { margin: 0; font-size: 14px; line-height: 1.5; color: #3E4B5E; }
.acc-warn { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF4D6; color: #6B4E00; font-size: 13.5px; }
.acc-warn .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.acc-check { margin-top: 14px; }
@media (max-width: 480px) { .acc-levels { grid-template-columns: 1fr; } }

/* ===================== Revue UX : corrections ===================== */
/* P1-2/P1-3 Page tribu : plus de bandes vides sur ordinateur ; sur mobile, les membres avant la carte d’inscription */
.tribe-page { grid-template-areas: "head aside" "photo aside" "members aside" "word aside" ". aside"; grid-template-rows: auto auto auto auto 1fr; }
.tp-aside { grid-row: 1 / span 5; }
@media (max-width: 1023px) {
  .tribe-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "members" "aside" "word"; grid-template-rows: none; }
  .tp-aside { grid-row: auto; }
}
/* P1-1 « Faites connaissance » (mobile) : liens « Voir le profil » alignés, place libre plus légère */
@media (max-width: 767px) {
  .tp-list { align-items: stretch; }
  .tp-member, .tp-member + .tp-member { height: 100%; }
  .tp-member > div { flex: 1; }
  .tp-member .tp-profile { margin-top: auto; padding: 8px 4px; }
  .tp-free .tp-seat { min-height: 0; border-width: 1px; padding: 12px 6px; }
  .tp-free .tp-seat img { width: 44px; }
}
/* P1-4 Connexion / inscription (mobile) : le formulaire d’abord, le visuel réduit à un bandeau */
@media (max-width: 767px) {
  .ap-hero { min-height: 0; height: 120px; }
  .ap-hero-body { padding: 14px 18px; gap: 0; }
  .ap-hero-body > *:not(.ap-hero-title) { display: none; }
  .ap-hero-title { font-size: 21px; }
}
.ap-hero-title span { text-shadow: 0 1px 8px rgba(8, 18, 45, .55); }
/* P1-5 Fenêtres (mobile) : pied aligné sur le contenu */
@media (max-width: 767px) { .modal-footer { padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); } }
/* P1-6 Créneaux : ne débordent plus sur petit écran */
@media (max-width: 420px) {
  .slot-rows { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
  .slot-rows .icon { display: none; }
}
/* P2-7 Un seul style de lien secondaire (bleu marine, souligné au survol) */
.g-next-links .link, .g-next .link { color: var(--navy); font-weight: 600; text-decoration: none; }
.g-next-links .link:hover, .g-next .link:hover { text-decoration: underline; }
/* P1-9 Niveaux : accordéon + onglets collants */
.lv-tabs { position: sticky; top: 60px; z-index: 5; display: flex; gap: 8px; margin: 0 0 14px; padding: 8px 0; background: var(--bg); overflow-x: auto; }
.lv-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.lv-tabs a:hover { border-color: #B9C5D3; }
.levels-group { scroll-margin-top: 120px; }
.lv-acc { display: block; padding: 0; }
.lv-acc > summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.lv-acc > summary::-webkit-details-marker { display: none; }
.lv-acc .level-step { flex: none; }
.lv-head { flex: 1; min-width: 0; display: grid; gap: 3px; }
.lv-head strong { font-size: 16.5px; color: var(--navy); }
.lv-head .level-terrain { margin: 0; font-size: 13.5px; }
.lv-head .level-adult { justify-self: start; }
.lv-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform var(--t); }
.lv-acc[open] .lv-chev { transform: rotate(180deg); }
.lv-acc .level-body { padding: 0 16px 16px 62px; }
.lv-acc[open] { box-shadow: 0 6px 20px rgba(16, 28, 53, .08); }
.lv-acc { scroll-margin-top: 120px; }
@media (max-width: 767px) { .lv-acc .level-body { padding: 0 14px 14px 14px; } .lv-tabs { top: 61px; } }
/* P1-10 Conditions (mobile) : texte plus large, bouton « Sommaire » toujours accessible */
.lg-top { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(16, 28, 53, .25); }
@media (min-width: 768px) { .lg-top { bottom: 24px; } }
#lg-sommaire { scroll-margin-top: 80px; }
@media (max-width: 767px) {
  .lg-page { padding-left: 0; padding-right: 0; }
  .lg-card { padding: 18px 16px; border-radius: 14px; }
  .lg-toc { gap: 6px; }
  .lg-toc a { min-height: 40px; display: inline-flex; align-items: center; }
}
/* P2-1 Résultats (ordinateur) : colonnes alignées d’une carte à l’autre */
@media (min-width: 1024px) { .result-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 200px 130px; } }
/* P2-2 Recherche (mobile) : une colonne, valeurs lisibles, bouton avec texte */
@media (max-width: 767px) {
  .search-bar.compact { grid-template-columns: 1fr; }
  .search-bar.compact .search-field:first-of-type { grid-column: auto; }
  .search-bar.compact .search-submit-label { display: inline; }
  .search-bar.compact .search-submit { width: 100%; justify-content: center; }
}
/* P2-4 Résultats (mobile) : cartes plus compactes */
@media (max-width: 767px) {
  .result-row { gap: 10px; padding: 14px 16px; }
  .result-row .avatar-result { width: 52px; height: 52px; }
  .result-person { align-items: center; }
}
/* P2-15 Demandes : boutons 44 px, Accepter seul bouton principal (vert), avatar plus discret sur mobile */
.req-actions .btn { min-height: 44px; }
.req-actions .btn-accept { border-color: #1F8A4C; }
.only-sm { display: none; }
@media (max-width: 767px) {
  .only-sm { display: inline; } .hide-sm { display: none; }
  .req-item .avatar-request { width: 56px; height: 56px; }
}
/* P2-9 Paramètres : cartes espacées, boutons d’écoute en grille */
.narrow > .card + .card { margin-top: 12px; }
.st-sounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.st-sounds > span { grid-column: 1 / -1; }
/* P2-16 Profil (mobile) : photo empilée, en-tête plus sobre */
@media (max-width: 767px) {
  .pf-banner { display: none; }
  .pf-head h1 { font-size: 24px; }
  .pf-photo { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .pf-photo-text { padding-left: 0; border-left: 0; justify-items: center; }
  .pf-photo-btns { justify-content: center; }
}
/* P2-17 Pages de compte (mobile) : pied de page réduit aux liens légaux */
@media (max-width: 767px) {
  body.is-app .ft-top > .ft-brand, body.is-app .ft-top > .ft-col:not([aria-label="Informations légales"]) { display: none; }
  body.is-app .ft-illu { display: none; }
  body.is-app .page { padding-bottom: 96px; }
}
/* P2-18 Bulle « Ta place ? » : n’apparaît qu’une fois le télésiège entré dans l’image (plus de bulle coupée au bord) */
.chair-seat em { animation: sl-bubble 18s linear var(--delay) infinite; }
.slope-hero .chair-seat em { animation-duration: 16s; }
@keyframes sl-bubble { 0%, 9% { opacity: 0; } 13%, 86% { opacity: 1; } 90%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chair-seat em { animation: none; } }
/* P2-13 Conversation : encarts alignés sur la même largeur */
.ch-safe { align-self: stretch; max-width: none; margin: 8px 0 6px; }
.ch-safe span { display: flex; width: 100%; box-sizing: border-box; }
.ch-banner { margin: 10px 14px 0; }
/* P3-4 Confettis derrière la carte de la fenêtre (le texte reste lisible) */
.modal-shell { position: relative; z-index: 6; }
/* P3-2 Bouton désactivé « Inscriptions terminées » : état neutre lisible */
.tp-cta .btn:disabled, .tp-join:disabled { background: #EEF1F5; border-color: #E1E6EE; color: #4B5565; opacity: 1; }
/* P3-1 Zones tactiles confortables (≥ 44 px) sans changer l’apparence */
.tp-profile, .back-link, .tp-write, .ft-col a, .mt2-links button, .mt2-links a { position: relative; }
.tp-profile::after, .back-link::after, .tp-write::after, .mt2-links button::after, .mt2-links a::after { content: ""; position: absolute; inset: -10px -4px; }
@media (max-width: 767px) { .ft-col a { display: inline-block; padding: 6px 0; } }
/* P2-11 Fenêtre « Rejoindre » : bouton profil 44 px, texte au-dessus du sélecteur de places sur mobile */
.ps-edit { min-height: 44px; min-width: 44px; justify-content: center; }
@media (max-width: 480px) {
  .join-counter .counter-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .join-counter .counter-row > div:first-child { max-width: none; }
}
/* En-tête de fenêtre : séparation discrète quand on fait défiler le contenu */
.modal-content { border-top: 1px solid transparent; }

/* Bouton Accepter : toujours vert, y compris dans un pied de fenêtre (qui grise les boutons secondaires). */
.modal-footer .btn.btn-accept, .btn.btn-accept { background: #1F8A4C; border-color: #1F8A4C; color: #fff; }
.modal-footer .btn.btn-accept:hover { background: #18723E; border-color: #18723E; }
.modal-footer .btn.btn-accept:disabled, .btn.btn-accept:disabled { background: #9CCFB0; border-color: #9CCFB0; color: #fff; opacity: 1; }
@media (max-width: 520px) {
  .modal-footer:has(.btn-accept) { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .modal-footer:has(.btn-accept) .btn { width: 100%; min-width: 0; white-space: nowrap; }
}

/* ===== Page tribu : refonte selon la maquette (« Votre tribu · Faites connaissance », places libres, carte et bouton flottant) ===== */
.tp-member { position: relative; }
.tp-hit { position: absolute; inset: -4px; border: 0; background: none; padding: 0; border-radius: 14px; cursor: pointer; }
.tp-hit:hover { background: rgba(6, 14, 47, .03); }
.tp-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-eyebrow { margin: 32px 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B7383; }
.tp-members .tp-eyebrow + h2 { margin-top: 0; }
.tp-ring { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed #B9C2CF; color: #6B7383; background: #fff; transition: border-color var(--t), color var(--t); }
.tp-ring .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.tp-free .tp-seat { display: grid; justify-items: center; gap: 6px; color: #4B5565; text-decoration: none; }
.tp-free .tp-seat > span:not(.tp-ring) { opacity: 1; transform: none; font-size: 13px; font-weight: 500; color: #4B5565; white-space: nowrap; }
.tp-free button.tp-seat:hover .tp-ring, .tp-free a.tp-seat:hover .tp-ring { border-color: var(--accent); color: var(--accent); }
.tp-free .tp-seat:hover { background: none; }
.tp-allprofiles { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; margin-top: 12px; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.tp-allprofiles .icon { width: 17px; height: 17px; }
.tp-allprofiles:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-row { flex-wrap: wrap; }
.tp-sub { margin: 4px 0 0; color: #4B5565; font-size: 15px; }
.tp-cta-top { margin-top: 14px; }
.tp-join .icon { width: 18px; height: 18px; margin-left: 6px; }
.tp-cta-top + .countdown, .tp-cta-top ~ .countdown { margin-top: 16px; }
.tp-float { display: none; }

@media (max-width: 1023px) {
  /* En-tête : titre, puis le statut sur sa propre ligne, puis les repères */
  .tp-title { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tp-title h1 { font-size: 30px; }
  /* Membres : grille alignée (3 par rangée ; 4 côte à côte quand il y a 4 vignettes) */
  .tp-list, .tp-list:is(*) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; row-gap: 20px; width: 100%; align-items: start; }
  .tp-list.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 4px; }
  .tp-member, .tp-member + .tp-member { flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; min-height: 0; text-align: center; min-width: 0; }
  .tp-member > div { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 100%; }
  .tp-member strong { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 15.5px; font-weight: 700; line-height: 1.2; white-space: normal; }
  .tp-member .tp-age { margin: 0; font-size: 13px; font-weight: 500; color: #4B5565; }
  .tp-member .tp-face, .tp-member .has-crown .tp-face { width: 72px; height: 72px; }
  .tp-list.is-four .tp-member .tp-face, .tp-list.is-four .tp-member .has-crown .tp-face { width: 66px; height: 66px; }
  .tp-member .tp-chef { background: #FFF1C9; color: #6B4E00; font-size: 12px; padding: 2px 9px; }
  .tp-free, .tp-free:is(*) { padding: 0; border: 0; width: 100%; height: auto; }
  .tp-free .tp-seat, .tp-free .tp-seat:is(*) { display: grid; justify-items: center; gap: 8px; width: 100%; min-height: 0; padding: 0; border: 0; background: none; border-radius: 0; }
  .tp-ring { width: 72px; height: 72px; }
  .tp-list.is-four .tp-ring { width: 66px; height: 66px; }
  .tp-free .tp-seat > span:not(.tp-ring) { font-size: 13.5px; }
  .tp-allprofiles { margin-top: 16px; }
  /* Compteur sous un trait fin */
  .tp-count, .tp-count:is(*) { display: grid; gap: 2px; width: 100%; flex: 1 1 100%; margin-top: 16px; padding: 18px 0 0; border: 0; border-top: 1px solid #E8ECF1; }
  .tp-count strong { font-family: var(--font-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
  .tp-count span { font-size: 14px; color: #6B7383; }
  /* Carte « Envie de skier avec eux ? » */
  .tp-aside h2 { font-size: 21px; letter-spacing: -.02em; }
  .tp-cta-top { margin: 14px 0 0; }
  .tp-cta-top .tp-join { width: 100%; }
  .tp-cta-top .tp-hint { text-align: center; }
  /* Bouton rouge flottant, fixe pendant le défilement */
  .tp-float { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(255, 255, 255, .97) 70%, rgba(255, 255, 255, 0)); transition: opacity .2s, transform .2s; }
  .tp-float .btn { width: 100%; min-height: 50px; font-size: 16.5px; font-weight: 700; border-radius: 12px; box-shadow: 0 8px 22px rgba(227, 16, 31, .28); }
  .tp-float .btn .icon { width: 18px; height: 18px; margin-left: 6px; }
  .tp-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
  body.has-tp-float .page, body.has-tp-float main { padding-bottom: 96px; }
}
@media (max-width: 767px) {
  .tp-float { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 10px; background: linear-gradient(to top, rgba(255, 255, 255, .97) 70%, rgba(255, 255, 255, 0)); }
  body.has-tp-float .page, body.has-tp-float main { padding-bottom: 150px; }
  .tp-title h1 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .tp-list { flex-wrap: wrap; }
  .tp-free .tp-seat { padding: 0 6px; }
}
.tp-ring .icon, .tp-free .tp-seat .tp-ring .icon { color: #6B7383; stroke: currentColor; }
.tp-free button.tp-seat:hover .tp-ring .icon, .tp-free a.tp-seat:hover .tp-ring .icon { color: var(--accent); }
.tp-seat .tp-ring { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .tp-row, .tp-row:is(*) { display: block; }
  .tp-list, .tp-list:is(*), .tp-list.is-four { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 8px; row-gap: 20px; width: 100%; align-items: start; }
  .tp-member, .tp-member + .tp-member { flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; min-height: 0; text-align: center; min-width: 0; }
  .tp-member > div { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 100%; }
  .tp-member strong { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 15.5px; font-weight: 700; line-height: 1.2; white-space: normal; }
  .tp-member .tp-age { margin: 0; font-size: 13px; font-weight: 500; color: #4B5565; }
  .tp-member .tp-face, .tp-member .has-crown .tp-face { width: 76px; height: 76px; }
  .tp-member .tp-chef { background: #FFF1C9; color: #6B4E00; font-size: 12px; padding: 2px 9px; }
  .tp-free, .tp-free:is(*) { padding: 0; border: 0; width: 100%; }
  .tp-free .tp-seat, .tp-free .tp-seat:is(*) { display: grid; justify-items: center; gap: 8px; width: 100%; padding: 0; }
  .tp-ring { width: 76px; height: 76px; }
  .tp-free .tp-seat > span:not(.tp-ring) { font-size: 13.5px; }
  .tp-count, .tp-count:is(*) { display: grid; gap: 2px; width: 100%; margin-top: 16px; padding: 18px 0 0; border: 0; border-top: 1px solid #E8ECF1; }
  .tp-count strong { font-family: var(--font-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: normal; }
  .tp-count span { font-size: 14px; color: #6B7383; }
  .tp-aside h2 { font-size: 22px; letter-spacing: -.02em; }
  .tp-cta-top .tp-join { width: 100%; }
}

/* Page tribu épurée : détails repliés dans deux menus déroulants */
.tp-acc { margin-top: 16px; border-top: 1px solid #E8ECF1; }
.tp-dd { border-bottom: 1px solid #E8ECF1; }
.tp-dd summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--navy); }
.tp-dd summary::-webkit-details-marker { display: none; }
.tp-dd summary > .icon { width: 18px; height: 18px; color: #6B7383; flex: none; }
.tp-dd summary > span { flex: 1; }
.tp-dd summary em { font-style: normal; font-weight: 500; font-size: 13px; color: #6B7383; white-space: nowrap; }
.tp-dd .tp-chev { transform: rotate(180deg); transition: transform .2s; }
.tp-dd[open] .tp-chev { transform: none; }
.tp-dd-rows { margin: 0 0 8px; padding: 0; }
.tp-dd-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: #2A3142; border-top: 1px dashed #EEF1F5; }
.tp-dd-rows li:first-child { border-top: 0; }
.tp-dd-rows li span:last-child { color: #6B7383; white-space: nowrap; }
.tp-dd-facts { margin: 0 0 6px; padding: 0; }
.tp-dd-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 14px; }
.tp-dd-facts li > span { color: #6B7383; white-space: nowrap; }
.tp-dd-facts li > strong { text-align: right; font-weight: 600; color: var(--navy); }
.tp-dd-facts .tp-level-link { display: block; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.tp-dd-price { margin: 4px 0 6px; }
.tp-dd-price li { font-size: 14px; min-height: 0; gap: 10px; }
.tp-dd-price .icon { width: 18px; height: 18px; }
.tp-dd-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-size: 12.5px; line-height: 1.45; color: #6B7383; }
.tp-dd-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.tp-dd-note a { color: inherit; text-decoration: underline; }
.tp-aside .countdown { margin-top: 16px; }
/* Un mot du chef : trois lignes, puis « Lire la suite » */
.tp-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tp-bio.is-open { -webkit-line-clamp: unset; display: block; }
.tp-more { border: 0; background: none; padding: 6px 0 0; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.tp-word blockquote { font-style: normal; }
.tp-dd summary > span { white-space: nowrap; }
/* Compte à rebours de la carte : une ligne discrète */
.tp-aside .cd, .tp-aside .cd:is(*) { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0; border: 0; background: none; box-shadow: none; }
.tp-aside .cd > .icon { width: 16px; height: 16px; color: #D62F2F; flex: none; }
.tp-aside .cd > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 13.5px; }
.tp-aside .cd small { display: none; }
.tp-aside .cd-seg { font-size: 12px; }
.tp-aside .cd-seg b { font-size: 14px; }
.tp-aside .cd.is-over > div { font-size: 13.5px; }

/* ===== Fenêtre « Rejoindre une tribu » (maquette) ===== */
.modal-shell.is-join .modal-top-row .btn-icon-spacer { display: none; }
.modal-shell.is-join .modal-top-row { justify-content: space-between; }
.modal-shell.is-join .modal-label { display: none; }
.jn-eyebrow { margin: 4px 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B7383; }
.jn-title { font-family: var(--font-title); font-size: 26px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; color: #060E2F; }
.jn-lead { margin: 6px 0 18px; color: #4B5565; font-size: 15.5px; }
.modal-shell.is-join .ps-card { border-radius: 16px; background: #F3F6FA; border: 0; }
.jn-tip { display: flex; gap: 8px; align-items: center; margin: 10px 2px 0; font-size: 13px; color: #6B7383; }
.jn-tip .icon { width: 15px; height: 15px; flex: none; }
.jn-tip a { color: var(--accent); font-weight: 600; }
.jn-block { padding: 22px 0; }
.jn-block + .jn-block { border-top: 1px solid #E8ECF1; }
.jn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jn-h { font-family: var(--font-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #060E2F; margin: 0; }
.jn-h label { font: inherit; color: inherit; margin: 0; }
.jn-sub { margin: 3px 0 0; font-size: 14px; color: #4B5565; }
.jn-pill { flex: none; padding: 4px 12px; border-radius: 999px; background: #FDECEC; color: var(--accent); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.jn-counter { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.jn-counter .btn-round { width: 44px; height: 44px; }
.jn-counter output { display: grid; justify-items: center; min-width: 44px; line-height: 1.05; }
.jn-counter output b { font-family: var(--font-title); font-size: 28px; font-weight: 800; color: #060E2F; }
.jn-counter output span { font-size: 13px; color: #4B5565; }
.jn-hint { margin: 12px 0 0; font-size: 13.5px; color: #4B5565; }
.jn-msg .field { margin: 12px 0 0; }
.jn-msg textarea { min-height: 84px; border-radius: 12px; }
.jn-sessions { margin: 4px 0 6px; border: 1px solid #E3E8EF; border-radius: 14px; background: #fff; overflow: hidden; }
.jn-sessions summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-size: 15.5px; font-weight: 700; color: #060E2F; background: #FAFBFD; }
.jn-sessions summary::-webkit-details-marker { display: none; }
.jn-sessions summary > .icon { width: 20px; height: 20px; flex: none; }
.jn-sessions summary > span { flex: 1; }
.jn-chev { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .2s; }
.jn-sessions[open] .jn-chev { transform: none; }
.jn-sessions ul { margin: 0; padding: 0 16px; }
.jn-sessions li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 9px 0; border-top: 1px solid #EEF1F5; font-size: 14px; }
.jn-sessions li strong { font-weight: 600; color: #060E2F; }
.jn-sessions li span { color: #2A3142; white-space: nowrap; }
.jn-all { display: block; border: 0; background: none; padding: 4px 16px 14px; color: #060E2F; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Pied : bouton pleine largeur, une phrase, Annuler en lien */
.modal-shell.is-join .modal-footer { display: grid; justify-items: center; gap: 6px; flex-direction: column; padding-top: 12px; }
.modal-shell.is-join .jn-send { width: 100%; min-height: 50px; font-size: 16.5px; font-weight: 700; border-radius: 12px; }
.modal-shell.is-join .jn-send .icon { width: 18px; height: 18px; margin-left: 6px; }
.jn-foot { margin: 2px 0 0; font-size: 13px; color: #4B5565; text-align: center; }
.jn-safe { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 0; font-size: 11.5px; color: #8A93A3; text-align: center; }
.jn-safe .icon { width: 12px; height: 12px; flex: none; }
.jn-safe a { color: inherit; text-decoration: underline; }
.jn-cancel { border: 0; background: none; padding: 8px 16px; font-size: 15px; font-weight: 600; color: #060E2F; cursor: pointer; }
.jn-cancel:hover { text-decoration: underline; }
.modal-shell.is-join .modal-top-row { display: flex; justify-content: space-between; }
.modal-shell.is-join .ps-edit span { display: inline; }
.modal-shell.is-join .ps-edit { padding: 8px 12px; }
.modal-shell.is-join .ps-card { gap: 12px; padding: 14px; }
.modal-shell.is-join .ps-card .avatar { width: 56px; height: 56px; }
.modal-shell.is-join .modal-footer { gap: 2px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.modal-shell.is-join .jn-cancel { padding: 6px 16px; }
.jn-safe { margin: 14px 0 4px; justify-content: flex-start; text-align: left; align-items: flex-start; }
.jn-safe .icon { margin-top: 2px; }
@media (max-width: 420px) { .jn-title { font-size: 23.5px; } .jn-sub { font-size: 13.5px; } }
.modal-shell.is-join .modal-footer { grid-template-columns: minmax(0, 1fr); justify-items: stretch; text-align: center; }
.modal-shell.is-join .modal-footer .jn-send { max-width: none; min-width: 0; flex: none; justify-self: stretch; }
.modal-shell.is-join .jn-cancel { justify-self: center; background: none; border: 0; min-width: 0; min-height: 0; }
.modal-shell.is-join .kid-field { margin: 0; }
.modal-shell.is-join .kid-field legend { font-family: var(--font-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #060E2F; margin-bottom: 3px; }
.modal-shell.is-join .kid-field .field-hint { font-size: 14px; color: #4B5565; }

/* ===== Pied de page (maquette) : accroche, mise en relation gratuite, rubriques dépliables sur mobile ===== */
.ft-claim { font-family: var(--font-title); font-weight: 800; letter-spacing: -.03em; color: #060E2F; font-size: 22px !important; line-height: 1.15 !important; margin-top: 16px !important; }
.ft-free { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ft-free .ft-badge { margin-top: 0 !important; }
.ft-free-note { font-size: 13px; color: #5B6676; }
.ft-acc > summary { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: default; }
.ft-acc > summary::-webkit-details-marker { display: none; }
.ft-sum { display: grid; gap: 2px; }
.ft-sum small { display: none; }
.ft-chev { display: none; }
.ft-acc > nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; }
.ft-go { display: none; }
.ft-mobile-only { display: none !important; }
.ft-mini { display: none; }
.ft-acc h2 { text-transform: none; letter-spacing: -.01em; font-size: 14.5px; }
@media (min-width: 768px) {
  .ft-top { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ft-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
  .ft-contact { display: none; }
}
@media (max-width: 767px) {
  .site-footer { background: #F3F7FC; border-top: 1px solid #E3E8EF; }
  .ft-inner { padding: 36px 20px 0; }
  .ft-top, .ft-top:is(*) { display: block; padding-bottom: 0; }
  .ft-brand .brand-img { height: 46px; }
  .ft-claim { font-size: 30px !important; margin-top: 22px !important; }
  .ft-brand p { max-width: none; font-size: 15.5px; color: #4B5565; }
  .ft-free { margin-top: 18px !important; }
  .ft-free .ft-badge { font-size: 14px; padding: 6px 12px; }
  .ft-free-note { font-size: 14px; color: #4B5565; }
  .ft-acc, .ft-acc:is(*) { display: block; border-top: 1px solid #DCE3EC; margin: 0; }
  .ft-top > .ft-brand + .ft-acc { margin-top: 24px; }
  .ft-acc:last-of-type { border-bottom: 1px solid #DCE3EC; }
  .ft-acc > summary { align-items: center; padding: 20px 0; cursor: pointer; }
  .ft-acc h2, .ft-col.ft-acc h2 { margin: 0; font-family: var(--font-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; text-transform: none; color: #060E2F; }
  .ft-sum small { display: block; font-size: 13.5px; color: #6B7383; }
  .ft-acc[open] .ft-sum small { display: none; }
  .ft-chev { display: block; width: 20px; height: 20px; flex: none; color: #060E2F; transform: rotate(180deg); transition: transform .2s; }
  .ft-acc[open] .ft-chev { transform: none; }
  .ft-acc > nav { gap: 0; margin: -6px 0 0; padding-bottom: 14px; align-items: stretch; }
  .ft-acc > nav > a, .ft-acc > nav > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 2px; font-size: 16px; color: #2A3142; }
  .ft-acc > nav > a:hover, .ft-acc > nav > button:hover { text-decoration: none; color: #060E2F; }
  .ft-go { display: block; width: 18px; height: 18px; color: #4B5565; flex: none; }
  .ft-mobile-only { display: flex !important; }
  .ft-contact { display: none !important; }
  .ft-bottom, .ft-bottom:is(*) { flex-direction: row; justify-content: space-between; align-items: center; border-top: 0; padding: 20px 0 calc(150px + env(safe-area-inset-bottom)); }
  .ft-mini { display: flex; gap: 8px; align-items: center; }
  .ft-mini a { color: #4B5565; font-size: 13.5px; text-decoration: none; }
  .ft-bottom p { font-size: 13.5px; color: #4B5565; }
  .ft-long { display: none; }
  body.is-app .ft-top > .ft-brand, body.is-app .ft-top > .ft-acc:not([data-col="legal"]) { display: none; }
  body.is-app .ft-top > .ft-acc[data-col="legal"] { margin-top: 0; }
  body.is-app .ft-bottom { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
.ft-brand .ft-claim { color: #060E2F !important; }
@media (max-width: 767px) { .ft-free .ft-badge { font-size: 13px; padding: 5px 10px; } .ft-free-note { font-size: 13px; } .ft-free { gap: 8px 10px; flex-wrap: nowrap; } }
@media (max-width: 359px) { .ft-free { flex-wrap: wrap; } }
.ft-contact h2 { text-transform: none; letter-spacing: -.01em; font-size: 14.5px; }
/* Fenêtre « Rejoindre » : personnes qui viennent avec vous */
.jn-comps { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #E3E8EF; }
.jn-comps-title { margin: 0; font-size: 15.5px; font-weight: 700; color: #060E2F; }
.jn-comps ul { margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.jn-comp { position: relative; display: flex; align-items: center; gap: 10px; }
.jn-comp-face { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; overflow: hidden; }
.jn-comp-face img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.jn-comp-add { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed #B9C2CF; color: #6B7383; background: #fff; transition: border-color .2s, color .2s; }
.jn-comp-face:hover .jn-comp-add { border-color: var(--accent); color: var(--accent); }
.jn-comp-add .icon { width: 20px; height: 20px; }
.jn-comp-face:focus-within { outline: 2px solid var(--focus, #2563EB); outline-offset: 2px; }
.jn-comp-name { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #D5DCE5; border-radius: 12px; font-size: 16px; }
.jn-comp-age { flex: none; display: flex; align-items: center; gap: 6px; }
.jn-comp-age input { width: 56px; height: 46px; padding: 0 8px; border: 1px solid #D5DCE5; border-radius: 12px; font-size: 16px; text-align: center; }
.jn-comp-age em { font-style: normal; font-size: 13.5px; color: #6B7383; }
.jn-comp-x { position: absolute; left: 36px; top: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #fff; background: #060E2F; color: #fff; padding: 0; cursor: pointer; }
.jn-comp-x .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.jn-consent { margin-top: 12px; font-size: 13.5px; }
.req-comps { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.req-comps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #4B5565; }
.req-comps img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid #E8ECF1; }
.req-comps strong { color: #060E2F; font-weight: 600; }
#modal .jn-comp input.jn-comp-name { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; height: 46px; }
#modal .jn-comp .jn-comp-age { flex: 0 0 auto; width: auto; }
#modal .jn-comp .jn-comp-age input { flex: none; width: 58px; min-width: 0; max-width: 58px; height: 46px; padding: 0 6px; }
#modal .jn-comp .jn-comp-age em { display: none; }
#modal .jn-comp .jn-comp-age input { width: 64px; max-width: 64px; }

/* ===== Page Messages (maquette) ===== */
.msg-head h1 { margin-bottom: 0; }
.msg-lead { margin: 6px 0 0; color: #4B5565; font-size: 15.5px; }
.msg-search { display: flex; align-items: center; gap: 10px; margin: 4px 4px 8px; padding: 0 14px; height: 46px; border-radius: 14px; background: #F2F4F7; color: #6B7383; }
.msg-search .icon { width: 19px; height: 19px; flex: none; }
.msg-search input, #app .msg-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0; font-size: 15.5px; color: var(--navy); box-shadow: none; outline: none; }
.msg-search:focus-within { box-shadow: 0 0 0 2px var(--focus, #2563EB); }
.conv-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.conv-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-role { flex: none; font-style: normal; font-size: 12px; font-weight: 500; color: #4B5565; background: #EEF1F5; padding: 2px 9px; border-radius: 8px; white-space: nowrap; }
.conv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conv-go { display: none; }
.msg-none { margin: 16px; color: #6B7383; font-size: 14px; text-align: center; }
.msg-hello { display: none; }
@media (max-width: 767px) {
  body:not(.is-thread) .page:has(.msg-head) { background: #fff; }
  .msg-head h1 { font-size: 34px; letter-spacing: -.03em; }
  .messenger .conv-list, .messenger .conv-list:is(*) { padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; border-radius: 0; }
  .msg-search { margin: 18px 0 10px; height: 50px; }
  .conv-list ul { margin: 0; padding: 0; }
  .conv-list li { border-bottom: 1px solid #E8ECF1; }
  .conv, .conv:is(*) { gap: 14px; padding: 16px 0; border-radius: 0; align-items: center; }
  .conv:hover, .conv.is-active { background: none; }
  .conv .avatar, .conv .conv-group .avatar { width: 60px; height: 60px; flex: none; }
  .conv-name strong { font-size: 17px; }
  .conv-sub { font-size: 14.5px; color: #4B5565; }
  .conv-last { font-size: 14.5px; color: #1F2937; margin-top: 2px; }
  .conv-top time { font-size: 13px; color: #6B7383; }
  .conv-go { display: block; flex: none; color: #4B5565; }
  .conv-go .icon { width: 18px; height: 18px; }
  .msg-hello { display: grid; justify-items: center; gap: 10px; padding: 48px 16px 24px; color: #4B5565; text-align: center; }
  .msg-hello .icon { width: 40px; height: 40px; stroke-width: 1.4; }
  .msg-hello p { margin: 0; font-size: 15.5px; }
  /* Pied de page des pages de compte : « Informations utiles » en carte, puis une ligne */
  body.is-app .site-footer { background: #fff; border-top: 0; }
  body.is-app .ft-inner { padding-top: 8px; }
  body.is-app .ft-top > .ft-acc[data-col="legal"], body.is-app .ft-top > .ft-acc[data-col="legal"]:last-of-type { border: 0; border-radius: 16px; background: #F3F5F8; padding: 0 18px; }
  body.is-app .ft-acc[data-col="legal"] > summary { padding: 16px 0; }
  body.is-app .ft-acc[data-col="legal"] h2 { font-size: 17px; }
  body.is-app .ft-bottom, body.is-app .ft-bottom:is(*) { justify-content: center; padding-top: 20px; }
  body.is-app .ft-mini { display: none; }
  /* Barre d'onglets : pastille derrière l'icône de l'onglet actif */
  .mobile-nav a.is-active .icon { box-sizing: content-box; padding: 3px 14px; margin: -3px 0; border-radius: 12px; background: #FDE8E8; }
}
@media (max-width: 767px) {
  .messenger, .messenger:is(*) { grid-template-columns: minmax(0, 1fr); }
  .messenger .conv-list { min-width: 0; width: 100%; }
  .conv-text { min-width: 0; }
  .conv-text > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .conv-top { overflow: visible; }
  .conv-role { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 767px) {
  .conv-top { flex-wrap: nowrap; }
  .conv-name { flex: 1 1 auto; min-width: 0; }
  .conv-name strong { flex: 0 1 auto; min-width: 0; }
  .conv-role, .conv-role:is(*) { flex: none; max-width: none; }
  .conv-top time { flex: none; }
  .conv .count { flex: none; }
}
@media (max-width: 767px) { body.is-app .ft-top > .ft-acc[data-col="legal"] { display: block !important; } body.is-app .ft-top { padding-top: 8px; } }
.req-with { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #F6F8FB; }
.req-with-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7383; }
.req-with .req-comps { margin: 0; gap: 10px 18px; }
.req-with .req-comps img { width: 48px; height: 48px; }
.req-with .req-comps span { display: grid; line-height: 1.25; }
.req-with .req-comps strong { font-size: 15px; }
.req-with .req-comps em { font-style: normal; font-size: 13px; color: #6B7383; }
@media (max-width: 767px) {
  .ft-bottom, .ft-bottom:is(*) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-tp-float .ft-bottom, body.has-tp-float .ft-bottom:is(*) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  .ft-free, .ft-free:is(*) { flex-wrap: wrap; gap: 8px 10px; }
  .ft-free .ft-badge { white-space: nowrap; font-size: 13px; padding: 5px 11px; }
  .ft-free-note { white-space: nowrap; font-size: 13px; }
}
@media (max-width: 767px) {
  .ft-free, .ft-free:is(*) { gap: 6px 8px; }
  .ft-free .ft-badge { font-size: 12.5px; padding: 4px 9px; gap: 5px; }
  .ft-free .ft-badge .icon { width: 13px; height: 13px; }
  .ft-free-note { font-size: 12.5px; }
}
@media (max-width: 767px) {
  .ft-free, .ft-free:is(*) { flex-wrap: nowrap; gap: 8px; }
  .ft-free .ft-badge { flex: none; font-size: 12px; }
  .ft-free-note { flex: 1 1 auto; min-width: 0; white-space: normal; font-size: 12px; line-height: 1.3; }
}
/* Bandeau « Activer les notifications » (Messages, Mes tribus) */
.notify-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: #FFF4F2; border: 1px solid #F8D3CC; }
.notify-banner > .icon { width: 22px; height: 22px; flex: none; color: var(--accent); }
.notify-banner p { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; color: #2A3142; }
.notify-banner .btn { flex: none; }
/* Profil : bloc photo propre (boutons alignés, « Retirer » centré, règle sous les boutons) */
.pf-remove { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; color: #B42318; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pf-remove .icon { width: 15px; height: 15px; }
.pf-remove:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-rule > span { line-height: 1.4; }
@media (max-width: 767px) {
  .pf-photo-text, .pf-photo-text:is(*) { justify-items: center; text-align: center; width: 100%; }
  .pf-photo-btns, .pf-photo-btns:is(*) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 12px 0 4px; justify-content: stretch; }
  .pf-photo-btns .btn { width: 100%; justify-content: center; padding: 8px 6px; font-size: 13.5px; white-space: nowrap; }
  .pf-remove { justify-self: center; margin-top: 2px; }
  .pf-rule, .pf-rule:is(*) { justify-self: center; justify-content: center; align-items: flex-start; text-align: left; max-width: 300px; margin-top: 6px; }
  .pf-rule .icon { margin-top: 2px; }
}
@media (max-width: 340px) { .pf-photo-btns, .pf-photo-btns:is(*) { grid-template-columns: 1fr; } }

/* Page tribu : « Demande envoyée » (maquette) */
.req-sent-main { display: block; color: #1F2937; font-size: 16px; }
.req-sent-sub { display: block; color: #4B5565; font-size: 15px; margin-top: 2px; }
.req-sent-actions { display: grid !important; justify-items: stretch; gap: 8px; margin-top: 14px; }
.req-sent .req-sent-chat { width: 100%; min-height: 48px; font-size: 16px; font-weight: 700; border-radius: 12px; justify-content: center; }
.req-sent .req-sent-chat .icon { width: 19px; height: 19px; }
.req-sent-withdraw { justify-self: center; }
.tp-closing { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; font-size: 15px; color: #4B5565; }
.tp-closing .icon { width: 19px; height: 19px; flex: none; color: #4B5565; }
.tp-closing strong { color: var(--accent); font-weight: 700; }
.tp-aside.is-pending .tp-cta { margin: 0; }
.tp-aside.is-pending .tp-acc { margin-top: 14px; border: 1px solid #E3E8EF; border-radius: 16px; padding: 0 16px; background: #fff; }
.tp-aside.is-pending .tp-dd:last-child { border-bottom: 0; }
@media (max-width: 1023px) {
  .tp-aside.is-pending, .tp-aside.is-pending:is(*) { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 18px; }
  .req-sent, .req-sent:is(*) { padding: 18px 18px 14px; border-radius: 16px; }
  .req-sent-head strong { font-family: var(--font-title); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
}
.req-sent-actions .btn.req-sent-chat { background: var(--accent); border-color: var(--accent); color: #fff; min-height: 48px; padding: 0 16px; font-size: 16px; font-weight: 700; border-radius: 12px; gap: 10px; }
.req-sent-actions .btn.req-sent-chat:hover { background: #C50A18; border-color: #C50A18; }
.req-sent-actions .btn.req-sent-chat .icon { width: 19px; height: 19px; color: #fff; }
.req-sent-actions, .req-sent-actions:is(*) { margin-left: 0; }
.req-sent-text { margin-left: 32px; }
/* Profil (mobile) : fil d'Ariane bien sous le bandeau du haut (la bannière montagne est masquée) */
@media (max-width: 767px) { .pf-crumbs, .pf-crumbs:is(*) { margin: 18px 0 0; } }

/* ===================== Animations et interactions (motion.js) ===================== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Transition entre les pages : l'en-tête et la barre d'onglets restent fixes, seul le contenu glisse */
.site-header { view-transition-name: site-header; }
.mobile-nav { view-transition-name: tab-bar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; animation-timing-function: var(--ease-out); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
html[data-nav-dir="back"]::view-transition-old(root) { animation-name: vt-out-back; }
html[data-nav-dir="back"]::view-transition-new(root) { animation-name: vt-in-back; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-18px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(18px); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-24px); } }
#app.page-in { animation: page-in .3s var(--ease-out); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* Barre d'onglets : pastille qui glisse, icône qui rebondit */
@media (max-width: 767px) {
  .mobile-nav { position: fixed; }
  .mobile-nav a.is-active .icon, .mobile-nav a.is-active .icon:is(*) { background: none; padding: 0; margin: 0; }
  .tab-ink { position: absolute; top: 9px; left: 0; width: 56px; height: 30px; border-radius: 15px; background: #FDE8E8; pointer-events: none; z-index: 0;
    transition: transform .42s var(--ease-spring), opacity .2s; }
  .mobile-nav a { z-index: 1; transition: color .2s; }
  .mobile-nav a .icon { position: relative; transition: transform .25s var(--ease-out); }
  .mobile-nav a:active .icon { transform: scale(.86); }
  .mobile-nav a.is-pop .icon { animation: tab-pop .5s var(--ease-spring); }
  @keyframes tab-pop { 0% { transform: scale(.8); } 55% { transform: scale(1.18) translateY(-2px); } 100% { transform: none; } }
}
/* Compteur qui saute quand il augmente */
.count.is-bump { animation: count-bump .6s var(--ease-spring); }
@keyframes count-bump { 0% { transform: scale(.4); } 50% { transform: scale(1.3); } 100% { transform: none; } }

/* Retours au toucher : boutons, cartes et lignes s'enfoncent légèrement ; onde au point touché */
.btn, .conv, .tp-seat, .mt2-card, .result-row, .home-card, .jn-counter .btn-round, .ft-acc > summary, .tp-dd > summary, .tp-allprofiles, .conv-go {
  transition: transform .18s var(--ease-out), box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.btn:active:not(:disabled), .conv:active, .tp-seat:active, .jn-counter .btn-round:active:not(:disabled) { transform: scale(.97); }
.has-rp { overflow: hidden; isolation: isolate; }
.rp { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; transform: scale(0); pointer-events: none; animation: rp .6s var(--ease-out) forwards; z-index: -1; }
.btn-primary .rp, .btn-accept .rp { background: #fff; opacity: .28; }
@keyframes rp { to { transform: scale(1); opacity: 0; } }
/* Cartes cliquables : légère élévation au survol (ordinateur) */
@media (hover: hover) {
  .mt2-card:hover, .home-card:hover, .result-row:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(6, 14, 47, .10); }
  .conv:hover .conv-go, .tp-allprofiles:hover .icon, .ft-acc > nav > a:hover .ft-go { transform: translateX(3px); }
  .ft-go, .tp-allprofiles .icon { transition: transform .2s var(--ease-out); }
}
/* Apparition en cascade (listes, cartes) et révélation au défilement */
.st-in { animation: st-in .45s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes st-in { from { opacity: 0; transform: translateY(10px); } }
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.rv.rv-in { opacity: 1; transform: none; }
/* En-tête : ombre douce quand la page défile */
.site-header { transition: box-shadow .25s; }
body.is-scrolled .site-header { box-shadow: 0 6px 18px rgba(6, 14, 47, .07); }
/* Menus déroulants : ouverture fluide (navigateurs récents) */
:root { interpolate-size: allow-keywords; }
.tp-dd::details-content, .ft-acc::details-content, .jn-sessions::details-content, .lv-acc::details-content {
  block-size: 0; overflow: clip; transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
.tp-dd[open]::details-content, .ft-acc[open]::details-content, .jn-sessions[open]::details-content, .lv-acc[open]::details-content { block-size: auto; }
@media (min-width: 768px) { .ft-acc::details-content { block-size: auto; } }
/* Fenêtres : arrivée avec un léger ressort */
.modal[open] .modal-shell { animation: sheet-in .38s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
/* Toast : petit rebond */
.toast.show { transition: opacity .25s, transform .4s var(--ease-spring); }
/* Bouton flottant de la tribu : respire doucement pour attirer l'œil */
.tp-float:not(.is-hidden) .btn { animation: cta-breathe 3.2s ease-in-out 1.2s infinite; }
@keyframes cta-breathe { 0%, 100% { box-shadow: 0 8px 22px rgba(227, 16, 31, .28); } 50% { box-shadow: 0 10px 30px rgba(227, 16, 31, .45); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  #app.page-in, .st-in, .count.is-bump, .mobile-nav a.is-pop .icon, .tp-float .btn, .modal[open] .modal-shell { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .tab-ink { transition: none; }
  .tp-dd::details-content, .ft-acc::details-content, .jn-sessions::details-content, .lv-acc::details-content { transition: none; }
}
/* Champ de message : pas de barre de défilement ni de poignée tant que le texte tient (trait vertical sur Android) */
.ch-form textarea { resize: none; overflow-y: hidden; scrollbar-width: none; }
.ch-form textarea::-webkit-scrollbar { width: 0; height: 0; display: none; }
.ch-form textarea::-webkit-resizer { display: none; }
/* Ma tribu : membres présentés comme sur la page publique */
.mg-members { margin-top: 8px; padding-top: 4px; }
.mg-members .tp-eyebrow { margin-top: 18px; }
.groupe .mg-members h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; color: #060E2F; }
@media (min-width: 1024px) { .groupe .mg-members .tp-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tp-closing b { font-weight: 600; color: #1F2937; }
.tp-closing span { line-height: 1.45; }
.tp-closing { align-items: flex-start; }
.tp-closing .icon { margin-top: 2px; }
.mg-members .tp-closing { margin-top: 12px; }
/* Carte de la tribu : la date de fin reste lisible sous le compte à rebours */
.tp-aside .cd small, .tp-aside .cd small:is(*) { display: block; width: 100%; font-size: 13px; color: #4B5565; }

/* ===================== Moments fun (fun.js) ===================== */
.fx-card { position: fixed; z-index: 120; left: 50%; top: 76px; width: min(420px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 12px 40px 14px 12px; border-radius: 18px; background: #fff; border: 1px solid #E6EBF2; box-shadow: 0 16px 40px rgba(6, 14, 47, .16);
  transform: translate(-50%, -24px) scale(.96); opacity: 0; transition: transform .5s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)), opacity .25s; cursor: pointer; overflow: hidden; }
.fx-card.is-in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.fx-card.is-out { transform: translate(-50%, -16px) scale(.97); opacity: 0; transition-duration: .3s; }
.fx-art { flex: none; width: 84px; height: 56px; border-radius: 12px; background: linear-gradient(180deg, #EAF3FD, #F7FBFF); overflow: hidden; }
.fx-scene { width: 100%; height: 100%; display: block; }
.fx-text { min-width: 0; }
.fx-text strong { display: block; font-family: var(--font-title); font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; color: #060E2F; }
.fx-text p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: #4B5565; }
.fx-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; background: none; font-size: 20px; line-height: 1; color: #8A93A3; cursor: pointer; }
.fx-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), #FF8A80); transform-origin: left; animation: fx-bar 5.2s linear forwards; }
@keyframes fx-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (min-width: 768px) { .fx-card { top: auto; bottom: 28px; left: auto; right: 28px; transform: translateY(24px) scale(.96); } .fx-card.is-in { transform: none; } .fx-card.is-out { transform: translateY(16px) scale(.97); } }

/* Scène : skieur qui descend la pente (gerbe de neige) */
.fx-slope { fill: #fff; }
.fx-skis { stroke: #060E2F; stroke-width: 3; stroke-linecap: round; }
.fx-pole { stroke: #4B5565; stroke-width: 1.6; stroke-linecap: round; }
.fx-body { fill: #E3101F; }
.fx-head { fill: #F2C7A5; }
.fx-helmet { fill: #060E2F; }
.fx-goggles { fill: #FF8A3D; }
.fx-spray circle { fill: #C9DCEE; }
.fx-rider { animation: fx-ride 1.6s cubic-bezier(.45, 0, .2, 1) infinite; transform-origin: 46px 50px; }
.fx-spray { animation: fx-spray 1.6s ease-out infinite; }
@keyframes fx-ride { 0% { transform: translate(-30px, 12px) rotate(-6deg); } 50% { transform: translate(6px, -2px) rotate(-14deg); } 100% { transform: translate(40px, -14px) rotate(-6deg); } }
@keyframes fx-spray { 0%, 30% { opacity: 0; transform: none; } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(-10px, -6px) scale(1.4); } }
/* Scène : télésiège qui monte */
.fx-mount { fill: #9FBEDC; }
.fx-snowcap { fill: #fff; }
.fx-cable { stroke: #4B5565; stroke-width: 1.5; }
.fx-hanger { stroke: #4B5565; stroke-width: 1.5; }
.fx-seat { fill: #060E2F; }
.fx-p1 { fill: #E3101F; } .fx-p2 { fill: #1F6FD0; }
.fx-chair { animation: fx-lift 2.6s linear infinite; }
@keyframes fx-lift { 0% { transform: translate(-10px, 19px); } 100% { transform: translate(130px, 6px); } }
/* Scène : chaussures de ski qui sautillent */
.fx-boot path:first-child { fill: #E3101F; } .fx-b2 path:first-child { fill: #060E2F; }
.fx-strap { stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.fx-shadow { fill: rgba(6, 14, 47, .12); }
.fx-b1 { animation: fx-hop .8s cubic-bezier(.34, 1.56, .64, 1) infinite alternate; }
.fx-b2 { animation: fx-hop .8s cubic-bezier(.34, 1.56, .64, 1) .4s infinite alternate; }
@keyframes fx-hop { from { transform: translateY(0); } to { transform: translateY(-9px) rotate(-4deg); } }
/* Scène : flocon qui tourne */
.fx-star path { stroke: #1F6FD0; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.fx-star { animation: fx-spin 4s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fx-spin { to { transform: translate(60px, 40px) rotate(360deg); } }
.fx-flake .fx-star { animation: none; }
.fx-flake .fx-star path { animation: fx-twinkle 2s ease-in-out infinite; }
@keyframes fx-twinkle { 50% { opacity: .55; } }
/* Scène : appareil photo et flash */
.fx-cam { fill: #060E2F; } .fx-lens { fill: #C9DCEE; stroke: #fff; stroke-width: 2; }
.fx-flash { fill: #fff; opacity: 0; animation: fx-flash 1.8s ease-out infinite; }
@keyframes fx-flash { 0%, 55% { opacity: 0; } 62% { opacity: .9; } 100% { opacity: 0; } }

/* Averse de flocons */
.fx-snow { position: fixed; inset: 0; z-index: 119; pointer-events: none; overflow: hidden; }
.fx-snow i { position: absolute; top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(159, 190, 220, .55), 0 2px 6px rgba(31, 111, 208, .18); animation: fx-fall linear forwards; }
@keyframes fx-fall { to { transform: translate(var(--drift, 0), 105vh) rotate(180deg); opacity: .2; } }

/* Skieur qui traverse l'en-tête (toucher le logo) */
.fx-zoom { position: absolute; left: 0; bottom: -6px; width: 70px; height: 46px; pointer-events: none; animation: fx-zoom 1.5s cubic-bezier(.45, 0, .2, 1) forwards; }
.fx-zoom .fx-slope { display: none; }
.fx-zoom .fx-rider, .fx-zoom .fx-spray { animation: none; }
@keyframes fx-zoom { from { transform: translateX(-80px); } to { transform: translateX(110vw); } }

/* Encouragement sous le message de demande */
.jn-cheer { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-size: 13px; color: #4B5565; }
.jn-cheer .icon { width: 15px; height: 15px; flex: none; color: #6B7383; }
.jn-cheer[data-step="2"], .jn-cheer[data-step="3"] { color: #146C43; font-weight: 600; }
.jn-cheer[data-step="2"] .icon, .jn-cheer[data-step="3"] .icon { color: #2E9E5B; }
.jn-cheer.is-pop { animation: jn-pop .45s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)); }
@keyframes jn-pop { 0% { transform: translateY(4px); opacity: .3; } 100% { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .fx-card, .fx-card.is-in, .fx-card.is-out { transition: opacity .2s; }
  .fx-rider, .fx-spray, .fx-chair, .fx-b1, .fx-b2, .fx-star, .fx-star path, .fx-flash, .fx-bar, .jn-cheer.is-pop { animation: none !important; }
  .fx-chair { transform: translate(60px, 12px); }
}

/* ===================== Clins d'œil montagne (fun.js) ===================== */
.pb-snow { fill: #fff; }
/* Le planté de bâton */
.pb-card { display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #EAF3FD, #F8FBFF); border: 1px solid #DCE8F5; }
.pb-scene { flex: none; width: 150px; height: 84px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #CFE3F7, #EAF3FD); }
.pb-scene svg { width: 100%; height: 100%; display: block; }
.pb-track { fill: none; stroke: #DCE8F4; stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.pb-pole { stroke: #4B5565; stroke-width: 1.8; stroke-linecap: round; transform-box: fill-box; transition: transform .2s; }
.pb-pole-l { transform-origin: top right; } .pb-pole-r { transform-origin: top left; }
.pb-hole { fill: #9FBEDC; opacity: 0; }
.pb-rider { transform-box: fill-box; transform-origin: 50% 90%; }
.pb-card.is-l .pb-rider { animation: pb-turn-l .7s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)); }
.pb-card.is-r .pb-rider { animation: pb-turn-r .7s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)); }
.pb-card.is-l .pb-pole-l { animation: pb-plant .5s ease-out; }
.pb-card.is-r .pb-pole-r { animation: pb-plant .5s ease-out; }
.pb-card.is-l .pb-hole, .pb-card.is-r .pb-hole { animation: pb-hole .9s ease-out; }
.pb-card.is-r .pb-hole { transform: translateX(32px); }
@keyframes pb-turn-l { 0% { transform: none; } 40% { transform: translateY(3px) rotate(-14deg); } 100% { transform: rotate(-4deg); } }
@keyframes pb-turn-r { 0% { transform: none; } 40% { transform: translateY(3px) rotate(14deg); } 100% { transform: rotate(4deg); } }
@keyframes pb-plant { 0% { transform: none; } 35% { transform: translateY(5px) rotate(-8deg); } 100% { transform: none; } }
@keyframes pb-hole { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.pb-text { min-width: 0; }
.pb-kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6B7383; }
.pb-text h2 { margin: 2px 0 4px; font-family: var(--font-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #060E2F; }
.pb-line { margin: 0 0 10px; font-size: 13.5px; color: #4B5565; min-height: 2.6em; }
.pb-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-count { font-size: 13px; font-weight: 600; color: var(--accent); }
@media (max-width: 480px) { .pb-card { flex-direction: column; align-items: stretch; text-align: center; } .pb-scene { width: 100%; height: 110px; } .pb-actions { justify-content: center; } }

/* Le tire-fesses farceur */
.dl-card { display: flex; align-items: center; gap: 14px; margin: 18px auto 0; max-width: 520px; padding: 12px 14px; border-radius: 16px; background: #F6F9FC; border: 1px dashed #D5DFEA; text-align: left; }
.dl-scene { flex: none; width: 150px; height: 62px; padding: 0; border: 0; border-radius: 12px; background: linear-gradient(180deg, #DCEBFA, #F2F8FF); overflow: hidden; cursor: pointer; }
.dl-scene svg { width: 100%; height: 100%; display: block; }
.dl-cable { stroke: #4B5565; stroke-width: 1.4; }
.dl-rope { stroke: #4B5565; stroke-width: 1.2; }
.dl-disc { fill: #E3101F; }
.dl-run { animation: dl-run 4.2s linear infinite; }
.dl-rider { animation: dl-fall 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes dl-run { 0% { transform: translate(20px, 16px); } 100% { transform: translate(240px, -38px); } }
@keyframes dl-fall { 0%, 45% { transform: translate(0, 46px); } 55% { transform: translate(-8px, 54px) rotate(-70deg); } 100% { transform: translate(-60px, 70px) rotate(-90deg); opacity: .0; } }
.dl-card.is-up .dl-run { animation: dl-run 4.2s linear infinite; }
.dl-card.is-up .dl-rider { animation: dl-up .7s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)) forwards; }
@keyframes dl-up { from { transform: translate(0, 52px) rotate(-60deg); } to { transform: translate(0, 46px); } }
.dl-text { margin: 0; display: grid; gap: 2px; font-size: 13.5px; color: #4B5565; }
.dl-text strong { color: #060E2F; font-size: 14.5px; }
@media (max-width: 480px) { .dl-card { flex-direction: column; text-align: center; } .dl-scene { width: 100%; height: 80px; } }

/* Le skieur égaré (page introuvable) */
.ls-card { max-width: 560px; margin: 24px auto 40px; text-align: center; }
.ls-scene { display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #CFE3F7, #F2F8FF); }
.ls-scene svg { width: 100%; height: auto; display: block; }
.ls-mount { fill: #9FBEDC; }
.ls-steps ellipse { fill: #DCE8F4; }
.ls-skis { stroke: #060E2F; stroke-width: 3; stroke-linecap: round; }
.ls-legs, .ls-arm { stroke: #060E2F; stroke-width: 3; stroke-linecap: round; }
.ls-walker { animation: ls-walk 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes ls-walk { 0%, 100% { transform: translate(140px, 104px) rotate(-3deg); } 50% { transform: translate(142px, 101px) rotate(3deg); } }
.ls-arm { transform-box: fill-box; transform-origin: 0 100%; }
.ls-card.is-call .ls-arm { animation: ls-wave .3s ease-in-out 4 alternate; }
@keyframes ls-wave { to { transform: rotate(-35deg); } }
.ls-bubble rect { fill: #fff; stroke: #DCE3EC; }
.ls-bubble text { font: 600 10px var(--font, sans-serif); fill: #060E2F; }
.ls-bubble { opacity: 0; transform-box: fill-box; transform-origin: 0 100%; }
.ls-card.is-call .ls-bubble { animation: ls-bubble 2.4s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)); }
@keyframes ls-bubble { 0% { opacity: 0; transform: scale(.6); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ls-title { margin: 22px 0 6px; font-size: 28px; letter-spacing: -.03em; }
.ls-text { margin: 0 auto 18px; max-width: 420px; color: #4B5565; }
.ls-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .pb-rider, .pb-pole, .pb-hole, .dl-run, .dl-rider, .ls-walker, .ls-arm, .ls-bubble { animation: none !important; }
  .ls-card.is-call .ls-bubble { opacity: 1; }
}

/* ===================== « On se fait beau » pendant l'envoi de la photo ===================== */
.pf-avatar.is-primping { overflow: visible; }
.pf-avatar.is-primping > img, .pf-avatar.is-primping > span:not(.pf-cam):not(.pr-overlay) { animation: pr-breathe 1.1s ease-in-out infinite; }
@keyframes pr-breathe { 50% { transform: scale(1.04); } }
.pr-overlay { position: absolute; inset: -18px; pointer-events: none; z-index: 2; }
.pr-shine { position: absolute; inset: 18px; border-radius: 50%; overflow: hidden; }
.pr-shine::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-18deg); animation: pr-sweep 1.4s ease-in-out infinite; }
@keyframes pr-sweep { to { left: 120%; } }
.pr-sun { position: absolute; top: 0; right: 0; width: 30px; height: 30px; animation: pr-sun 4s linear infinite; }
.pr-sun circle { fill: #FFC93C; } .pr-sun path { stroke: #FFB400; stroke-width: 2.4; stroke-linecap: round; }
@keyframes pr-sun { to { transform: rotate(360deg); } }
.pr-glasses { position: absolute; left: 50%; top: 38%; width: 54%; transform: translate(-50%, -260%) rotate(-12deg); opacity: 0;
  animation: pr-glasses 2.2s cubic-bezier(.34, 1.56, .64, 1) .3s infinite; }
.pr-glasses rect { fill: #060E2F; } .pr-frame { stroke: #060E2F; stroke-width: 2.4; stroke-linecap: round; }
@keyframes pr-glasses { 0% { opacity: 0; transform: translate(-50%, -260%) rotate(-12deg); } 25%, 75% { opacity: 1; transform: translate(-50%, 0) rotate(0); } 100% { opacity: 0; transform: translate(-50%, 0) rotate(0); } }
.pr-cream { position: absolute; left: 50%; top: 60%; width: 12px; height: 6px; margin-left: -6px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(6, 14, 47, .08);
  opacity: 0; animation: pr-cream 2.2s ease-in-out 1s infinite; }
@keyframes pr-cream { 0%, 100% { opacity: 0; transform: scale(.4); } 30%, 70% { opacity: 1; transform: scale(1); } }
.pr-spark { position: absolute; width: 10px; height: 10px; background: #FFC93C; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: pr-spark 1.4s ease-in-out infinite; }
.pr-spark.s1 { left: 4px; top: 22px; } .pr-spark.s2 { right: 10px; bottom: 14px; animation-delay: .45s; } .pr-spark.s3 { left: 18px; bottom: 2px; animation-delay: .9s; width: 8px; height: 8px; }
@keyframes pr-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.pr-overlay.is-flash::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: #fff; animation: pr-flash .6s ease-out forwards; }
@keyframes pr-flash { 0% { opacity: .95; } 100% { opacity: 0; transform: scale(1.25); } }
.pr-caption { margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: #FFF6DE; color: #6B4E00; font-size: 13px; font-weight: 600; text-align: center; justify-self: center; }
.pr-caption.is-swap { animation: pr-swap .35s ease-out; }
.pr-caption.is-done { background: #E8F6EE; color: #146C43; animation: pr-swap .35s ease-out; }
@keyframes pr-swap { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .pf-avatar.is-primping > img, .pr-shine::after, .pr-sun, .pr-glasses, .pr-cream, .pr-spark, .pr-caption.is-swap, .pr-overlay.is-flash::before { animation: none !important; }
  .pr-glasses { opacity: 1; transform: translate(-50%, 0); }
}
/* Animations en boucle hors de l'écran : en pause */
.anim-off, .anim-off * { animation-play-state: paused !important; }

/* ===== Planté de bâton : scène vivante ===== */
.pb-card .pb-scene { padding: 0; border: 0; cursor: pointer; display: block; }
.pb-scene { background: linear-gradient(180deg, #BFD9F3 0%, #E6F1FC 70%); }
.pg-sun { fill: #FFD25A; animation: pg-sun 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pg-sun { 50% { transform: scale(1.12); } }
.pg-mount-b { fill: #B7CFE8; } .pg-mount-f { fill: #9FBEDC; } .pg-cap { fill: #fff; }
.pg-trees path { fill: #2F5D4E; }
.pg-track { fill: none; stroke: #D7E5F3; stroke-width: 2.4; stroke-dasharray: 3 6; stroke-linecap: round; }
.pg-ski { stroke: #060E2F; stroke-width: 2.6; stroke-linecap: round; }
.pg-ski2 { stroke: #1E3A5F; }
.pg-leg { fill: none; stroke: #1E3A5F; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.pg-torso { fill: #E3101F; }
.pg-scarf { fill: #FFC93C; transform-box: fill-box; transform-origin: right center; animation: pg-scarf .5s ease-in-out infinite alternate; }
@keyframes pg-scarf { to { transform: scaleY(.6) skewY(-8deg); } }
.pg-face { fill: #F2C7A5; } .pg-helmet { fill: #060E2F; } .pg-goggles { fill: #FF8A3D; }
.pg-arm { fill: none; stroke: #E3101F; stroke-width: 3; stroke-linecap: round; }
.pg-pole { stroke: #4B5565; stroke-width: 1.4; stroke-linecap: round; }
.pg-spray circle { fill: #fff; stroke: #CFE0F1; stroke-width: .6; }
.pg-spray { animation: pg-spray .7s ease-out infinite; transform-box: fill-box; transform-origin: right center; }
@keyframes pg-spray { 0% { opacity: .9; transform: none; } 100% { opacity: 0; transform: translate(-6px, -4px) scale(1.5); } }
/* Slalom en continu le long de la piste (virages gauche / droite) */
.pg-run { animation: pg-run 5.2s ease-in-out infinite; }
@keyframes pg-run {
  0% { transform: translate(70px, 96px) rotate(-8deg) scale(.95); }
  25% { transform: translate(110px, 92px) rotate(4deg) scale(.9); }
  50% { transform: translate(145px, 82px) rotate(-14deg) scale(.82); }
  75% { transform: translate(178px, 80px) rotate(2deg) scale(.76); }
  100% { transform: translate(210px, 66px) rotate(-12deg) scale(.7); }
}
.pg-body { transform-box: fill-box; transform-origin: 50% 100%; animation: pg-sway 1.3s ease-in-out infinite alternate; }
@keyframes pg-sway { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(5deg) translateY(1px); } }
/* Moniteur qui fait de grands gestes + bulle */
.pg-coat { fill: #E3101F; } .pg-hat { fill: #1F6FD0; } .pg-pompon { fill: #fff; }
.pg-wave { transform-box: fill-box; transform-origin: 0 100%; animation: pg-wave .6s ease-in-out infinite alternate; }
@keyframes pg-wave { from { transform: rotate(-20deg); } to { transform: rotate(25deg); } }
.pg-bubble rect, .pg-bubble path { fill: #fff; stroke: #DCE3EC; stroke-width: .8; }
.pg-bubble path { stroke: none; }
.pg-bubble text { font: 700 9.5px var(--font, sans-serif); fill: #060E2F; }
.pg-bubble { transform-box: fill-box; transform-origin: 30% 100%; animation: pg-bob 2.4s ease-in-out infinite; }
@keyframes pg-bob { 50% { transform: translateY(-2px); } }
/* Flocons */
.pg-flakes circle { fill: #fff; animation: pg-fall 4s linear infinite; }
.pg-flakes circle:nth-child(2) { animation-delay: -1s; animation-duration: 5s; } .pg-flakes circle:nth-child(3) { animation-delay: -2.4s; }
.pg-flakes circle:nth-child(4) { animation-delay: -3.1s; animation-duration: 4.6s; } .pg-flakes circle:nth-child(5) { animation-delay: -.6s; animation-duration: 5.4s; } .pg-flakes circle:nth-child(6) { animation-delay: -2s; animation-duration: 3.6s; }
@keyframes pg-fall { from { transform: translate(0, -6px); } to { transform: translate(-14px, 116px); } }
/* Au toucher : accroupi, bâton planté, gerbe, trou dans la neige, « +1 », bulle qui saute */
.pg-hole ellipse { fill: #9FBEDC; } .pg-hole, .pg-plus { opacity: 0; }
.pg-plus { font: 800 12px var(--font-title, sans-serif); fill: var(--accent); }
.pb-card.is-plant .pg-body { animation: pg-plant .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pg-plant { 0% { transform: none; } 35% { transform: translateY(3px) scaleY(.86) rotate(-10deg); } 100% { transform: rotate(6deg); } }
.pb-card.is-plant .pg-pole-f { animation: pg-pole .45s ease-out; transform-box: fill-box; transform-origin: top left; }
@keyframes pg-pole { 40% { transform: rotate(-16deg) translateY(2px); } }
.pb-card.is-plant .pg-spray { animation: pg-burst .6s ease-out; }
@keyframes pg-burst { 0% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0; transform: translate(-10px, -8px) scale(2.6); } }
.pb-card.is-plant .pg-hole { animation: pg-hole 1.4s ease-out; }
@keyframes pg-hole { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.pb-card.is-plant .pg-plus { animation: pg-plus .9s ease-out; }
@keyframes pg-plus { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.pb-card.is-plant .pg-bubble { animation: pg-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pg-pop { 0% { transform: scale(.7); } 100% { transform: none; } }
.pb-card.is-plant .pb-count { animation: count-bump .5s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)); display: inline-block; }
.pb-scene:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .pb-scene { height: 150px !important; } }
@media (prefers-reduced-motion: reduce) {
  .pg-run { animation: none; transform: translate(140px, 84px) scale(.82); }
  .pg-sun, .pg-scarf, .pg-spray, .pg-body, .pg-wave, .pg-bubble, .pg-flakes circle { animation: none !important; }
}

/* Stations du monde : nom + région et pays, saisie surlignée, astuce en tête de liste */
.sp-station { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; }
.sp-station > span { font-size: 14.5px; color: var(--navy); line-height: 1.3; }
.sp-station > small { font-size: 12.5px; color: #7C8594; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-station mark { background: none; color: inherit; font-weight: 700; }
.sp-tip { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 8px 10px 9px; font-size: 13px; color: #5E6878; border-bottom: 1px solid #EEF2F7; }
.sp-tip .icon { width: 15px; height: 15px; flex: none; color: var(--coral, #E70C1D); }

/* Langues : drapeaux sur les profils, champ « Langues parlées », sélecteur de langue du site */
.lang-flags { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; font-size: 14px; line-height: 1; }
.lang-flags > span { display: inline-block; }
.tp-member .lang-flags { display: flex; margin: 3px 0 0; justify-content: center; }
.lang-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.lang-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #F2F6FB; font-size: 13px; color: var(--navy); }
.lang-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.lang-field legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip { position: relative; cursor: pointer; }
.lang-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lang-chip > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #DCE3EC; border-radius: 999px; background: #fff; font-size: 13.5px; color: var(--navy); transition: border-color .15s, background .15s, box-shadow .15s; }
.lang-chip:hover > span { border-color: #B9C5D4; }
.lang-chip input:checked + span { border-color: var(--navy); background: #F2F6FB; box-shadow: inset 0 0 0 1px var(--navy); font-weight: 600; }
.lang-chip input:focus-visible + span { outline: 2px solid #1F6FD0; outline-offset: 2px; }
.lang-more { margin-top: 8px; }
.lang-more summary { cursor: pointer; font-size: 13px; color: #5E6878; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.lang-more summary::-webkit-details-marker { display: none; }
.lang-more summary::before { content: '+'; font-weight: 700; }
.lang-more[open] summary::before { content: '–'; }
.lang-more .lang-chips { margin-top: 8px; }
.lang-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid #E3E9F0; border-radius: 999px; background: #fff; }
.ls-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; color: #5E6878; cursor: pointer; }
.ls-btn.is-on { background: var(--navy); color: #fff; font-weight: 600; }
.ft-lang { margin-bottom: 10px; }

/* Logo (télécabine + skitribu) : version courte dans l'en-tête et les fenêtres, complète (avec slogan) dans le pied de page */
.brand-img { display: block; width: auto; }
.site-header .brand-img { height: 54px; }
.modal-top .brand-img { height: 38px; }
.ft-brand .brand-img-full { height: 104px; max-width: 100%; object-fit: contain; object-position: left center; }
.ft-brand .brand-img-short { height: 60px; }
.brand-logo:has(.brand-slogan) { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-slogan { font-family: var(--font-title); font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: #0E4A43; }
@media (max-width: 767px) {
  .site-header .brand-img { height: 44px; }
  .modal-top .brand-img { height: 34px; }
  .ft-brand .brand-img-full { height: 96px; }
}

/* Mise en page sur tous les écrans (contrôle automatique 320 → 1440 px, français et anglais) */
/* Badge « Chef de tribu » dans les petites colonnes de membres : jamais plus large que sa colonne */
.tp-member .tp-chef { max-width: 100%; box-sizing: border-box; }
@media (max-width: 480px) {
  .tp-member .tp-chef { font-size: 11px; padding: 2px 7px; gap: 4px; }
  .tp-member .tp-chef svg { width: 11px; height: 11px; }
}
@media (max-width: 400px) {
  .tp-member .tp-chef { white-space: normal; text-align: center; justify-content: center; line-height: 1.2; border-radius: 10px; }
}
/* Photo du profil : les deux boutons passent l'un sous l'autre dès que la place manque */
.pf-photo-text { min-width: 0; }
@media (max-width: 400px) { .pf-photo-btns, .pf-photo-btns:is(*) { grid-template-columns: minmax(0, 1fr); } }
/* Carte d'une tribu (résultats, mobile) : photo du chef alignée sur son prénom, pas centrée sur tout le bloc */
@media (max-width: 767px) {
  .result-person { align-items: flex-start; }
  .result-person > .has-crown, .result-person > .avatar { margin-top: 4px; }
}
/* Volets de la page tribu (« Créneaux souhaités »…) : le titre passe à la ligne plutôt que de pousser le résumé hors de l'écran */
.tp-dd summary { min-width: 0; }
.tp-dd summary > span { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.25; }
.tp-dd summary > em { flex: 0 0 auto; }
/* Ligne d'infos sous le titre d'une tribu : un élément trop long passe à la ligne au lieu de sortir de l'écran */
.tp-meta > span { max-width: 100%; min-width: 0; white-space: normal; }
.tp-meta > span > .icon { flex: none; }

/* =====================================================================================================
   Animations soignées (fun.js) : couleurs du logo, ressort, icônes qui se dessinent, particules en canvas
   ===================================================================================================== */
:root { --fx-teal: #06C7B3; --fx-teal-d: #0A9E8F; --fx-red: #E70C1D; --fx-red-d: #B80915; --fx-green: #0E4A43; --fx-spring: cubic-bezier(.34, 1.56, .64, 1); --fx-out: cubic-bezier(.22, 1, .36, 1); }
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 10000; pointer-events: none; }

/* Carte de célébration */
.fx-toast { position: fixed; z-index: 9999; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; translate: -50% 0;
  width: min(440px, calc(100vw - 24px)); display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 13px 44px 15px 13px; border-radius: 18px; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 22px 50px -18px rgba(11, 37, 69, .35), 0 3px 10px rgba(11, 37, 69, .08), inset 0 0 0 1px rgba(11, 37, 69, .06);
  opacity: 0; transform: translateY(-18px) scale(.96); transition: opacity .3s var(--fx-out), transform .55s var(--fx-spring); touch-action: none; cursor: pointer; overflow: hidden; }
.fx-toast.is-in { opacity: 1; transform: none; }
.fx-toast.is-out { opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .22s ease, transform .3s var(--fx-out); }
.fx-badge { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--fx-teal), var(--fx-teal-d)); box-shadow: 0 8px 18px -8px rgba(6, 199, 179, .8); transform: scale(.4); }
.tone-red .fx-badge { background: linear-gradient(145deg, #F2343F, var(--fx-red-d)); box-shadow: 0 8px 18px -8px rgba(231, 12, 29, .7); }
.tone-navy .fx-badge { background: linear-gradient(145deg, #1D3B63, #0B2545); box-shadow: 0 8px 18px -8px rgba(11, 37, 69, .6); }
.fx-toast.is-in .fx-badge { animation: fx-pop .6s var(--fx-spring) .08s forwards; }
.fx-ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid currentColor; color: var(--fx-teal); opacity: 0; }
.tone-red .fx-ring { color: var(--fx-red); } .tone-navy .fx-ring { color: #0B2545; }
.fx-toast.is-in .fx-ring { animation: fx-ring 1s var(--fx-out) .25s; }
.fx-ico { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-ico path, .fx-ico circle, .fx-ico rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx-toast.is-in .fx-ico path, .fx-toast.is-in .fx-ico circle, .fx-toast.is-in .fx-ico rect { animation: fx-draw .7s var(--fx-out) .3s forwards; }
.fx-copy { display: grid; gap: 2px; min-width: 0; }
.fx-copy strong { font-family: var(--font-title); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); line-height: 1.25; }
.fx-copy span { font-size: 13.5px; line-height: 1.45; color: #56606F; }
.fx-x { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #8A93A2; display: grid; place-items: center; cursor: pointer; }
.fx-x:hover { background: #F1F4F8; color: var(--navy); }
.fx-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fx-time { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(11, 37, 69, .05); }
.fx-time i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--fx-teal), #7FE3D8); }
.tone-red .fx-time i { background: linear-gradient(90deg, var(--fx-red), #FF6B75); }
.tone-navy .fx-time i { background: #0B2545; }
.fx-toast.is-in .fx-time i { animation: fx-time var(--fx-dur, 5200ms) linear forwards; }
.fx-toast.is-paused .fx-time i { animation-play-state: paused; }
@keyframes fx-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes fx-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes fx-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (min-width: 900px) { .fx-toast { top: 86px; } }

/* Logo : petit rebond au toucher */
.brand-img.fx-hop { animation: fx-hop .62s var(--fx-spring); }
@keyframes fx-hop { 0% { transform: none; } 35% { transform: translateY(-5px) rotate(-3deg) scale(1.04); } 100% { transform: none; } }

/* Quiz express (page Niveaux) */
.lq { margin: 28px 0; padding: 26px clamp(18px, 4vw, 34px) 28px; border-radius: 22px; background: linear-gradient(160deg, #F2FBFA 0%, #FFFFFF 55%);
  box-shadow: 0 18px 44px -26px rgba(11, 37, 69, .35), inset 0 0 0 1px rgba(6, 199, 179, .18); }
.lq-head { display: grid; gap: 6px; margin-bottom: 20px; }
.lq-kicker { justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgba(6, 199, 179, .12); color: var(--fx-teal-d); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lq-head h2 { margin: 0; font-family: var(--font-title); font-size: clamp(21px, 2.4vw, 26px); letter-spacing: -.02em; color: var(--navy); }
.lq-bar { height: 5px; border-radius: 99px; background: #E4EEF2; overflow: hidden; margin-top: 6px; }
.lq-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--fx-teal), #7FE3D8); transition: width .5s var(--fx-out); }
.lq-stage { transition: opacity .2s ease, transform .2s ease; }
.lq-stage.is-leaving { opacity: 0; transform: translateX(-14px); }
.lq-stage.is-entering { animation: lq-in .42s var(--fx-out); }
@keyframes lq-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.lq-q { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--navy); }
.lq-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.lq-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 44px 12px 16px; border: 1px solid #DCE5EE; border-radius: 14px; background: #fff;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--navy); text-align: left; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--fx-spring), background .18s; }
.lq-opt:hover { border-color: #9EDFD7; box-shadow: 0 8px 20px -14px rgba(6, 199, 179, .9); transform: translateY(-1px); }
.lq-opt:active { transform: scale(.98); }
.lq-opt:focus-visible { outline: 2px solid var(--fx-teal); outline-offset: 2px; }
.lq-opt.is-picked { border-color: var(--fx-teal); background: #F0FBF9; box-shadow: inset 0 0 0 1px var(--fx-teal); }
.lq-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--fx-teal-d); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lq-tick { position: absolute; right: 14px; width: 20px; height: 20px; fill: none; stroke: var(--fx-teal-d); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--fx-spring); }
.lq-opt.is-picked .lq-tick { opacity: 1; transform: none; }
.lq-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; }
.lq-dot.dot-green { background: #2EAD5B; } .lq-dot.dot-blue { background: #1F6FD0; } .lq-dot.dot-red { background: #E70C1D; }
.lq-dot.dot-black { background: #1B2330; }
.lq-back { margin-top: 14px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; color: #5E6878; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lq-result { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 4px 0; }
.lq-medal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; color: #fff;
  background: linear-gradient(145deg, var(--fx-teal), var(--fx-teal-d)); box-shadow: 0 14px 30px -14px rgba(6, 199, 179, .9); animation: fx-pop .7s var(--fx-spring); }
.lq-medal-ico { width: 34px; height: 34px; fill: rgba(255, 255, 255, .18); stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.lq-medal-ico path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw .8s var(--fx-out) .2s forwards; }
.lq-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6B7383; }
.lq-level { margin: 0; font-family: var(--font-title); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--fx-green); }
.lq-hint { margin: 2px 0 14px; max-width: 460px; font-size: 14.5px; color: #56606F; }
.lq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Page introuvable : la télécabine dans la neige */
.nf { max-width: 560px; margin: 0 auto; padding: 24px 16px 56px; text-align: center; }
.nf-art { position: relative; height: 250px; margin-bottom: 8px; display: grid; place-items: center; overflow: hidden; }
.nf-404 { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: clamp(120px, 34vw, 190px);
  letter-spacing: -.06em; color: rgba(6, 199, 179, .1); user-select: none; }
.nf-gondola { position: relative; z-index: 1; width: 150px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 52% 4%; animation: nf-sway 4.2s ease-in-out infinite; }
.nf-gondola img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(11, 37, 69, .14)); }
.nf-gondola.is-swing { animation: nf-swing 1.6s var(--fx-out), nf-sway 4.2s ease-in-out 1.6s infinite; }
.nf-shadow { position: absolute; bottom: 14px; width: 120px; height: 12px; border-radius: 50%; background: radial-gradient(rgba(11, 37, 69, .14), transparent 70%); animation: nf-shadow 4.2s ease-in-out infinite; }
.nf-flakes i { position: absolute; top: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #BFE9E4; animation: nf-fall var(--d) linear var(--l) infinite; }
.nf-title { margin: 0 0 8px; font-family: var(--font-title); font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; color: var(--navy); }
.nf-text { margin: 0 auto 22px; max-width: 420px; color: #56606F; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@keyframes nf-sway { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(4px); } }
@keyframes nf-swing { 0% { transform: rotate(0); } 18% { transform: rotate(-12deg); } 40% { transform: rotate(9deg); } 62% { transform: rotate(-5deg); } 82% { transform: rotate(2.5deg); } 100% { transform: rotate(-2.5deg); } }
@keyframes nf-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .8; } }
@keyframes nf-fall { from { transform: translateY(0); } to { transform: translateY(270px); } }

/* Photo de profil : anneau de progression puis coche */
.pf-avatar.is-primping { position: relative; }
.pr-overlay { position: absolute; inset: -7px; pointer-events: none; }
.pr-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pr-track { fill: none; stroke: rgba(6, 199, 179, .16); stroke-width: 4; }
.pr-arc { fill: none; stroke: var(--fx-teal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 26 74; animation: pr-spin 1.1s linear infinite; transform-origin: 50% 50%; }
.pr-overlay.is-done .pr-arc { animation: none; stroke-dasharray: 100 0; transition: stroke-dasharray .45s var(--fx-out); }
.pr-veil { position: absolute; inset: 7px; border-radius: 50%; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) 0 0 / 250% 100%; animation: pr-shine 1.4s linear infinite; }
.pr-overlay.is-done .pr-veil { display: none; }
.pr-ok { position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--fx-teal); box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(6, 199, 179, .9); opacity: 0; transform: scale(.3); }
.pr-overlay.is-done .pr-ok { animation: fx-pop .5s var(--fx-spring) .15s forwards; opacity: 1; }
.pr-ok-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pr-caption { margin: 8px 0 0; font-size: 13.5px; font-weight: 500; color: #56606F; min-height: 1.4em; }
.pr-caption.is-swap { animation: pr-swap .35s var(--fx-out); }
.pr-caption.is-done { color: var(--fx-teal-d); font-weight: 600; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
@keyframes pr-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes pr-swap { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fx-toast, .fx-toast.is-in .fx-badge, .lq-stage, .nf-gondola, .nf-shadow, .nf-flakes i, .pr-arc, .pr-veil { animation: none !important; transition: none !important; }
  .fx-badge { transform: none; } .fx-ico path, .fx-ico circle, .fx-ico rect, .lq-medal-ico path { stroke-dashoffset: 0; }
  .fx-toast { opacity: 1; transform: none; }
}

/* Invitation à installer l'appli : petite fiche sobre au-dessus de la barre d'onglets (aucun voile, aucune animation chargée) */
.ib { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.ib-card { pointer-events: auto; width: min(440px, 100%); padding: 14px 14px 12px; border-radius: 20px; background: #fff;
  box-shadow: 0 24px 60px -20px rgba(11, 37, 69, .45), 0 2px 8px rgba(11, 37, 69, .08), inset 0 0 0 1px rgba(11, 37, 69, .06);
  opacity: 0; transform: translateY(24px); transition: opacity .3s var(--fx-out, ease), transform .5s var(--fx-spring, ease); }
.ib.is-in .ib-card { opacity: 1; transform: none; }
.ib-notif { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 9px 11px; border-radius: 14px; background: #F3F6FA; opacity: 0; transform: translateY(-6px); }
.ib.is-in .ib-notif { animation: ib-notif .5s var(--fx-out, ease) .35s forwards; }
.ib-notif img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.ib-n-text { display: grid; gap: 1px; min-width: 0; font-size: 12.5px; line-height: 1.35; color: #3D4757; }
.ib-n-top { display: flex; justify-content: space-between; gap: 8px; }
.ib-n-top b { font-size: 12.5px; color: var(--navy); } .ib-n-top em { font-style: normal; color: #8A93A2; font-size: 11.5px; }
.ib-row { display: flex; gap: 12px; align-items: flex-start; }
.ib-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; box-shadow: 0 0 0 1px rgba(11, 37, 69, .08); }
.ib-copy h2 { margin: 0 0 3px; font-family: var(--font-title); font-size: 16px; letter-spacing: -.01em; color: var(--navy); line-height: 1.3; }
.ib-copy p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #56606F; }
.ib-perks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 12px; padding: 0; list-style: none; font-size: 12.5px; color: #3D4757; }
.ib-perks li { display: inline-flex; align-items: center; gap: 5px; } .ib-perks .icon { width: 15px; height: 15px; color: var(--fx-teal-d, #0A9E8F); }
.ib-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.ib-later { background: transparent; border-color: transparent; color: #56606F; }
@keyframes ib-notif { to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .ib { bottom: 24px; justify-content: flex-end; padding-right: 24px; } }
@media (prefers-reduced-motion: reduce) { .ib-card, .ib-notif { transition: none; animation: none !important; opacity: 1; transform: none; } }
/* Invitation à installer : fiche « nuit en montagne » (bleu nuit, crêtes, étoiles) sur voile léger, pour bien ressortir du fond blanc */
.ib-veil { position: fixed; inset: 0; z-index: -1; background: rgba(9, 16, 33, .42); opacity: 0; transition: opacity .35s var(--fx-out, ease); pointer-events: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ib.is-in .ib-veil { opacity: 1; pointer-events: auto; }
.ib-card { position: relative; overflow: hidden; color: #fff; padding: 16px 16px 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V78l48-30 34 20 52-46 40 34 30-18 58 50 44-36 50 40 38-24 46 30v22z' fill='%23ffffff' fill-opacity='.05'/%3E%3Cpath d='M0 120V96l70-34 46 22 64-40 52 36 40-16 70 34 52-22 46 20v24z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E") bottom / 100% 120px no-repeat,
    radial-gradient(120% 90% at 100% 0%, rgba(255, 87, 56, .28), transparent 55%),
    linear-gradient(160deg, #1B2C55 0%, #101C35 60%, #0B1428 100%);
  box-shadow: 0 30px 70px -18px rgba(5, 10, 25, .65), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.ib-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 34% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 62% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 82% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 30%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 92% 6%, #fff 50%, transparent 51%); }
.ib-card > * { position: relative; }
.ib-notif { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.ib.is-in .ib-notif { animation: ib-drop .6s var(--fx-spring, ease) .35s forwards; }
.ib-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 8px 18px -8px rgba(0, 0, 0, .6); background: #fff; }
.ib-copy h2 { color: #fff; font-size: 17px; }
.ib-copy p { color: rgba(255, 255, 255, .78); }
.ib-perks { color: rgba(255, 255, 255, .9); }
.ib-perks .icon { color: #6FE3D4; }
.ib-later { color: rgba(255, 255, 255, .75); }
.ib-later:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ib-cta { box-shadow: 0 10px 24px -10px rgba(255, 60, 40, .8); }
.ib.is-in .ib-cta { animation: ib-pulse 2.4s ease-in-out 1.4s 2; }
@keyframes ib-drop { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes ib-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .ib-veil { transition: none; } .ib.is-in .ib-cta { animation: none; } }
/* Mobile : toute fenêtre (inscription comprise) occupe toute la largeur, jamais collée d'un côté */
@media (max-width: 767px) { #modal.modal { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; left: 0; right: 0; } }

/* --- Corrections UX (audit) --------------------------------------------------------------- */
/* iPhone : un champ en dessous de 16 px déclenche un zoom à la saisie. Sous 768 px, tous les champs passent à 16 px. */
@media (max-width: 767.98px) {
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]), select, textarea { font-size: 16px !important; }
}
/* Notifications désactivées : bandeau informatif neutre (jamais rouge) */
.notify-banner.is-off { background: #F3F6FA; border-color: #DDE5EE; }
.notify-banner.is-off > .icon { color: #5B7A9D; }
.notify-banner.is-off p { color: #3D4757; }
/* Accueil : « Comment ça marche » en 3 étapes sobres */
.h-how { max-width: 980px; margin: 8px auto 28px; padding: 0 16px; text-align: center; }
.h-how h2 { margin: 0 0 14px; font-family: var(--font-title); font-size: 18px; font-weight: 650; color: var(--navy); letter-spacing: -.01em; }
.h-how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.h-how-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #F6F9FC; font-size: 14px; line-height: 1.35; color: #2A3142; text-align: left; }
.h-how-steps span { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #D3DAE3; font-size: 13px; font-weight: 650; color: var(--navy); }
@media (max-width: 767.98px) { .h-how-steps { grid-template-columns: 1fr; gap: 8px; } }
/* Résultats : « Voir plus de tribus » et proposition discrète de créer sa tribu */
.results-more { display: flex; justify-content: center; margin: 18px 0 4px; }
.results-nudge { margin: 16px 0 0; text-align: center; font-size: 14px; color: #5B6577; }
.results-nudge .link { font-size: 14px; }
/* Avis hors période : étoiles visibles mais désactivées */
.rv-input.is-disabled { opacity: .55; }
.rv-input.is-disabled .rv-star { cursor: default; pointer-events: none; }

/* Page de connexion / inscription (maquette « Votre tribu vous attend. ») : photo arrondie, titres vert profond, formulaire sur fond blanc */
.ap-hero-tag { margin: 6px 0 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.ap-quote { margin: 22px 0 0; text-align: center; font-size: 14.5px; font-style: italic; color: #5B6472; }
.ap-in-modal .ap-quote { display: none; }
.ap-page .ap-title { color: #0F3D38; }
.ap-page .ap-hero-title span { color: #fff; }
@media (max-width: 767px) {
  body:has(.ap-page) { background: #fff; }
  .ap-page .ap-hero-tag, .ap-page .ap-hero-title { display: block !important; }
  .ap-page { padding: 4px 10px 28px; }
  .ap-page .ap-card { display: block; background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; width: 100%; }
  .ap-page .ap-hero { display: flex; align-items: flex-end; height: auto; min-height: 0; aspect-ratio: 802 / 485; border-radius: 24px; overflow: hidden; }
  .ap-page .ap-hero > img { object-position: 52% 28%; }
  .ap-page .ap-hero::after { background: linear-gradient(180deg, rgba(10, 28, 32, 0) 38%, rgba(10, 28, 32, .55) 66%, rgba(10, 28, 32, .86) 100%); }
  .ap-page .ap-hero-body { padding: 0 18px 18px; gap: 0; }
  .ap-page .ap-hero-body > .ap-kicker, .ap-page .ap-benefits, .ap-page .ap-trust { display: none !important; }
  .ap-page .ap-hero-title { font-size: clamp(21px, 6vw, 25px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
  .ap-page .ap-hero-tag { font-size: clamp(13px, 3.6vw, 15px); }
  .ap-page .ap-panel { padding: 26px 10px 8px; gap: 2px; }
  .ap-page .ap-head { margin-bottom: 18px; }
  .ap-page .ap-title { font-size: clamp(26px, 7.4vw, 31px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
  .ap-page .ap-sub { font-size: 16px; line-height: 1.5; color: #5B6472; margin-top: 8px; }
  .ap-page .ap-tabs { margin-bottom: 22px; padding: 5px; border-radius: 16px; background: #EEF1F4; }
  .ap-page .ap-tab { min-height: 42px; border-radius: 12px; font-size: 16px; }
  .ap-page .ap-tab[aria-selected="true"] { color: #0F3D38; font-weight: 700; box-shadow: 0 2px 8px rgba(15, 61, 56, .12); }
  .ap-page .field label, .ap-page .field > legend { color: #0F3D38; font-size: 16px; font-weight: 700; }
  .ap-page .ap-form input:not([type="checkbox"]):not([type="radio"]) { height: 46px; border-radius: 12px; border-color: #D3DAE3; font-size: 16px; }
  .ap-page .ap-row { justify-content: flex-end; margin: 2px 0 16px; }
  .ap-page .ap-row .link { color: #0F3D38; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
  .ap-page .ap-submit { min-height: 52px; border-radius: 16px; font-size: 18px; font-weight: 700; }
  .ap-page .ap-private { font-size: 13px; }
}
@media (max-width: 767px) { body:has(.ap-page) .site-header { background: #fff; border-bottom-color: transparent; box-shadow: none; } }
/* Connexion (mobile) : photo à 10 px des bords, formulaire à 20 px, textes qui tiennent jusqu'à 320 px */
@media (max-width: 767px) {
  .ap-page { padding: 0 0 28px; margin: -12px -6px 0; }
  .ap-page .ap-panel { padding: 26px 10px 8px; }
  .ap-page .ap-hero { min-height: 188px; }
  .ap-page .ap-hero-title { font-size: clamp(18px, 5.7vw, 25px); }
  .ap-page .ap-hero-tag { font-size: clamp(12.5px, 3.6vw, 15px); }
  .ap-page .ap-tab { font-size: clamp(14px, 4.1vw, 16px); white-space: nowrap; padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 767px) { .ap-page .ap-hero { aspect-ratio: auto; min-height: 0; height: clamp(188px, 58vw, 330px); width: auto; } }

/* « Un mot de… » (présentation du chef de tribu) : écriture de citation, chaleureuse et humaine (italique à empattements,
   polices déjà présentes sur chaque appareil : Iowan / Palatino sur iPhone et Mac, Noto Serif sur Android, Georgia sur Windows) */
.tp-word blockquote, .tp-word .tp-bio, blockquote.tp-bio {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 400; font-size: 17.5px; line-height: 1.55; letter-spacing: .005em; color: #26303F;
  font-feature-settings: "liga", "kern"; }
@media (min-width: 900px) { .tp-word blockquote, .tp-word .tp-bio, blockquote.tp-bio { font-size: 19px; } }

/* Slalom chronométré du planté de bâton (page Niveaux) */
.sg { margin: 28px 0 18px; padding: 22px clamp(14px, 4vw, 30px) 22px; border-radius: 22px; background: #fff;
  box-shadow: 0 18px 44px -26px rgba(11, 37, 69, .35), inset 0 0 0 1px rgba(11, 37, 69, .07); }
.sg-head { display: grid; gap: 4px; margin-bottom: 14px; }
.sg-kicker { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6B7383; }
.sg-head h2 { margin: 0; font-family: var(--font-title); font-size: clamp(21px, 2.4vw, 26px); letter-spacing: -.02em; color: var(--navy); }
.sg-stage { position: relative; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(11, 37, 69, .06); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sg-canvas { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 560px; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; background: #F1F7FC; }
.sg.is-running .sg-canvas { touch-action: none; }
.sg-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--fx-teal, #06C7B3); }
@media (max-width: 600px) { .sg-canvas { aspect-ratio: 4 / 5; max-height: 62vh; } }
.sg-hud { position: absolute; top: 10px; left: 10px; right: 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; pointer-events: none; }
.sg-pill { justify-self: start; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12.5px; color: #56606F; box-shadow: 0 2px 8px rgba(11, 37, 69, .08); white-space: nowrap; }
.sg-best-pill { justify-self: end; }
.sg-pill b { color: var(--navy); font-variant-numeric: tabular-nums; }
.sg-best-pill b { color: #0A9E8F; }
.sg-time { display: grid; justify-items: center; gap: 4px; }
.sg-clock { min-width: 84px; padding: 4px 12px; border-radius: 10px; background: rgba(11, 20, 46, .92); color: #fff; font-family: var(--font-title); font-size: 21px; font-weight: 700; line-height: 1.25; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.sg-split { padding: 2px 9px; border-radius: 7px; background: #0B2545; color: #fff; font-style: normal; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(-5px); transition: opacity .18s, transform .18s; }
.sg-split.is-on { opacity: 1; transform: none; }
.sg-split.is-good { background: #0B8A4B; } .sg-split.is-bad { background: #D4101C; }
.sg-lights { position: absolute; bottom: 20%; left: 50%; display: flex; gap: 9px; padding: 8px 12px; border-radius: 999px; background: rgba(11, 20, 46, .9); transform: translateX(-50%); pointer-events: none; }
.sg-lights[hidden] { display: none; }
.sg-lights i { width: 26px; height: 26px; border-radius: 50%; background: #39435C; transition: background .08s; }
.sg-lights[data-on="1"] i:nth-child(-n+1), .sg-lights[data-on="2"] i:nth-child(-n+2), .sg-lights[data-on="3"] i { background: #FF3B30; box-shadow: 0 0 12px rgba(255, 59, 48, .8); }
.sg-lights[data-on="go"] i { background: #22D36B; box-shadow: 0 0 14px rgba(34, 211, 107, .95); }
.sg-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; color: #3D4757; }
.sg-how li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; }
.sg-how b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #E3F6EB; color: #0B7A43; font-size: 12.5px; }
.sg-coach { position: absolute; left: 50%; bottom: 22px; max-width: calc(100% - 24px); margin: 0; padding: 9px 18px; border-radius: 999px; background: rgba(11, 20, 46, .88); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; transform: translateX(-50%); pointer-events: none; white-space: nowrap; }
.sg-coach[hidden] { display: none; }
.sg-coach.is-now { background: #0B8A4B; }
.sg-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(11, 37, 69, .12); pointer-events: none; }
.sg-progress i { display: block; height: 100%; background: linear-gradient(90deg, #06C7B3, #0A9E8F); transform: scaleX(0); transform-origin: 0 50%; }
.sg-start { position: absolute; inset: auto 0 15%; display: grid; place-items: center; pointer-events: none; }
.sg-start[hidden] { display: none; }
.sg-start-btn { padding: 13px 22px; border: 0; border-radius: 999px; background: rgba(11, 37, 69, .9); color: #fff; font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; pointer-events: auto;
  box-shadow: 0 10px 24px -10px rgba(11, 37, 69, .6); animation: sg-pulse 1.8s ease-in-out infinite; }
.sg-result { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 54px 18px 22px; background: rgba(241, 247, 252, .9); text-align: center; animation: sg-in .3s ease-out; }
.sg-result[hidden] { display: none; }
.sg-result p { margin: 0; }
.sg-res-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #56606F; }
.sg-res-t { font-family: var(--font-title); font-size: clamp(44px, 9vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.sg-res-t small { margin-left: 4px; font-size: .42em; font-weight: 600; letter-spacing: 0; }
.sg-res-d { padding: 3px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-res-t.is-good { color: #0B8A4B; } .sg-res-d.is-good { background: #E3F6EB; color: #0B7A43; } .sg-res-d.is-bad { background: #F0F2F5; color: #56606F; }
.sg-res-m { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: #3D4757; }
.sg-res-h { max-width: 34ch; font-size: 15px; font-weight: 600; color: var(--navy); }
.sg-again { min-height: 50px; margin-top: 6px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.sg-again:active { transform: scale(.97); }
.sg-medal { display: inline-block; flex: none; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), 0 1px 3px rgba(11, 37, 69, .3); }
.sg-gold { background: #F2B705; } .sg-silver { background: #A9B4C2; } .sg-bronze { background: #C47B3D; }
.sg-line { margin: 12px 0 10px; min-height: 3em; font-size: 15px; line-height: 1.5; color: #3D4757; }
.sg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sg-plant { min-width: 240px; min-height: 60px; padding: 0 26px; font-size: 17px; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; transition: background .12s; will-change: transform; }
.sg-plant[data-mode="wait"] { background: #8A93A2; } .sg-plant[data-mode="go"], .sg-plant[data-mode="now"] { background: #0B8A4B; border-color: #0B8A4B; } .sg-plant[data-mode="locked"] { opacity: .6; }
.sg-plant.is-hit { animation: sg-hit .16s ease-out; }
.sg-to-quiz { font-size: 14.5px; font-weight: 600; color: #0A9E8F; text-decoration: none; }
.sg-to-quiz:hover { text-decoration: underline; }
.sg-runs { margin-top: 18px; padding-top: 14px; border-top: 1px solid #E8EEF3; }
.sg-runs[hidden] { display: none; }
.sg-runs h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.sg-runs ol { display: grid; gap: 2px; max-width: 420px; margin: 0; padding: 0; list-style: none; }
.sg-runs li { display: grid; grid-template-columns: 1fr auto 64px 20px; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 9px; font-size: 14.5px; color: #3D4757; font-variant-numeric: tabular-nums; }
.sg-runs em { font-style: normal; text-align: right; color: #7A8392; white-space: nowrap; }
.sg-runs b { color: var(--navy); }
.sg-runs li.is-better { background: #EAF8F0; } .sg-runs li.is-better b, .sg-runs li.is-better em { color: #0B7A43; font-weight: 700; }
.sg-runs li.is-best span::after { content: "★"; margin-left: 6px; color: #F2B705; }
@media (max-width: 600px) { .sg-how { grid-template-columns: 1fr; gap: 6px; font-size: 13.5px; } .sg-coach { font-size: 14.5px; padding: 8px 14px; } .sg-canvas { max-height: 54vh; } .sg-plant { width: 100%; min-height: 72px; font-size: 19px; } .sg-pill { padding: 4px 8px; font-size: 11.5px; } .sg-clock { font-size: 19px; min-width: 76px; padding: 4px 9px; } .sg-line { margin: 10px 0 8px; font-size: 14.5px; } }
@keyframes sg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes sg-hit { 0% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes sg-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sg-start-btn, .sg-plant.is-hit, .sg-result { animation: none; } }

/* Test de niveau SkiTribu (création, demande, page Niveaux) : une question à la fois, sobre et précis */
.lt-slot { margin-top: 6px; }
.lt { padding: 16px; border: 1px solid #E3E9F0; border-radius: 16px; background: #fff; }
.lt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lt-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-teal-d, #0A9E8F); }
.lt-count { font-size: 12.5px; color: #6B7383; font-variant-numeric: tabular-nums; }
.lt-bar { display: block; height: 4px; margin: 10px 0 14px; border-radius: 99px; background: #E8EEF3; overflow: hidden; }
.lt-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--fx-teal, #06C7B3), #7FE3D8); transition: width .4s var(--fx-out, ease); }
.lt-stage.is-in { animation: lq-in .35s var(--fx-out, ease); }
.lt-intro { margin: 0 0 10px; font-size: 14px; color: #56606F; }
.lt-q { margin: 0 0 14px; font-size: 16.5px; font-weight: 600; line-height: 1.45; color: var(--navy); }
.lt-opts { display: grid; gap: 8px; }
.lt-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.lt-opt { min-height: 46px; padding: 10px 14px; border: 1px solid #DCE5EE; border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; color: var(--navy); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.lt-opt:hover { border-color: #9EDFD7; } .lt-opt.is-on { border-color: var(--fx-teal, #06C7B3); background: #F0FBF9; box-shadow: inset 0 0 0 1px var(--fx-teal, #06C7B3); }
.lt-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-yes, .lt-no { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; }
.lt-yes { border: 0; background: var(--fx-teal-d, #0A9E8F); color: #fff; box-shadow: 0 8px 18px -10px rgba(6, 199, 179, .9); }
.lt-no { border: 1px solid #DCE5EE; background: #fff; color: var(--navy); }
.lt-yes:active, .lt-no:active { transform: scale(.98); }
.lt-yes .icon, .lt-no .icon { width: 18px; height: 18px; }
.lt-honest { margin: 12px 0 0; font-size: 12.5px; color: #7A8392; }
.lt-back { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: #56606F; cursor: pointer; }
.lt-back .icon { width: 15px; height: 15px; }
.lt-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; color: #56606F; }
.lt-error { color: #B80915; font-size: 14px; }
.lt-start { display: flex; gap: 14px; padding: 16px; border: 1px dashed #BFD8D4; border-radius: 16px; background: #F7FCFB; }
.lt-start-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(6, 199, 179, .12); color: var(--fx-teal-d, #0A9E8F); }
.lt-start-ic .icon { width: 20px; height: 20px; }
.lt-start-title { margin: 0 0 4px; font-weight: 700; color: var(--navy); }
.lt-start-text { margin: 0; font-size: 14px; line-height: 1.5; color: #56606F; }
.lt-start-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lt-result { position: relative; display: flex; gap: 14px; padding: 16px 16px 16px; border-radius: 16px; background: linear-gradient(160deg, #F0FBF9, #fff 70%); box-shadow: inset 0 0 0 1px rgba(6, 199, 179, .25); }
.lt-badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--fx-teal, #06C7B3), var(--fx-teal-d, #0A9E8F)); box-shadow: 0 8px 18px -10px rgba(6, 199, 179, .9); }
.lt-badge .icon { width: 20px; height: 20px; }
.lt-res-text { min-width: 0; flex: 1; }
.lt-res-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-teal-d, #0A9E8F); }
.lt-res-level { margin: 2px 0 2px; font-family: var(--font-title); font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--fx-green, #0E4A43); }
.lt-res-hint { margin: 0; font-size: 14px; color: #56606F; }
.lt-res-dip, .lt-res-warn { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: 13.5px; color: #3D4757; }
.lt-res-dip .icon, .lt-res-warn .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lt-res-warn { color: #8A5A00; }
.lt-res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lt-redo { position: absolute; top: 12px; right: 12px; padding: 4px 6px; border: 0; background: none; font: inherit; font-size: 13px; color: #56606F; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lt-mismatch { padding: 16px; border-radius: 16px; background: #FFF7F2; box-shadow: inset 0 0 0 1px #F6D7C5; position: relative; }
.lt-mismatch p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #4B3A2E; }
.lt-mm-title { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-weight: 700; color: #8A3B00 !important; font-size: 15px !important; }
.lt-mm-title .icon { width: 18px; height: 18px; }
.lt-mm-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lt-photo { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.lt-photo-btn { display: flex; align-items: center; gap: 10px; flex: 1; padding: 10px 12px; border: 1px dashed #C9D3E0; border-radius: 12px; cursor: pointer; background: #fff; }
.lt-photo-btn > .icon { width: 22px; height: 22px; color: #56606F; flex: none; }
.lt-photo-btn img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.lt-photo-btn span { display: grid; gap: 2px; font-size: 13.5px; color: var(--navy); } .lt-photo-btn em { font-style: normal; font-size: 12px; color: #6B7383; }
.lt-photo-x { border: 0; background: none; cursor: pointer; color: #6B7383; }
.lt-kids { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lt-kid-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid #E3E9F0; border-radius: 12px; position: relative; }
.lt-kid-slot:has(.lt) , .lt-kid-slot:has(.lt-mismatch) { display: block; padding: 0; border: 0; }
.lt-kid-name { font-weight: 600; color: var(--navy); flex: 1; }
.lt-kid-ok { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--fx-teal-d, #0A9E8F); } .lt-kid-ok .icon { width: 16px; height: 16px; }
.lt-kid-slot .lt-redo { position: static; }
.lt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.lt-tab { padding: 8px 14px; border: 1px solid #DCE5EE; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; }
.lt-tab.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.lt-explore-sub { margin: 4px 0 0; font-size: 14.5px; color: #56606F; }
.wz-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
/* Fenêtre « Rejoindre » : tant que le niveau n'est pas vérifié, seul le test est proposé */
#join-form.is-gated > .jn-block:not(.jn-level), #join-form.is-gated > .jn-sessions { display: none; }
/* Demandes (chef) : niveau vérifié et diplôme */
.lc { margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; background: #F4FAF9; box-shadow: inset 0 0 0 1px rgba(6, 199, 179, .2); }
.lc-title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fx-teal-d, #0A9E8F); }
.lc-title .icon { width: 15px; height: 15px; }
.lc-items { display: grid; gap: 2px; font-size: 14px; color: #3D4757; }
.lc-warn { font-style: normal; color: #8A5A00; font-weight: 600; }
.lc-dip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.lc-photo { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--navy); }
.lc-photo img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px #E3E9F0; }
.lc-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--fx-teal-d, #0A9E8F); } .lc-ok .icon { width: 16px; height: 16px; }
@media (max-width: 420px) { .lt-start { flex-direction: column; } .lt-result { flex-direction: column; padding-top: 40px; } }
.lt-mismatch .lt-redo { position: static; display: inline-block; margin-top: 12px; padding: 0; }
.lc-confirm { max-width: 100%; white-space: normal; }
.lc-none { font-size: 13px; color: #6B7383; }
.st-block-note { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: #FFF7F2; font-size: 13.5px; line-height: 1.45; color: #6B3A16; }
.st-block-note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.confirm-warning { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: #FFF1EC; box-shadow: inset 0 0 0 1px #F6CDBB; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: #8A2E00; }
.confirm-warning .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---- Test de niveau : feuille glissante (popup slide) ---------------------------------------------------------- */
.lts { position: fixed; inset: 0; width: min(520px, calc(100% - 32px)); max-width: none; max-height: min(720px, calc(100dvh - 48px)); margin: auto; padding: 0; border: 0; border-radius: 22px;
  background: #fff; color: var(--navy); box-shadow: 0 30px 80px -20px rgba(16, 28, 53, .45); overflow: hidden; animation: lts-up .32s cubic-bezier(.2, .8, .2, 1); }
.lts::backdrop { background: rgba(16, 28, 53, .48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: lts-fade .25s ease; }
.lts.is-leaving { animation: lts-down .22s ease forwards; }
.lts.is-leaving::backdrop { animation: lts-fade .22s ease reverse forwards; }
@keyframes lts-up { from { transform: translateY(28px) scale(.98); opacity: 0; } }
@keyframes lts-down { to { transform: translateY(28px) scale(.98); opacity: 0; } }
@keyframes lts-fade { from { opacity: 0; } }
.lts-card { display: flex; flex-direction: column; max-height: inherit; }
.lts-head { flex: none; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; padding: 12px 12px 10px; }
.lts-ic { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #3D4757; cursor: pointer; transition: background .15s; }
.lts-ic:hover { background: #F2F5F9; } .lts-ic .icon { width: 20px; height: 20px; } .lts-ic.is-hidden { visibility: hidden; }
.lts-prog { min-width: 0; text-align: center; }
.lts-kicker { margin: 0 0 7px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-teal-d, #0A9E8F); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lts-bar { display: block; height: 4px; border-radius: 99px; background: #E8EEF3; overflow: hidden; }
.lts-bar i { display: block; width: 4%; height: 100%; border-radius: 99px; background: var(--fx-teal, #06C7B3); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.lts-vp { position: relative; display: grid; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.lts-pane { grid-area: 1 / 1; min-width: 0; padding: 10px 22px 24px; }
.lts-pane.in-fwd { animation: lts-in-r .32s cubic-bezier(.2, .8, .2, 1); }
.lts-pane.in-back { animation: lts-in-l .32s cubic-bezier(.2, .8, .2, 1); }
.lts-pane.is-out { pointer-events: none; }
.lts-pane.out-fwd { animation: lts-out-l .26s ease forwards; }
.lts-pane.out-back { animation: lts-out-r .26s ease forwards; }
@keyframes lts-in-r { from { transform: translateX(36px); opacity: 0; } }
@keyframes lts-in-l { from { transform: translateX(-36px); opacity: 0; } }
@keyframes lts-out-l { to { transform: translateX(-36px); opacity: 0; } }
@keyframes lts-out-r { to { transform: translateX(36px); opacity: 0; } }
.lts-q { margin: 0 0 8px; font-family: var(--font-title); font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--navy); outline: none; }
.lts-hint { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #5B6575; }
.lts-imp { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #F2F5F9; color: #4B5565; }
.lts-imp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lts-imp.is-very_high { background: #E9F8F5; color: #077C70; }
.lts-opts { display: grid; gap: 8px; }
.lts-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #DCE3EB; border-radius: 14px; background: #fff;
  font: inherit; font-size: 15px; line-height: 1.4; color: var(--navy); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .1s; }
.lts-opt:hover { border-color: #A8B6C6; } .lts-opt:active { transform: scale(.99); }
.lts-opt:focus-visible { outline: 2px solid var(--fx-teal, #06C7B3); outline-offset: 2px; }
.lts-dot { flex: none; width: 20px; height: 20px; border: 1.5px solid #B9C5D3; border-radius: 50%; transition: border-color .15s, box-shadow .15s; }
.lts-opt.is-on { border-color: var(--fx-teal-d, #0A9E8F); background: #F2FBF9; box-shadow: inset 0 0 0 1px var(--fx-teal-d, #0A9E8F); }
.lts-opt.is-on .lts-dot { border-color: var(--fx-teal-d, #0A9E8F); box-shadow: inset 0 0 0 5px var(--fx-teal-d, #0A9E8F); }
.lts-opt-l { min-width: 0; overflow-wrap: anywhere; }
.lts-welcome .lts-q, .lts-res .lts-level { margin-top: 4px; }
.lts-crit { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.lts-crit li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; font-size: 14.5px; color: var(--navy); }
.lts-crit em { font-style: normal; font-size: 12px; color: #6B7383; white-space: nowrap; }
.lts-crit-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #F2F5F9; color: #3D4757; }
.lts-crit-ic .icon { width: 18px; height: 18px; }
.lts-go { width: 100%; min-height: 50px; justify-content: center; }
.lts-fine { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: #6B7383; }
.lts-fine .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.lts-res { text-align: center; }
.lts-medal { display: inline-grid; place-items: center; width: 56px; height: 56px; margin: 6px 0 12px; border-radius: 50%; background: var(--fx-teal-d, #0A9E8F); color: #fff; box-shadow: 0 12px 26px -12px rgba(10, 158, 143, .9); }
.lts-medal .icon { width: 26px; height: 26px; }
.lts-medal.is-pop { animation: lts-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lts-pop { from { transform: scale(.4); opacity: 0; } }
.lts-res .lts-kicker { margin-bottom: 2px; }
.lts-level { margin: 0; font-family: var(--font-title); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--fx-green, #0E4A43); }
.lts-res .esi-eq { margin: 6px auto 0; }
.lts-res .lts-hint { margin: 10px auto 14px; max-width: 34ch; }
.lts-conf { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 12px; border-radius: 99px; background: #F2F5F9; font-size: 13px; font-weight: 600; color: #3D4757; }
.lts-conf-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.lts-conf-bars i { width: 3px; border-radius: 2px; background: #C9D3E0; } .lts-conf-bars i:nth-child(1) { height: 5px; } .lts-conf-bars i:nth-child(2) { height: 8px; } .lts-conf-bars i:nth-child(3) { height: 12px; }
.lts-conf.is-high .lts-conf-bars i, .lts-conf.is-good .lts-conf-bars i:nth-child(-n+2), .lts-conf.is-check .lts-conf-bars i:nth-child(1) { background: var(--fx-teal-d, #0A9E8F); }
.lts-conf.is-check { background: #FFF6E8; color: #7A4B00; } .lts-conf.is-check .lts-conf-bars i:nth-child(1) { background: #C27A00; }
.lts-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #FFF7EC; font-size: 13.5px; line-height: 1.45; color: #6E4500; text-align: left; }
.lts-warn .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.lts-why { margin: 0 0 18px; border: 1px solid #E3E9F0; border-radius: 14px; text-align: left; }
.lts-why summary { padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lts-why summary::-webkit-details-marker { display: none; }
.lts-why summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid #6B7383; border-bottom: 1.5px solid #6B7383; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.lts-why[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.lts-why ul { list-style: none; margin: 0; padding: 0 14px; display: grid; gap: 9px; }
.lts-why li { display: grid; grid-template-columns: 8px minmax(84px, auto) 1fr; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.4; }
.lts-why-k { color: #6B7383; } .lts-why-v { color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
.lts-w { width: 8px; height: 8px; border-radius: 50%; background: #C9D3E0; transform: translateY(-1px); }
.lts-w.is-very_high { background: var(--fx-teal-d, #0A9E8F); } .lts-w.is-high { background: #7FD3C9; }
.lts-why .lts-fine { padding: 0 14px 14px; margin-top: 12px; }
.lts-link { display: inline-block; margin-top: 12px; padding: 6px; border: 0; background: none; font: inherit; font-size: 14px; color: #4B5565; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lts-err { padding: 30px 0; text-align: center; color: #B80915; }
.lts-err .btn { margin-top: 12px; }
@media (max-width: 599px) {
  .lts { inset: auto 0 0 0; width: 100%; max-height: calc(100dvh - 24px); margin: 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation-name: lts-sheet-up; }
  .lts.is-leaving { animation-name: lts-sheet-down; }
  .lts-pane { padding: 6px 18px 22px; }
  .lts-q { font-size: 19.5px; }
  .lts-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 99px; background: #D5DCE5; }
}
@keyframes lts-sheet-up { from { transform: translateY(100%); } }
@keyframes lts-sheet-down { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .lts, .lts-pane, .lts-medal, .lts::backdrop { animation: none !important; } }

/* Équivalent ESI (indicatif) à côté d’un niveau ESF */
.esi-eq { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 2px 9px; border-radius: 99px; background: #F2F5F9; color: #4B5565; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: normal; vertical-align: middle; }
.lt-res-text .esi-eq { margin: 2px 0 4px; }
.lv-head .esi-eq { justify-self: start; }
/* Tableau ESF / ESI (page Niveaux) */
.cmp { margin-top: 8px; }
.cmp-sub { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: #56606F; }
.cmp-table { border: 1px solid #E3E9F0; border-radius: 16px; overflow: hidden; background: #fff; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px 16px; font-size: 14px; border-top: 1px solid #EEF2F6; }
.cmp-row:first-child { border-top: 0; } .cmp-row > span { min-width: 0; overflow-wrap: anywhere; }
.cmp-th { background: #F7F9FB; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B7383; }
.cmp-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #6B7383; }
.cmp-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
@media (max-width: 420px) { .cmp-row { padding: 10px 12px; gap: 8px; font-size: 13.5px; } }
.lts-opts.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lts-opts.is-grid .lts-opt { min-height: 50px; padding: 10px 12px; gap: 10px; font-size: 14.5px; }
.lts-opts.is-grid .lts-dot { width: 18px; height: 18px; }
.lts-level { outline: none; }

/* ---- Fenêtre « Rejoindre une tribu » (maquette) ---------------------------------------------------------------- */
.modal-shell.is-join .jn-title { color: var(--fx-green, #0E4A43); font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
.modal-shell.is-join .jn-lead { margin: 8px 0 20px; font-size: 16px; color: #56606F; }
.modal-shell.is-join .ps-card { align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #F3F6FA; }
.ps-ava { position: relative; flex: none; display: block; border-radius: 50%; }
.ps-ava .avatar { width: 58px; height: 58px; }
.ps-cam { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--fx-teal-d, #0A9E8F); box-shadow: 0 0 0 1px #CDEBE6, 0 2px 6px rgba(16, 28, 53, .12); }
.ps-cam .icon { width: 13px; height: 13px; }
.modal-shell.is-join .ps-name { font-size: 18px; font-weight: 700; }
.ps-line { display: block; margin-top: 4px; font-size: 14.5px; color: #4B5565; }
.modal-shell.is-join .ps-edit { flex: none; }
.jn-note { display: grid; grid-template-columns: 26px 1px 1fr; align-items: center; gap: 0 14px; margin: 16px 4px 0; }
.jn-note::before { content: ""; grid-column: 2; grid-row: 1; width: 1px; height: 26px; background: #D5DCE5; }
.jn-note > .icon { grid-column: 1; grid-row: 1; width: 24px; height: 24px; color: #3D4757; }
.jn-note-txt { grid-column: 3; grid-row: 1; display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.45; color: #56606F; }
.jn-note-txt > a:first-child { justify-self: start; font-size: 15.5px; font-weight: 600; color: var(--accent, #E30613); text-decoration: underline; text-underline-offset: 3px; }
.jn-note-txt strong { font-size: 15px; font-weight: 700; color: var(--navy); }
.jn-more-link { justify-self: start; color: #3D4757; text-decoration: underline; text-underline-offset: 3px; }
.jn-pay { margin: 22px 4px 4px; }
.modal-shell.is-join .jn-level { border: 0; padding: 0; background: none; }
.jl-card { margin-top: 4px; padding: 18px; border-radius: 18px; background: #EEF8F6; }
.jl-top { display: flex; gap: 14px; align-items: flex-start; }
.jl-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #D9F1EC; color: var(--fx-teal-d, #0A9E8F); }
.jl-ic .icon { width: 26px; height: 26px; }
.jl-head { min-width: 0; }
.jl-title { margin: 0 0 8px; font-family: var(--font-title); font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--fx-green, #0E4A43); }
.jl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: #DCF1EC; font-size: 13.5px; color: #1F2D3D; }
.jl-chip strong { font-weight: 700; color: var(--navy); }
.jl-chip.is-time { color: var(--fx-teal-d, #0A9E8F); font-weight: 600; }
.jl-text { margin: 14px 0 16px; font-size: 15px; line-height: 1.5; color: #4B5565; }
.jl-go { width: 100%; min-height: 52px; justify-content: center; gap: 10px; font-size: 16px; }
.jl-go .icon { width: 20px; height: 20px; }
@media (max-width: 420px) { .modal-shell.is-join .jn-title { font-size: 27px; } .jl-card { padding: 16px; } .jl-ic { width: 46px; height: 46px; } .jl-title { font-size: 18px; } }
.modal-shell.is-join .jn-title:focus { outline: none; }
@media (max-width: 420px) { .ps-line { font-size: 13.5px; } .jl-chip { padding: 4px 10px; font-size: 13px; } .jl-top { gap: 12px; } }
.jl-top { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; }
.jl-head { display: contents; }
.jl-title { grid-column: 2; margin: 0; }
.jl-chips { grid-column: 2; margin-top: 8px; }
@media (max-width: 420px) { .jl-top { grid-template-columns: 46px 1fr; column-gap: 12px; } .jl-chips { grid-column: 1 / -1; margin-top: 12px; } }
.modal-shell.is-join .jn-level { margin-top: 22px; }
.lts-switch { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 2px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--fx-teal-d, #0A9E8F); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lts-switch .icon { flex: none; width: 17px; height: 17px; }
/* Choix multiple (pistes) : cases à cocher et pastille de couleur de piste */
.lts-opt.is-check .lts-dot { display: grid; place-items: center; border-radius: 6px; color: #fff; }
.lts-opt.is-check .lts-dot .icon { width: 13px; height: 13px; opacity: 0; transition: opacity .12s; }
.lts-opt.is-check.is-on .lts-dot { border-color: var(--fx-teal-d, #0A9E8F); background: var(--fx-teal-d, #0A9E8F); box-shadow: none; }
.lts-opt.is-check.is-on .lts-dot .icon { opacity: 1; }
.lts-opts.is-slopes .lts-opt-l { display: inline-flex; align-items: center; gap: 10px; }
.lts-opts.is-slopes .lts-opt[data-v] .lts-opt-l::after { content: ""; order: -1; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.lts-opts.is-slopes .lts-opt[data-v="none"] .lts-opt-l::after { display: none; }
.lts-opts.is-slopes .lts-opt[data-v="green"] .lts-opt-l::after { background: #1E9E4A; }
.lts-opts.is-slopes .lts-opt[data-v="blue"] .lts-opt-l::after { background: #1F6FD1; }
.lts-opts.is-slopes .lts-opt[data-v="red"] .lts-opt-l::after { background: #D62F2F; }
.lts-opts.is-slopes .lts-opt[data-v="black"] .lts-opt-l::after { background: #111827; }
.lts-next { margin-top: 16px; }
.lts-next:disabled { opacity: .45; cursor: not-allowed; }
/* Écrire au chef malgré l'écart de niveau */
.lt-talk { margin-top: 14px; padding-top: 12px; border-top: 1px solid #F1DCCD; }
.lt-talk p { margin: 0 0 10px !important; }
.lt-talk-btn { display: inline-flex; align-items: center; gap: 8px; }
.lt-talk-btn .icon { width: 17px; height: 17px; }
.ch-level { flex-wrap: wrap; align-items: center; }
.ch-level .ch-waive { margin-left: auto; }
.ch-level.is-ok { background: #EEF8F6; color: #0E4A43; }
.ch-level a { color: inherit; font-weight: 700; }

/* ---- Page Profil (maquette) ------------------------------------------------------------------------------------ */
body:has(.pf) .site-header { background: #fff; border-bottom: 1px solid #E8EDF3; }
.pf-head h1, .pf-card > h2 { color: var(--fx-green, #0E4A43); }
.pf-card > h2 { font-family: var(--font-title); font-weight: 800; letter-spacing: -.02em; }
.pf-avatar { box-shadow: 0 0 0 3px #CDEFE8, 0 6px 18px -8px rgba(10, 158, 143, .45); }
.pf-cam { box-shadow: 0 2px 8px rgba(16, 28, 53, .15); }
.pf-photo-text strong { font-family: var(--font-title); font-weight: 700; }
.pf-rule { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #EAF7F2; font-size: 14px; color: #1F3A35; text-align: left; }
.pf-rule .icon { width: 20px; height: 20px; color: #13915F; }
.pf-photo { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #E3E9F0; }
.pf-last-help { margin: 8px 0 0; font-size: 13.5px; color: #6B7383; }
@media (max-width: 767px) {
  .pf-head { text-align: left; margin: 8px 0 20px; }
  .pf-head h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
  .pf-head p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #56606F; }
  .pf-card > h2 { font-size: 26px; margin-bottom: 18px; }
  .pf-avatar { width: 108px; height: 108px; }
  .pf-photo-text { padding-left: 0; border-left: 0; gap: 4px; }
  .pf-photo-text strong { font-size: 19px; }
  .pf-photo-text > span { font-size: 14.5px; color: #6B7383; }
  .pf-photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .pf-photo-btns .btn { min-height: 46px; justify-content: center; font-size: 14.5px; }
  .pf-remove { justify-self: center; margin-top: 10px; }
  .pf-rule { width: 100%; }
}
@media (max-width: 767px) {
  .pf-photo-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .pf-photo-btns .btn { min-width: 0; padding: 0 10px; gap: 6px; white-space: nowrap; font-size: 14px; }
  .pf-photo-text { width: 100%; min-width: 0; }
  .pf-rule { justify-self: stretch; margin-left: 0; margin-right: 0; max-width: none; box-sizing: border-box; }
}
@media (max-width: 360px) { .pf-photo-btns { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .pf-photo-text strong { font-size: 17.5px; } .pf-photo-btns .btn { font-size: 13.5px; padding: 0 8px; } .pf-card { padding-left: 16px; padding-right: 16px; } }

/* ---- Conversation (maquette) : niveau à confirmer, encadrés, séparateur du jour ---------------------------------- */
body:has(.ch) .site-header { background: #fff; border-bottom: 1px solid #E8EDF3; }
.ch-lvl { margin: 12px 14px 0; padding: 16px 18px; border-radius: 16px; background: #FFF7E6; }
.ch-lvl-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-title); font-size: 18px; font-weight: 700; color: var(--fx-green, #0E4A43); }
.ch-lvl-title .icon { flex: none; width: 24px; height: 24px; color: #D98A0B; }
.ch-lvl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 36px; }
.ch-lvl-chips span { padding: 4px 12px; border-radius: 999px; background: #E3F4EE; font-size: 14px; color: #1F2D3D; }
.ch-lvl-chips strong { font-weight: 700; color: var(--navy); }
.ch-lvl-text { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #3D4757; }
.ch-lvl-text a { color: var(--fx-green, #0E4A43); font-weight: 700; }
.ch-lvl .ch-waive { width: 100%; margin-top: 12px; justify-content: center; }
.ch-lvl.is-ok { background: #EEF8F6; }
.ch-lvl.is-ok .ch-lvl-title .icon { color: var(--fx-teal-d, #0A9E8F); }
.ch-note { display: grid !important; grid-template-columns: 28px 1px 1fr; align-items: center; gap: 0 14px; padding: 14px 16px !important; border-radius: 14px !important; }
.ch-note::before { content: ""; grid-column: 2; grid-row: 1; width: 1px; height: 30px; background: currentColor; opacity: .25; }
.ch-note > .icon { grid-column: 1; grid-row: 1; width: 26px !important; height: 26px !important; margin: 0 !important; }
.ch-note > span { grid-column: 3; grid-row: 1; display: grid !important; gap: 2px; min-width: 0; padding: 0 !important; background: none !important; font-size: 14px; line-height: 1.45; text-align: left; }
.ch-note strong { font-size: 15px; font-weight: 700; color: var(--fx-green, #0E4A43); }
.ch-banner.ch-note { margin: 12px 14px 0; background: #EEF2F7; color: #3E4B5E; }
.ch-banner.ch-note strong { color: #1E2B3C; }
.ch-safe.ch-note { align-self: stretch; max-width: none; margin: 4px 0 6px; background: #EAF6F0; color: #24543A; }
.ch-day { align-self: stretch; display: flex; align-items: center; gap: 12px; }
.ch-day::before, .ch-day::after { content: ""; flex: 1; height: 1px; background: #DCE3EB; }
.ch-day span { padding: 5px 16px; border: 1px solid #D5DCE5; background: #fff; box-shadow: none; font-size: 13.5px; color: #3D4757; }
.ch-start { align-self: center; display: grid; justify-items: center; gap: 4px; max-width: 92%; margin: 16px 0 10px; text-align: center; }
.ch-start-ic { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border-radius: 50%; background: #E6F5F1; }
.ch-start-ic img { width: 40px; height: 40px; object-fit: contain; }
.ch-start strong { font-family: var(--font-title); font-size: 17px; font-weight: 700; color: var(--fx-green, #0E4A43); }
.ch-start > span:last-child { font-size: 14.5px; color: #5B6575; }
.ch.is-compact .ch-lvl { margin: 10px 10px 0; }
@media (max-width: 420px) {
  .ch-lvl { padding: 14px 16px; }
  .ch-lvl-chips { margin-left: 0; gap: 6px; }
  .ch-lvl-chips span { padding: 4px 10px; font-size: 13.5px; }
  .ch-lvl-text { font-size: 14.5px; }
  .ch-note { padding: 12px 14px !important; gap: 0 12px; }
}

/* ---- Rejoindre : écran « niveau différent » (maquette) ------------------------------------------------------------ */
.modal-shell.is-mm .modal-body > .jn-eyebrow, .modal-shell.is-mm .modal-body > .jn-title, .modal-shell.is-mm .modal-body > .jn-lead,
.modal-shell.is-mm .modal-body > .ps-card, .modal-shell.is-mm .modal-body > .jn-note { display: none; }
.modal-shell.is-mm .jn-level { margin-top: 0 !important; }
.mm .jn-eyebrow { margin-top: 0; }
.mm-title { position: relative; margin: 6px 0 0; padding-left: 18px; font-family: var(--font-title); font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; color: var(--fx-green, #0E4A43); }
.mm-title::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--accent, #E30613); }
.mm-lead { margin: 10px 0 18px; font-size: 16px; line-height: 1.5; color: #56606F; }
.mm-me { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #EEF7F6; }
.mm-me .avatar { flex: none; width: 56px; height: 56px; }
.mm-me-name { flex: 1; min-width: 0; margin: 0; font-size: 16px; color: #56606F; }
.mm-me-name strong { font-size: 18px; color: var(--navy); }
.mm-me .ps-edit { flex: none; }
.mm-cmp { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; padding: 18px 12px 16px; border-radius: 18px; background: #FFF7EC; text-align: center; }
.mm-col { display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 0 8px; }
.mm-col + .mm-col { border-left: 1px solid #EAD9C2; }
.mm-k { font-size: 14px; color: #3D4757; }
.mm-v { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--fx-green, #0E4A43); }
.mm-bars { flex: none; width: 30px; height: 24px; }
.mm-bars rect { fill: #CFE7E2; } .mm-bars rect.is-on { fill: var(--fx-teal-d, #0A9E8F); }
.mm-note { grid-column: 1 / -1; margin: 14px 0 0; font-size: 15px; color: #4B5565; }
.mm-btn { width: 100%; min-height: 52px; margin-top: 14px; justify-content: center; gap: 10px; font-size: 16px; }
.mm-btn .icon { width: 20px; height: 20px; margin-left: auto; }
.mm-btn:not(.mm-btn2) { position: relative; }
.mm-btn:not(.mm-btn2) .icon { position: absolute; right: 18px; }
.mm-btn2 { margin-top: 10px; }
.mm-talk { margin-top: 20px; padding-top: 18px; border-top: 1px solid #E3E9F0; }
.mm-talk-title { margin: 0; font-family: var(--font-title); font-size: 19px; font-weight: 700; color: var(--fx-green, #0E4A43); }
.mm-talk-text { margin: 6px 0 12px; font-size: 15px; line-height: 1.5; color: #56606F; }
.mm-redo { display: block; margin-top: 12px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: #3D4757; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 420px) {
  .mm-title { font-size: 26px; padding-left: 16px; }
  .mm-v { font-size: 21px; gap: 8px; } .mm-bars { width: 24px; height: 20px; }
  .mm-cmp { padding: 16px 6px 14px; } .mm-col { padding: 0 6px; }
  .mm-me { padding: 12px; gap: 12px; } .mm-me .avatar { width: 48px; height: 48px; }
}

/* ---- Rejoindre : niveau vérifié (maquette) ------------------------------------------------------------------------ */
.modal-shell.is-join .ps-name span::before { content: "· "; }
.vc { margin-top: 4px; padding: 16px 18px; border-radius: 18px; background: #EAF7F4; }
.vc-top { display: grid; grid-template-columns: 52px 1fr auto; column-gap: 14px; align-items: start; }
.vc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #D3EFE8; color: var(--fx-teal-d, #0A9E8F); }
.vc-ic .icon { width: 26px; height: 26px; }
.vc-head { min-width: 0; }
.vc-kicker { margin: 2px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fx-green, #0E4A43); }
.vc-level { margin: 2px 0 0; font-family: var(--font-title); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--fx-green, #0E4A43); }
.vc-src { margin: 4px 0 0; font-size: 14px; color: #3D4757; }
.vc-redo { padding: 2px 0; border: 0; background: none; font: inherit; font-size: 14px; color: #3D4757; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.vc-hint { margin: 12px 0 0; font-size: 15.5px; line-height: 1.5; color: #2E3A48; }
.vc-dip { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid #B9E0D6; }
.vc-medal { justify-self: center; width: 34px; height: 34px; color: var(--fx-green, #0E4A43); }
.vc-dip span { display: grid; gap: 2px; font-size: 15px; color: #2E3A48; }
.vc-dip strong { font-weight: 700; color: var(--fx-green, #0E4A43); }
.vc-photo { position: relative; margin-top: 14px; }
.vc-photo-btn { display: grid; grid-template-columns: 52px 1px 1fr; align-items: center; column-gap: 14px; padding: 14px 16px; border: 1.5px dashed #C3CDD8; border-radius: 16px; background: #fff; cursor: pointer; }
.vc-photo-btn::before { content: ""; grid-column: 2; grid-row: 1; width: 1px; height: 52px; background: #D5DCE5; }
.vc-photo-btn > .icon, .vc-photo-btn > img { grid-column: 1; grid-row: 1; justify-self: center; }
.vc-photo-btn > .icon { width: 30px; height: 30px; color: var(--fx-green, #0E4A43); }
.vc-photo-btn > img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.vc-photo-btn > span { grid-column: 3; grid-row: 1; display: grid; gap: 2px; min-width: 0; }
.vc-photo-btn strong { font-size: 15.5px; color: var(--navy); }
.vc-photo-btn em { font-style: normal; font-size: 13.5px; line-height: 1.4; color: #5B6575; }
.vc-photo .lt-photo-x { position: absolute; top: 8px; right: 8px; }
/* Nombre de places */
.modal-shell.is-join .join-counter { border-top: 1px solid #E3E9F0; padding-top: 20px; }
.modal-shell.is-join .jn-counter { justify-content: space-between; max-width: 320px; margin: 18px auto 0; padding: 8px; border: 1.5px solid #9ED8CD; border-radius: 18px; }
.modal-shell.is-join .jn-counter .btn-round { width: 48px; height: 44px; border: 0; border-radius: 12px; background: #DDF2EC; color: var(--fx-green, #0E4A43); }
.modal-shell.is-join .jn-counter .btn-round .icon { width: 22px; height: 22px; }
.modal-shell.is-join .jn-counter output { display: flex; align-items: baseline; gap: 6px; }
.modal-shell.is-join .jn-counter output b, .modal-shell.is-join .jn-counter output span { font-family: var(--font-title); font-size: 24px; font-weight: 800; color: #060E2F; }
@media (max-width: 420px) {
  .vc { padding: 14px; } .vc-top { grid-template-columns: 46px 1fr auto; column-gap: 12px; } .vc-ic { width: 46px; height: 46px; }
  .vc-level { font-size: 26px; } .vc-dip { grid-template-columns: 46px 1fr; column-gap: 12px; }
  .vc-photo-btn { grid-template-columns: 40px 1px 1fr; column-gap: 12px; padding: 12px; }
}
.vc-top { position: relative; grid-template-columns: 52px 1fr; }
.vc-redo { position: absolute; top: 0; right: 0; }
.vc-kicker { padding-right: 96px; white-space: nowrap; }
@media (max-width: 420px) { .vc-top { grid-template-columns: 46px 1fr; } .vc-kicker { font-size: 12px; padding-right: 92px; } .vc-redo { font-size: 13px; } }

/* ---- Appui long sur une conversation : feuille d'actions ---------------------------------------------------------- */
.conv-list a.conv { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.as { position: fixed; inset: auto 0 0 0; width: min(480px, 100%); max-width: none; margin: 0 auto; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); border: 0; background: transparent; animation: as-up .26s cubic-bezier(.2, .8, .2, 1); }
.as::backdrop { background: rgba(16, 28, 53, .45); animation: lts-fade .2s ease; }
.as.is-leaving { animation: as-down .18s ease forwards; }
@keyframes as-up { from { transform: translateY(100%); } }
@keyframes as-down { to { transform: translateY(100%); } }
.as-card { overflow: hidden; border-radius: 18px; background: #fff; }
.as-title { margin: 0; padding: 14px 18px 12px; border-bottom: 1px solid #EEF2F6; font-size: 13.5px; font-weight: 600; color: #6B7383; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-item { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-top: 1px solid #EEF2F6; background: #fff; font: inherit; font-size: 16.5px; font-weight: 600; color: var(--navy); cursor: pointer; }
.as-title + .as-item { border-top: 0; }
.as-item .icon { width: 20px; height: 20px; }
.as-item.is-danger { color: #C4141C; }
.as-item:active { background: #F4F6F9; }
.as-cancel { display: block; width: 100%; min-height: 56px; margin-top: 8px; border: 0; border-radius: 18px; background: #fff; font: inherit; font-size: 16.5px; font-weight: 700; color: var(--navy); cursor: pointer; }
.as-txt { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.as-txt small { display: none; font-size: 12.5px; font-weight: 500; color: #6B7383; }
/* Ordinateur : petite fenêtre centrée, actions alignées à gauche avec leur explication */
@media (min-width: 720px) and (pointer: fine) {
  .as { inset: 0; width: 380px; height: fit-content; margin: auto; padding: 0; overflow: visible; animation: as-pop .2s cubic-bezier(.2, .8, .2, 1); }
  .as.is-leaving { animation: as-out .15s ease forwards; }
  .as-card { border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 28, 53, .06), 0 24px 60px rgba(16, 28, 53, .22); padding: 6px; }
  .as-title { padding: 12px 14px 10px; margin-bottom: 4px; font-size: 13px; text-align: left; }
  .as-item { justify-content: flex-start; gap: 12px; min-height: 0; padding: 11px 12px; border: 0; border-radius: 10px; font-size: 14.5px; text-align: left; transition: background var(--t); }
  .as-item + .as-item { margin-top: 2px; }
  .as-item .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #F1F4F8; }
  .as-item.is-danger .icon { background: #FDECEC; }
  .as-item:hover, .as-item:focus-visible { background: #F5F7FA; outline: none; }
  .as-item.is-danger:hover, .as-item.is-danger:focus-visible { background: #FFF4F2; }
  .as-txt { align-items: flex-start; }
  .as-txt small { display: block; }
  .as-cancel { position: absolute; top: 8px; right: 8px; width: 32px; min-height: 0; height: 32px; margin: 0; padding: 0; border-radius: 8px; background: transparent; font-size: 0; color: transparent; }
  .as-cancel::before { content: "×"; font-size: 22px; line-height: 32px; font-weight: 400; color: #6B7383; }
  .as-cancel:hover { background: #F1F4F8; }
  .as-title { padding-right: 44px; }
}
@keyframes as-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes as-out { to { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .as, .as::backdrop { animation: none !important; } }
/* Moniteur en tête du groupe (veste rouge, aucun logo) */
.sk-mon { z-index: 4; }
.sk-face-mon { box-shadow: 0 0 0 2px #D62F2F, 0 4px 10px rgba(214, 47, 47, .3) !important; }
.sk-face-mon svg { display: block; width: 100%; height: 100%; }
.sk-mon .sk-name { background: #D62F2F; color: #fff; }
.sk-flag-mon { display: none; }

/* ---- Le dernier de la bande : il chute, glisse sur le dos, ses skis s'envolent, puis il repart rattraper le groupe ---- */
.sk-oops { animation-name: sl-slalom-oops; }
@keyframes sl-slalom-oops {
  0% { left: calc(90% + var(--dx)); top: 58%; transform: translate(-50%, -100%) scale(.6) rotate(10deg); opacity: 0; }
  6% { opacity: 1; }
  22% { left: calc(72% + var(--dx)); top: 64%; transform: translate(-50%, -100%) scale(.7) rotate(-14deg); }
  40% { left: calc(83% + var(--dx)); top: 70%; transform: translate(-50%, -100%) scale(.8) rotate(14deg); }
  44% { left: calc(78% + var(--dx)); top: 72%; transform: translate(-50%, -100%) scale(.82) rotate(-6deg); }
  46% { left: calc(76% + var(--dx)); top: 72.5%; transform: translate(-50%, -118%) scale(.83) rotate(-48deg); }
  49% { left: calc(74% + var(--dx)); top: 74%; transform: translate(-50%, -78%) scale(.84) rotate(-104deg); }
  52% { left: calc(72.5% + var(--dx)); top: 74.6%; transform: translate(-50%, -80%) scale(.84) rotate(-96deg); }
  58% { left: calc(71.5% + var(--dx)); top: 75%; transform: translate(-50%, -80%) scale(.84) rotate(-100deg); }
  63% { left: calc(71% + var(--dx)); top: 75.2%; transform: translate(-50%, -96%) scale(.84) rotate(-40deg); }
  66% { left: calc(70% + var(--dx)); top: 76%; transform: translate(-50%, -100%) scale(.85) rotate(4deg); }
  74% { left: calc(58% + var(--dx)); top: 84%; transform: translate(-50%, -100%) scale(.92) rotate(-16deg); }
  84% { left: calc(64% + var(--dx)); top: 94%; transform: translate(-50%, -100%) scale(1.02) rotate(16deg); }
  94% { left: calc(36% + var(--dx)); top: 106%; transform: translate(-50%, -100%) scale(1.08) rotate(-14deg); opacity: 1; }
  100% { left: calc(28% + var(--dx)); top: 114%; transform: translate(-50%, -100%) scale(1.1) rotate(-14deg); opacity: 0; }
}
/* Skis et bâtons qui s'envolent pendant la chute (propriétés translate / rotate : indépendantes du reste) */
.sk-oops .sk-gear { animation: sk-yard var(--dur) ease-in-out var(--delay) infinite; }
@keyframes sk-yard {
  0%, 45% { translate: 0 0; rotate: 0deg; }
  48% { translate: 2.4cqw -5cqw; rotate: 160deg; }
  52% { translate: 4.2cqw -1cqw; rotate: 290deg; }
  60% { translate: 4.6cqw -.6cqw; rotate: 300deg; }
  64% { translate: 1cqw -2.6cqw; rotate: 340deg; }
  67%, 100% { translate: 0 0; rotate: 360deg; }
}
/* Nuage de neige à l'impact, et la bulle « Oups ! » */
.sk-puff { position: absolute; left: 50%; bottom: -1cqw; width: 10cqw; height: 5cqw; margin-left: -5cqw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7) 55%, rgba(255, 255, 255, 0)); opacity: 0;
  animation: sk-puff var(--dur) ease-out var(--delay) infinite; }
@keyframes sk-puff { 0%, 47% { opacity: 0; scale: .3; } 50% { opacity: 1; scale: 1.25; } 58% { opacity: .55; scale: 1.7; } 64%, 100% { opacity: 0; scale: 2; } }
.sk-bubble { position: absolute; left: 70%; top: -5.2cqw; padding: .4cqw 1.2cqw; border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(16, 28, 53, .18);
  font-size: max(10px, 1.6cqw); font-weight: 800; color: var(--accent, #E30613); white-space: nowrap; opacity: 0; pointer-events: none;
  animation: sk-bubble var(--dur) ease-out var(--delay) infinite; }
@keyframes sk-bubble { 0%, 48% { opacity: 0; scale: .4; rotate: 0deg; } 51% { opacity: 1; scale: 1.1; rotate: 100deg; } 53%, 61% { opacity: 1; scale: 1; rotate: 100deg; } 64%, 100% { opacity: 0; scale: .6; rotate: 100deg; } }
@media (prefers-reduced-motion: reduce) { .sk-oops .sk-gear, .sk-puff, .sk-bubble { animation: none !important; opacity: 0; } }
.slope-hero .sk-oops { animation-name: sl-hero-oops; }
@keyframes sl-hero-oops {
  0% { left: calc(97% + var(--dx)); top: 47%; transform: translate(-50%, -100%) scale(.55) rotate(10deg); opacity: 0; }
  7% { opacity: 1; }
  24% { left: calc(74% + var(--dx)); top: 51%; transform: translate(-50%, -100%) scale(.64) rotate(-14deg); }
  42% { left: calc(87% + var(--dx)); top: 53%; transform: translate(-50%, -100%) scale(.72) rotate(14deg); }
  44% { left: calc(83% + var(--dx)); top: 53.5%; transform: translate(-50%, -100%) scale(.73) rotate(-6deg); }
  46% { left: calc(80% + var(--dx)); top: 53.8%; transform: translate(-50%, -118%) scale(.74) rotate(-48deg); }
  49% { left: calc(77% + var(--dx)); top: 54.6%; transform: translate(-50%, -78%) scale(.75) rotate(-104deg); }
  52% { left: calc(75.5% + var(--dx)); top: 55%; transform: translate(-50%, -80%) scale(.75) rotate(-96deg); }
  58% { left: calc(74.5% + var(--dx)); top: 55.2%; transform: translate(-50%, -80%) scale(.75) rotate(-100deg); }
  63% { left: calc(74% + var(--dx)); top: 55.3%; transform: translate(-50%, -96%) scale(.76) rotate(-40deg); }
  66% { left: calc(72% + var(--dx)); top: 55.6%; transform: translate(-50%, -100%) scale(.77) rotate(4deg); }
  78% { left: calc(46% + var(--dx)); top: 57%; transform: translate(-50%, -100%) scale(.86) rotate(-14deg); }
  88% { left: calc(26% + var(--dx)); top: 59%; transform: translate(-50%, -100%) scale(.92) rotate(12deg); }
  95% { left: calc(12% + var(--dx)); top: 62%; transform: translate(-50%, -100%) scale(.96) rotate(-14deg); opacity: 1; }
  100% { left: calc(3% + var(--dx)); top: 67%; transform: translate(-50%, -100%) scale(1) rotate(-14deg); opacity: 0; }
}

/* ==== Page « Comment ça marche » : diaporama animé ================================================================= */
.hw { max-width: 760px; margin: 8px auto 24px; outline: none; }
.hw-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hw-count { flex: none; margin: 0; font-size: 13px; font-weight: 600; color: #6B7383; font-variant-numeric: tabular-nums; }
.hw-prog { flex: 1; display: grid; grid-auto-flow: column; gap: 5px; }
.hw-prog span { height: 4px; border-radius: 99px; background: #E3E9F0; overflow: hidden; }
.hw-prog i { display: block; width: 0; height: 100%; background: var(--fx-teal-d, #0A9E8F); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.hw-prog span.is-done i { width: 100%; }
.hw-viewport { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 #E8EDF3, 0 20px 50px -30px rgba(16, 28, 53, .35); touch-action: pan-y; }
.hw-track { display: flex; transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.hw-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; padding: 34px 34px 30px; min-height: 420px; box-sizing: border-box; }
.hw-copy { min-width: 0; }
.hw-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-teal-d, #0A9E8F); }
.hw-title { margin: 0 0 12px; font-family: var(--font-title); font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; color: var(--fx-green, #0E4A43); }
.hw-text { margin: 0; font-size: 16px; line-height: 1.6; color: #4B5565; }
.hw-slide .hw-kicker, .hw-slide .hw-title, .hw-slide .hw-text, .hw-slide .hw-final { opacity: 0; transform: translateY(12px); }
.hw-slide.is-on .hw-kicker, .hw-slide.is-on .hw-title, .hw-slide.is-on .hw-text, .hw-slide.is-on .hw-final { animation: hw-up .55s cubic-bezier(.2, .8, .2, 1) forwards; }
.hw-slide.is-on .hw-title { animation-delay: .08s; } .hw-slide.is-on .hw-text { animation-delay: .16s; } .hw-slide.is-on .hw-final { animation-delay: .26s; }
@keyframes hw-up { to { opacity: 1; transform: none; } }
.hw-nav { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hw-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #DCE3EB; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
.hw-arrow:disabled { opacity: .35; cursor: default; } .hw-arrow .icon { width: 20px; height: 20px; }
.hw-dots { flex: 1; display: flex; justify-content: center; gap: 8px; }
.hw-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #CDD6E1; cursor: pointer; transition: width .3s, background .3s; }
.hw-dot.is-on { width: 24px; background: var(--fx-teal-d, #0A9E8F); }
.hw-next { min-height: 48px; gap: 8px; padding: 0 20px; }
.hw-next[hidden] { display: none; }
.hw-final { margin-top: 20px; display: grid; gap: 10px; }
.hw-cta { min-height: 52px; justify-content: center; gap: 10px; font-size: 16px; }
.hw-final-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hw-final-2 .btn { justify-content: center; }
.hw-free-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font-size: 14px; font-weight: 600; color: #146C43; }
.hw-free-line .icon { width: 16px; height: 16px; }
/* Décors */
.hw-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 320px; justify-self: center; border-radius: 28px; background: linear-gradient(160deg, #EEF8F6, #F5F8FC); overflow: hidden; }
.hw-face { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--font-title); font-size: 20px; font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 8px 18px -10px rgba(16, 28, 53, .5); }
.hw-mon { width: 100%; height: 100%; }
.hw-slide .hw-art > * { opacity: 0; }
.hw-slide.is-on .hw-art > * { animation: hw-pop .6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes hw-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
/* 1. Le moniteur et sa tribu */
.hw-ring { position: absolute; inset: 18%; border: 2px dashed #A9DCD2; border-radius: 50%; }
.hw-slide.is-on .hw-ring { animation: hw-pop .6s ease forwards, hw-spin 24s linear infinite; }
@keyframes hw-spin { to { rotate: 360deg; } }
.hw-center { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 14px 30px -14px rgba(214, 47, 47, .6); }
.hw-orbit { position: absolute; }
.hw-o0 { left: 12%; top: 14%; } .hw-o1 { right: 10%; top: 20%; } .hw-o2 { left: 14%; bottom: 14%; } .hw-o3 { right: 13%; bottom: 12%; }
.hw-slide.is-on .hw-orbit { animation: hw-pop .6s cubic-bezier(.3, 1.4, .5, 1) forwards, hw-float 3.2s ease-in-out infinite alternate; }
.hw-slide.is-on .hw-o1 { animation-delay: .1s, .4s; } .hw-slide.is-on .hw-o2 { animation-delay: .2s, .8s; } .hw-slide.is-on .hw-o3 { animation-delay: .3s, 1.2s; }
@keyframes hw-float { from { translate: 0 0; } to { translate: 0 -8px; } }
.hw-free { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; font-weight: 800; color: #146C43; white-space: nowrap; box-shadow: 0 8px 20px -12px rgba(16, 28, 53, .4); }
.hw-free .icon { width: 16px; height: 16px; }
.hw-slide.is-on .hw-free { animation-delay: .5s; }
/* 2. Recherche puis tribu */
.hw-search { position: absolute; left: 10%; right: 10%; top: 12%; display: grid; gap: 8px; }
.hw-search span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; color: #3D4757; box-shadow: 0 4px 12px -8px rgba(16, 28, 53, .35); }
.hw-search .icon { width: 18px; height: 18px; flex: none; }
.hw-search i { height: 8px; width: 0; border-radius: 99px; background: #D5DCE5; }
.hw-slide.is-on .hw-search i { animation: hw-type .7s ease forwards; }
.hw-slide.is-on .hw-search span:nth-child(2) i { animation-delay: .35s; } .hw-slide.is-on .hw-search span:nth-child(3) i { animation-delay: .7s; }
@keyframes hw-type { to { width: 60%; } }
.hw-tcard { position: absolute; left: 8%; right: 8%; bottom: 10%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -16px rgba(16, 28, 53, .45); }
.hw-tcard b, .hw-tcard i { display: block; height: 8px; border-radius: 99px; background: #1F2D3D; width: 70%; } .hw-tcard i { margin-top: 6px; width: 45%; background: #CDD6E1; }
.hw-tfaces { grid-column: 1 / -1; display: flex; align-items: center; }
.hw-tfaces .hw-face { width: 36px; height: 36px; font-size: 14px; margin-right: -6px; }
.hw-plus { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 10px; border: 2px dashed #E30613; border-radius: 50%; color: #E30613; font-weight: 800; }
.hw-slide.is-on .hw-tcard { animation-delay: 1.1s; }
/* 3. Niveau */
.hw-bars { position: absolute; left: 14%; right: 14%; top: 14%; height: 46%; display: flex; align-items: flex-end; gap: 10px; }
.hw-bars span { flex: 1; height: 0; border-radius: 10px 10px 4px 4px; background: #CFE7E2; }
.hw-bars span.is-me { background: var(--fx-teal-d, #0A9E8F); }
.hw-slide.is-on .hw-bars { animation: none; opacity: 1; }
.hw-slide.is-on .hw-bars span { animation: hw-grow .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.hw-slide.is-on .hw-bars span:nth-child(2) { animation-delay: .08s; } .hw-slide.is-on .hw-bars span:nth-child(3) { animation-delay: .16s; }
.hw-slide.is-on .hw-bars span:nth-child(4) { animation-delay: .24s; } .hw-slide.is-on .hw-bars span:nth-child(5) { animation-delay: .32s; }
@keyframes hw-grow { to { height: var(--h); } }
.hw-match { position: absolute; left: 0; right: 0; bottom: 12%; display: grid; justify-items: center; gap: 10px; }
.hw-match .hw-face { display: inline-grid; width: 42px; height: 42px; font-size: 16px; }
.hw-match { grid-template-columns: repeat(3, auto); justify-content: center; column-gap: 6px; }
.hw-ok { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; font-weight: 700; color: var(--fx-teal-d, #0A9E8F); box-shadow: 0 6px 16px -10px rgba(16, 28, 53, .4); }
.hw-ok .icon { width: 16px; height: 16px; }
.hw-slide.is-on .hw-match { animation-delay: .6s; }
/* 4. Demandes */
.hw-req { position: absolute; left: 9%; right: 9%; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px -14px rgba(16, 28, 53, .45); }
.hw-req .hw-face { width: 42px; height: 42px; font-size: 16px; }
.hw-req b, .hw-req i { display: block; height: 7px; border-radius: 99px; background: #1F2D3D; width: 60%; } .hw-req i { margin-top: 6px; width: 85%; background: #DCE3EB; }
.hw-r0 { top: 12%; } .hw-r1 { top: 39%; } .hw-r2 { top: 66%; }
.hw-slide.is-on .hw-req { animation-name: hw-slide-in; }
.hw-slide.is-on .hw-r1 { animation-delay: .15s; } .hw-slide.is-on .hw-r2 { animation-delay: .3s; }
@keyframes hw-slide-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.hw-acc { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: #E3F4EE; font-style: normal; font-size: 12.5px; font-weight: 700; color: #0A7F6F; opacity: 0; }
.hw-acc .icon { width: 13px; height: 13px; }
.hw-slide.is-on .hw-acc { animation: hw-pop .5s cubic-bezier(.3, 1.6, .5, 1) 1s forwards; }
.hw-slide.is-on .hw-r0 { box-shadow: 0 0 0 2px #9ED8CD, 0 8px 20px -14px rgba(16, 28, 53, .45); transition: box-shadow .3s 1s; }
/* 5. Mise en relation */
.hw-chat { position: absolute; left: 10%; right: 10%; top: 12%; display: grid; gap: 10px; }
.hw-msg { display: block; height: 34px; border-radius: 16px 16px 16px 4px; background: #fff; width: 70%; box-shadow: 0 4px 12px -8px rgba(16, 28, 53, .35); opacity: 0; }
.hw-msg.is-me { justify-self: end; width: 58%; border-radius: 16px 16px 4px 16px; background: var(--fx-teal-d, #0A9E8F); }
.hw-m3 { width: 46%; }
.hw-slide.is-on .hw-chat { animation: none; opacity: 1; }
.hw-slide.is-on .hw-msg { animation: hw-pop .45s ease forwards; } .hw-slide.is-on .hw-m2 { animation-delay: .45s; } .hw-slide.is-on .hw-m3 { animation-delay: .9s; }
.hw-lock { position: absolute; left: 50%; bottom: 26%; translate: -50% 0; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #3D4757; box-shadow: 0 8px 20px -12px rgba(16, 28, 53, .45); }
.hw-lock .icon { width: 24px; height: 24px; }
.hw-slide.is-on .hw-lock { animation: hw-pop .5s ease 1.2s forwards, hw-unlock .5s ease 1.9s forwards; }
@keyframes hw-unlock { to { opacity: 0; transform: scale(.4); } }
.hw-phone { position: absolute; left: 50%; bottom: 12%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 800; color: #146C43; white-space: nowrap; box-shadow: 0 8px 20px -12px rgba(16, 28, 53, .4); }
.hw-phone .icon { width: 16px; height: 16px; }
.hw-slide.is-on .hw-phone { animation-delay: 2.1s; }
/* 6. Chacun paie sa part à l’école */
.hw-school { position: absolute; left: 50%; top: 34%; translate: -50% -50%; display: grid; justify-items: center; gap: 4px; color: var(--fx-green, #0E4A43); font-weight: 800; font-size: 13px; }
.hw-school svg { width: 76px; height: 66px; }
.hw-payer { position: absolute; display: grid; justify-items: center; }
.hw-payer .hw-face { width: 44px; height: 44px; font-size: 17px; }
.hw-p0 { left: 8%; bottom: 26%; } .hw-p1 { left: 31%; bottom: 10%; } .hw-p2 { right: 31%; bottom: 10%; } .hw-p3 { right: 8%; bottom: 26%; }
.hw-coin { position: absolute; left: 50%; top: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #F2B33D; box-shadow: inset 0 0 0 2px #D9951D; opacity: 0; }
.hw-slide.is-on .hw-coin { animation: hw-coin 2.4s ease-in-out .8s infinite; }
.hw-slide.is-on .hw-p1 .hw-coin { animation-delay: 1s; } .hw-slide.is-on .hw-p2 .hw-coin { animation-delay: 1.2s; } .hw-slide.is-on .hw-p3 .hw-coin { animation-delay: 1.4s; }
.hw-p0 { --tx: 90px; --ty: -100px; } .hw-p1 { --tx: 40px; --ty: -150px; } .hw-p2 { --tx: -40px; --ty: -150px; } .hw-p3 { --tx: -90px; --ty: -100px; }
@keyframes hw-coin { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 70% { opacity: 1; translate: var(--tx) var(--ty); scale: .7; } 85%, 100% { opacity: 0; translate: var(--tx) var(--ty); scale: .4; } }
.hw-zero { position: absolute; left: 50%; top: 6%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; color: #146C43; white-space: nowrap; box-shadow: 0 6px 16px -10px rgba(16, 28, 53, .4); }
.hw-zero .icon { width: 15px; height: 15px; }
.hw-slide.is-on .hw-zero { animation-delay: .4s; }
/* 7. Partage */
.hw-share-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 16px 34px -16px rgba(16, 28, 53, .5); }
.hw-net { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; color: #fff; }
.hw-net .icon { width: 20px; height: 20px; }
.hw-n0 { background: #25D366; --a: 0deg; } .hw-n1 { background: #1877F2; --a: 60deg; } .hw-n2 { background: #E1306C; --a: 120deg; }
.hw-n3 { background: #0A9E8F; --a: 180deg; } .hw-n4 { background: #1F2D3D; --a: 240deg; } .hw-n5 { background: #D62F2F; --a: 300deg; }
.hw-slide.is-on .hw-net { animation: hw-burst .7s cubic-bezier(.3, 1.4, .5, 1) forwards, hw-orbit 14s linear .7s infinite; }
@keyframes hw-burst { from { opacity: 0; transform: rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))); } to { opacity: 1; transform: rotate(var(--a)) translateX(105px) rotate(calc(-1 * var(--a))); } }
@keyframes hw-orbit { from { opacity: 1; transform: rotate(var(--a)) translateX(105px) rotate(calc(-1 * var(--a))); } to { opacity: 1; transform: rotate(calc(var(--a) + 360deg)) translateX(105px) rotate(calc(-1 * var(--a) - 360deg)); } }
@media (max-width: 767px) {
  .hw { margin-top: 0; }
  .hw-slide { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px 22px; min-height: 0; align-content: start; }
  .hw-art { max-width: 250px; }
  .hw-title { font-size: 25px; } .hw-text { font-size: 15.5px; }
  @keyframes hw-burst { from { opacity: 0; transform: rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))); } to { opacity: 1; transform: rotate(var(--a)) translateX(84px) rotate(calc(-1 * var(--a))); } }
  @keyframes hw-orbit { from { opacity: 1; transform: rotate(var(--a)) translateX(84px) rotate(calc(-1 * var(--a))); } to { opacity: 1; transform: rotate(calc(var(--a) + 360deg)) translateX(84px) rotate(calc(-1 * var(--a) - 360deg)); } }
  .hw-p0 { --tx: 70px; --ty: -80px; } .hw-p1 { --tx: 30px; --ty: -115px; } .hw-p2 { --tx: -30px; --ty: -115px; } .hw-p3 { --tx: -70px; --ty: -80px; }
}
@media (max-width: 380px) { .hw-final-2 { grid-template-columns: 1fr; } .hw-art { max-width: 220px; } }
@media (prefers-reduced-motion: reduce) {
  .hw-track { transition: none; }
  .hw-slide *, .hw-slide.is-on * { animation: none !important; opacity: 1 !important; transform: none; }
  .hw-bars span { height: var(--h); } .hw-search i { width: 60%; } .hw-lock { display: none; }
  .hw-net { transform: rotate(var(--a)) translateX(84px) rotate(calc(-1 * var(--a))); }
}
.h-how h2 a { color: inherit; text-decoration: none; }
.h-how-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--fx-teal-d, #0A9E8F); text-decoration: none; }
.h-how-more .icon { width: 17px; height: 17px; }
.hw-track { align-items: flex-start; }
.hw-viewport { transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.hw-o2 { bottom: 24%; } .hw-o3 { bottom: 22%; }
@media (max-width: 767px) {
  .hw-nav { position: sticky; bottom: calc(var(--mnav-h, 64px) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 5; margin-top: 12px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -14px rgba(16, 28, 53, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hw-arrow { width: 44px; height: 44px; } .hw-next { min-height: 44px; }
}
.hw-p0 { left: 6%; bottom: 30%; } .hw-p1 { left: 22%; bottom: 7%; } .hw-p2 { right: 22%; bottom: 7%; } .hw-p3 { right: 6%; bottom: 30%; }
/* Carte de résultat du test (création de tribu, page Niveaux) */
.lt-card .esi-eq { margin-top: 6px; }
.lt-card .vc-kicker { padding-right: 104px; white-space: normal; }
.lt-card .lt-res-warn { margin: 12px 0 0; }
.lt-card .lt-res-actions { margin-top: 14px; }
@media (max-width: 420px) { .lt-card .vc-kicker { padding-right: 0; margin-top: 26px; } .lt-card .vc-top { grid-template-columns: 46px 1fr; } .lt-card .vc-redo { top: -2px; } }
/* Fin des inscriptions : jour et heure côte à côte, sans « à » orphelin */
.deadline-line { display: grid !important; grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.deadline-line .deadline-day { flex: none; min-width: 0; }
.deadline-line > .ts, .deadline-line > div { min-width: 0; }
.deadline-line .nice-select, .deadline-line select, .deadline-line button { min-width: 0; max-width: 100%; }
@media (max-width: 360px) { .deadline-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .deadline-line > span[aria-hidden] { display: none; } }
/* Personnes déjà avec vous : une carte par personne, champs alignés, boutons photo nets */
.gs-comps ul { gap: 10px; }
.gs-comp { display: grid !important; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid #E3E9F0; border-radius: 14px; background: #FAFBFD; }
.gs-comp-face img { width: 56px; height: 56px; }
.gs-comp-main { display: contents; }
.gs-comp-fields { grid-column: 2; display: flex; gap: 8px; min-width: 0; }
.gs-comp-age { width: 88px; }
.gs-comp-btns { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: relative; }
.gs-comp-btns .btn { width: 100% !important; min-width: 0; min-height: 42px; justify-content: center; gap: 6px; padding: 0 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-comp-btns .btn .icon { flex: none; width: 17px; height: 17px; }
.gs-comp-btns .btn span { overflow: hidden; text-overflow: ellipsis; }
.gs-comp-btns:has(.gs-comp-x) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px; }
.gs-comp-x { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #F1D4D4; border-radius: 10px; background: #fff; color: #C4141C; cursor: pointer; }
.gs-comp-x .icon { width: 18px; height: 18px; }
.gs-comps .tip-line { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #F2F5F9; font-size: 13.5px; line-height: 1.45; color: #3D4757; }
.gs-comps .tip-line .icon { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.gs-comps-rule { align-items: flex-start; } .gs-comps-rule .icon { margin-top: 2px; flex: none; }
@media (max-width: 360px) { .gs-comp-btns { grid-template-columns: 1fr; } .gs-comp-btns:has(.gs-comp-x) { grid-template-columns: minmax(0, 1fr) 42px; } .gs-comp-age { width: 76px; } }
/* Places du groupe : libellés lisibles sans chevauchement */
.gs-seats { gap: 6px 8px; }
.gs-seat { width: auto; min-width: 56px; max-width: 72px; }
.gs-seat small { white-space: normal; text-align: center; line-height: 1.2; }
/* Audit 320 px : pastilles des niveaux qui passent à la ligne, actions empilées, navigation du diaporama compacte */
.lv-head .level-adult, .lv-head .esi-eq { max-width: 100%; white-space: normal; width: auto; justify-self: start; }
.lv-acc summary { min-width: 0; }
.lt-res-actions .btn { white-space: normal; text-align: center; }
@media (max-width: 380px) {
  .lt-res-actions { display: grid; grid-template-columns: 1fr; }
  .hw-nav { gap: 8px; padding: 6px; }
  .hw-dots { gap: 5px; min-width: 0; } .hw-dot { width: 7px; height: 7px; } .hw-dot.is-on { width: 18px; }
  .hw-next { padding: 0 14px; }
}
@media (max-width: 340px) { .hw-next span { display: none; } .hw-next { width: 44px; padding: 0; justify-content: center; } }
.gs-comp-age, .jn-comp .jn-comp-age { width: 90px !important; flex: none; }
.gs-comp-age input { padding-right: 38px !important; padding-left: 10px !important; }
@media (max-width: 360px) { .gs-comp { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 10px; } .gs-comp-face img { width: 48px; height: 48px; } .gs-comp-age { width: 84px !important; } }
/* Gestion de tribu : actions lisibles sur petit écran (jamais de libellé coupé) */
@media (max-width: 767px) {
  .mg-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mg-actions > .mg-btn, .mg-actions > .mg-more > .mg-btn { width: 100%; min-width: 0; height: auto; min-height: 44px; padding: 8px 10px; justify-content: center; white-space: normal; text-align: center; line-height: 1.25; }
  .mg-actions > .mg-more { grid-column: 1 / -1; }
  .mg-actions > .mg-btn:only-child { grid-column: 1 / -1; }
  .mg-more .mg-menu { left: 0; right: 0; }
}
@media (max-width: 767px) { .mg-more .mg-menu { min-width: 0 !important; } }
/* Audit 320 px (suite) */
.requests-faces { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.mg-pending .requests-faces { flex-wrap: nowrap; overflow: hidden; }
.jn-comp { display: grid !important; grid-template-columns: 52px minmax(0, 1fr) 84px; align-items: center; gap: 8px; }
.jn-comp .jn-comp-age { width: auto !important; min-width: 0; }
.jn-comp input.jn-comp-name { width: 100% !important; min-width: 0 !important; }
.jn-comp .jn-comp-age input { width: 100% !important; max-width: none !important; }
.jn-comp .jn-comp-x { position: absolute; top: -6px; left: 36px; }
@media (max-width: 360px) { .jn-comp { grid-template-columns: 44px minmax(0, 1fr) 70px; gap: 6px; } .jn-comp-face { width: 44px; height: 44px; } }

/* ==== Lancement d’une tribu : podium des futurs champions ======================================================== */
.lch { position: fixed; inset: 0; width: min(520px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: #fff; color: var(--navy); overflow: hidden auto; box-shadow: 0 40px 90px -30px rgba(6, 30, 26, .6); animation: lch-in .5s cubic-bezier(.2, .9, .2, 1); }
.lch::backdrop { background: rgba(6, 22, 20, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: lts-fade .3s ease; }
.lch.is-leaving { animation: lch-out .24s ease forwards; }
@keyframes lch-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes lch-out { to { opacity: 0; transform: translateY(20px) scale(.97); } }
.lch-card { position: relative; }
.lch-x { position: absolute; top: 12px; right: 12px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.lch-x .icon { width: 20px; height: 20px; }
.lch-scene { position: relative; height: 290px; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lch-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lch-stars circle { animation: lch-twinkle 2.4s ease-in-out var(--d) infinite alternate; }
@keyframes lch-twinkle { from { opacity: .25; } to { opacity: 1; } }
.lch-mt { animation: lch-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.lch-mt2 { animation-delay: .1s; }
@keyframes lch-rise { from { transform: translateY(40px); opacity: 0; } }
.lch-spot { position: absolute; left: 50%; bottom: 20px; width: 340px; height: 260px; margin-left: -170px; background: radial-gradient(closest-side, rgba(255, 236, 170, .55), rgba(255, 236, 170, 0)); animation: lch-spot 1.2s ease .5s both; }
@keyframes lch-spot { from { opacity: 0; transform: scale(.6); } }
.lch-podium { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: flex; align-items: flex-end; gap: 6px; }
.lch-step { display: grid; justify-items: center; width: 96px; }
.lch-block { display: grid; place-items: center; width: 100%; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #FFFFFF, #E6EEF5); box-shadow: inset 0 -6px 0 rgba(14, 74, 67, .08), 0 -2px 18px -6px rgba(0, 0, 0, .25); transform-origin: bottom; animation: lch-build .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.lch-block b { font-family: var(--font-title); font-size: 26px; font-weight: 800; color: #B9C6D3; }
.lch-s1 .lch-block { height: 96px; animation-delay: .45s; } .lch-s1 .lch-block b { color: #E5A400; font-size: 32px; }
.lch-s2 .lch-block { height: 66px; animation-delay: .3s; } .lch-s3 .lch-block { height: 48px; animation-delay: .6s; }
@keyframes lch-build { from { transform: scaleY(0); } }
.lch-person, .lch-seat { position: relative; display: grid; justify-items: center; gap: 4px; margin-bottom: 8px; animation: lch-drop .7s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.85s + var(--k) * .12s); }
@keyframes lch-drop { from { transform: translateY(-150px); opacity: 0; } 60% { opacity: 1; } }
.lch-person img, .lch-initial { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 10px 22px -10px rgba(0, 0, 0, .6); background: #DCE6F3; }
.lch-initial { display: grid; place-items: center; font-family: var(--font-title); font-size: 24px; font-weight: 800; color: var(--navy); }
.lch-leader img, .lch-leader .lch-initial { width: 76px; height: 76px; box-shadow: 0 0 0 3px #FFD45C, 0 0 0 6px rgba(255, 212, 92, .35), 0 14px 26px -10px rgba(0, 0, 0, .6); }
.lch-person em, .lch-seat em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.lch-leader.is-jump { animation: lch-jump .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lch-jump { 40% { transform: translateY(-26px) rotate(-6deg); } 70% { transform: translateY(-8px) rotate(4deg); } }
.lch-medal { position: absolute; left: 50%; top: 54px; translate: -50% 0; display: grid; justify-items: center; transform-origin: top center; animation: lch-medal 1s cubic-bezier(.3, 1.4, .5, 1) 1.35s both; }
.lch-medal i { width: 18px; height: 16px; background: linear-gradient(90deg, #D62F2F 0 50%, #1F6FD1 50%); clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); }
.lch-medal b { display: grid; place-items: center; width: 26px; height: 26px; margin-top: -2px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF0B3, #E5A400 70%); box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .35); font-size: 13px; font-weight: 900; color: #7A5200; }
@keyframes lch-medal { from { transform: translateY(-120px) rotate(-30deg); opacity: 0; } 70% { transform: rotate(10deg); opacity: 1; } }
.lch-seat { border: 0; padding: 0; background: none; cursor: pointer; }
.lch-seat span { display: grid; place-items: center; width: 62px; height: 62px; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; font-weight: 300; animation: lch-pulse 1.8s ease-in-out 2s infinite; }
@keyframes lch-pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .14); } }
.lch-seat.is-ping span { animation: lch-ping .5s ease; }
@keyframes lch-ping { 40% { transform: scale(1.15); background: rgba(255, 255, 255, .35); } }
.lch-more { position: absolute; right: 14px; bottom: 12px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(14, 74, 67, .85); color: #fff; font-size: 12px; font-weight: 700; animation: lch-fade .5s ease 1.6s both; }
.lch-tip { position: absolute; left: 50%; top: 16px; translate: -50% 0; width: max-content; max-width: calc(100% - 80px); margin: 0; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 600; text-align: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); animation: lch-fade .25s ease; }
.lch-tip[hidden] { display: none; }
@keyframes lch-fade { from { opacity: 0; } }
.lch-copy { padding: 22px 24px 24px; text-align: center; }
.lch-copy > * { animation: hw-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.lch-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 5px 12px; border-radius: 999px; background: #E3F4EE; font-size: 13px; font-weight: 800; color: #0A7F6F; animation-delay: 1.5s; opacity: 0; transform: translateY(12px); }
.lch-kicker .icon { width: 15px; height: 15px; }
.lch-title { margin: 0; font-family: var(--font-title); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: var(--fx-green, #0E4A43); animation-delay: 1.6s; opacity: 0; transform: translateY(12px); }
.lch-text { margin: 10px auto 0; max-width: 40ch; font-size: 15.5px; line-height: 1.55; color: #4B5565; animation-delay: 1.7s; opacity: 0; transform: translateY(12px); }
.lch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; animation-delay: 1.8s; opacity: 0; transform: translateY(12px); }
.lch-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #F2F5F9; font-size: 13px; font-weight: 600; color: #2E3A48; }
.lch-chips .icon { width: 14px; height: 14px; color: var(--fx-teal-d, #0A9E8F); }
.lch-meter { display: flex; align-items: center; gap: 10px; margin: 16px auto 0; max-width: 300px; animation-delay: 1.9s; opacity: 0; transform: translateY(12px); }
.lch-meter span { flex: 1; height: 8px; border-radius: 99px; background: #E3E9F0; overflow: hidden; }
.lch-meter i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--fx-teal, #06C7B3), #0A9E8F); animation: lch-fill 1.2s cubic-bezier(.2, .8, .2, 1) 2.1s forwards; }
@keyframes lch-fill { to { width: 100%; } }
.lch-meter em { font-style: normal; font-size: 13px; font-weight: 700; color: #0A7F6F; white-space: nowrap; }
.lch-share { width: 100%; min-height: 52px; margin-top: 18px; justify-content: center; gap: 10px; font-size: 16px; animation-delay: 2s; opacity: 0; transform: translateY(12px); }
.lch-later { display: inline-block; margin-top: 10px; padding: 8px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #3D4757; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; animation-delay: 2.1s; opacity: 0; transform: translateY(12px); }
@media (max-width: 420px) {
  .lch { width: 100%; max-height: 100dvh; border-radius: 0; inset: 0; margin: 0; height: 100dvh; }
  .lch-scene { height: 270px; }
  .lch-step { width: 84px; } .lch-podium { gap: 4px; }
  .lch-title { font-size: 27px; } .lch-copy { padding: 20px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lch, .lch *, .lch::backdrop { animation: none !important; }
  .lch-copy > * { opacity: 1 !important; transform: none !important; } .lch-meter i { width: 100%; }
}
.lch-title { text-transform: none !important; }
.lch-scene { height: 320px; }
.lch-leader em { margin-top: 26px; }
.lch-more { right: auto; left: 14px; top: 14px; bottom: auto; }
@media (max-width: 420px) { .lch-scene { height: 46dvh; min-height: 300px; max-height: 380px; } .lch { display: flex; flex-direction: column; } .lch-card { display: flex; flex-direction: column; min-height: 100%; } .lch-copy { margin-top: auto; margin-bottom: auto; } }
.lch-title { text-align: center; }
/* Rejoindre : changer son niveau en un geste, test facultatif */
.mm-change { margin-top: 18px; padding: 14px 16px; border: 1px solid #E3E9F0; border-radius: 16px; background: #fff; }
.mm-change label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--fx-green, #0E4A43); }
.mm-change select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #CBD3DD; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--navy); }
.mm-change p { margin: 8px 0 0; font-size: 13.5px; color: #6B7383; }
.vc-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: #3D4757; }
.vc-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--fx-teal-d, #0A9E8F); }
.vc-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--fx-teal-d, #0A9E8F); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.jl-or { margin-top: 14px; padding-top: 12px; border-top: 1px solid #CFE7E2; }
.jl-or label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #3D4757; }
.jl-or select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #B9DCD5; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--navy); }

/* ---- Administration : tableau de bord détaillé et comptes supprimés --------------------------------------------- */
.ad-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ad-activity { margin-top: 14px; }
.ad-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.ad-card-head h2 { margin: 0 !important; }
.ad-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: #4B5565; }
.ad-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ad-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.ad-legend strong { color: var(--navy); }
.ad-legend .s-sig::before, .ad-stack .s-sig { background: #1F6FD1; } .ad-legend .s-tri::before, .ad-stack .s-tri { background: #0A9E8F; } .ad-legend .s-app::before, .ad-stack .s-app { background: #F2B33D; }
.ad-legend li { color: #4B5565; }
.ad-cols { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; align-items: end; height: 170px; margin: 0; padding: 0; list-style: none; }
.ad-cols li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.ad-stack { display: flex; flex-direction: column-reverse; width: 100%; height: calc(100% - 18px); justify-content: flex-start; border-radius: 4px; overflow: hidden; background: #F4F6F9; }
.ad-stack i { display: block; width: 100%; }
.ad-cols em { font-style: normal; font-size: 10.5px; color: #8A94A6; height: 14px; }
.ad-funnel { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ad-fun-top { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: #3D4757; }
.ad-fun-top span { flex: 1; } .ad-fun-top strong { color: var(--navy); } .ad-fun-top em { font-style: normal; font-size: 12.5px; color: #8A94A6; min-width: 40px; text-align: right; }
.ad-fun-bar { display: block; height: 8px; margin-top: 5px; border-radius: 99px; background: #EEF2F6; overflow: hidden; }
.ad-fun-bar i { display: block; height: 100%; border-radius: 99px; }
.ad-fun-bar .is-navy { background: #1F2D3D; } .ad-fun-bar .is-teal { background: #0A9E8F; } .ad-fun-bar .is-amber { background: #F2B33D; } .ad-fun-bar .is-green { background: #13915F; }
.ad-rank { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ad-rank li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; color: #3D4757; }
.ad-rank li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-rank-bar { height: 8px; border-radius: 99px; background: #EEF2F6; overflow: hidden; } .ad-rank-bar i { display: block; height: 100%; border-radius: 99px; background: #0A9E8F; }
.ad-rank strong { color: var(--navy); min-width: 20px; text-align: right; }
.ad-sub { margin: 10px 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A94A6; }
.ad-sub:first-of-type { margin-top: 0; }
.ad-split { display: flex; gap: 3px; height: 30px; border-radius: 8px; overflow: hidden; font-size: 12px; }
.ad-split span { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 0 6px; background: #E3F4EE; color: #0E4A43; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-split span:nth-child(2) { background: #E6EEFA; color: #1E3A5F; } .ad-split span:nth-child(3) { background: #FFF1DC; color: #7A4B00; }
.ad-del-intro { margin-bottom: 14px; }
.ad-del-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-bottom: 14px; }
.ad-del { padding: 16px; display: grid; gap: 10px; }
.ad-del-meta { margin: 0; font-size: 13px; color: #6B7383; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ad-del-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-danger { color: #C4141C !important; border-color: #F1D4D4 !important; }
.ad-unblock { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ad-unblock input { flex: 1 1 220px; min-height: 40px; padding: 0 12px; border: 1px solid #CBD3DD; border-radius: 10px; font: inherit; }
@media (max-width: 1000px) { .ad-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .ad-grid-3 { grid-template-columns: 1fr; } .ad-cols { gap: 2px; height: 140px; } }
.field-error.is-shake { animation: fe-shake .45s ease; }
@keyframes fe-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .field-error.is-shake { animation: none; } }
/* Carte niveau côté chef : phrase normale (auto-évaluation), pas un label « vérifié » en capitales */
.lc .lc-title { text-transform: none; letter-spacing: 0; font-size: 14px; color: #0E4A43; }
.gc-remove { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #B4232A; cursor: pointer; }
.gc-remove .icon { width: 15px; height: 15px; }
.gc-remove:hover span { text-decoration: underline; text-underline-offset: 3px; }
.gc-card { grid-template-columns: 48px minmax(0, 1fr) !important; }
.gc-card > :first-child { width: 48px; max-width: 48px; overflow: hidden; border-radius: 50%; }
.gc-card .gc-reveal, .gc-card .gc-remove { grid-column: 1 / -1; }
.gc-card .gc-remove { justify-self: start; margin-top: 2px; }
/* Prix approximatif : à quoi correspond le montant */
.gs-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; border: 0; }
.gs-units legend { margin-bottom: 6px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.gs-unit { position: relative; display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border: 1px solid #CBD3DD; border-radius: 12px; background: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--navy); text-align: center; cursor: pointer; }
.gs-unit input { position: absolute; opacity: 0; pointer-events: none; }
.gs-unit.is-on { border-color: var(--fx-teal-d, #0A9E8F); background: #F0FBF9; box-shadow: inset 0 0 0 1px var(--fx-teal-d, #0A9E8F); color: #0E4A43; }
.gs-unit:focus-within { outline: 2px solid var(--fx-teal, #06C7B3); outline-offset: 2px; }
@media (max-width: 380px) { .gs-units { grid-template-columns: 1fr; } }
/* ---- Administration : audience en temps réel ---------------------------------------------------------------- */
.ad-au-top { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 14px; margin-bottom: 14px; }
.ad-live { position: relative; padding: 18px; display: grid; align-content: start; gap: 12px; background: linear-gradient(160deg, #0E4A43, #12645A); color: #fff; border: 0; }
.ad-live > div { display: flex; align-items: baseline; gap: 10px; }
.ad-live strong { font-family: var(--font-title); font-size: 44px; font-weight: 800; line-height: 1; }
.ad-live span { font-size: 15px; opacity: .9; }
.ad-live-dot { position: absolute; top: 18px; right: 18px; width: 12px; height: 12px; border-radius: 50%; background: #3CE07A; box-shadow: 0 0 0 0 rgba(60, 224, 122, .6); animation: ad-pulse 1.8s ease-out infinite; }
@keyframes ad-pulse { to { box-shadow: 0 0 0 12px rgba(60, 224, 122, 0); } }
.ad-live ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ad-live li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.ad-live li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-live .muted { color: rgba(255, 255, 255, .75) !important; }
.ad-live-up { font-size: 12px; opacity: .7; }
.ad-au-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ad-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; margin: 0; padding: 0; list-style: none; }
.ad-days { grid-template-columns: repeat(30, minmax(0, 1fr)); }
.ad-hours li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; padding-bottom: 18px; }
.ad-hours i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: #9CC3F0; }
.ad-hours li.is-now i { background: #1F6FD1; }
.ad-hours em { position: absolute; bottom: 0; left: 50%; translate: -50% 0; font-style: normal; font-size: 10.5px; color: #8A94A6; white-space: nowrap; }
@media (max-width: 760px) { .ad-au-top { grid-template-columns: 1fr; } .ad-hours { gap: 2px; height: 120px; } }

/* ---- Publication un peu longue : « petite beauté » de la tribu ------------------------------------------------------ */
.bty { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; background: rgba(250, 251, 253, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bty-in .24s ease both; }
.bty.is-leaving { animation: bty-out .22s ease forwards; }
.bty-card { width: min(340px, 100%); padding: 28px 24px 24px; border: 1px solid var(--border); border-radius: 20px; background: #fff; text-align: center;
  box-shadow: 0 1px 2px rgba(16, 28, 53, .05), 0 24px 60px rgba(16, 28, 53, .14); animation: bty-rise .36s cubic-bezier(.2, .8, .2, 1) both; }
.bty-scene { position: relative; width: 120px; height: 84px; margin: 0 auto 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #EAF3FC 0%, #F7FAFE 100%); }
.bty-mtn { position: absolute; left: 22px; top: 22px; width: 76px; height: 53px; overflow: visible; }
.bty-mtn path { fill: none; stroke: var(--brand); stroke-width: 3.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 130;
  animation: bty-draw 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
.bty-shine { position: absolute; inset: -20% auto -20% -60%; width: 40%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); animation: bty-shine 2.4s ease-in-out infinite; }
.bty-sp { position: absolute; width: 10px; height: 10px; opacity: 0; animation: bty-twinkle 2.4s ease-in-out infinite; }
.bty-sp::before, .bty-sp::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px; background: var(--brand); transform: translate(-50%, -50%); }
.bty-sp::before { width: 2px; height: 100%; } .bty-sp::after { width: 100%; height: 2px; }
.bty-sp.s1 { left: 16px; top: 14px; animation-delay: .5s; } .bty-sp.s2 { right: 18px; top: 12px; animation-delay: 1s; transform: scale(.7); }
.bty-sp.s3 { right: 30px; bottom: 16px; animation-delay: 1.5s; transform: scale(.55); } .bty-sp.s4 { left: 34px; bottom: 12px; animation-delay: 1.9s; transform: scale(.6); }
.bty-sp.s2::before, .bty-sp.s2::after, .bty-sp.s4::before, .bty-sp.s4::after { background: #F3B23B; }
.bty-kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.bty-text { min-height: 2.6em; margin: 0 0 16px; font-family: var(--font-title, inherit); font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--navy);
  transition: opacity .2s ease, transform .2s ease; }
.bty-text.is-out { opacity: 0; transform: translateY(-4px); }
.bty-bar { position: relative; height: 4px; border-radius: 99px; background: #EEF2F6; overflow: hidden; }
.bty-bar span { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #FF8A5C);
  animation: bty-slide 1.3s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes bty-in { from { opacity: 0; } }
@keyframes bty-out { to { opacity: 0; } }
@keyframes bty-rise { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes bty-draw { 0% { stroke-dashoffset: 130; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -130; } }
@keyframes bty-shine { 0%, 45% { transform: translateX(0) skewX(-18deg); } 85%, 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes bty-twinkle { 0%, 100% { opacity: 0; scale: .4; } 40% { opacity: 1; scale: 1; } 70% { opacity: 0; scale: .6; } }
@keyframes bty-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
@media (prefers-reduced-motion: reduce) { .bty, .bty-card, .bty-mtn path, .bty-shine, .bty-sp, .bty-bar span { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
  .bty-mtn path { stroke-dashoffset: 0; } }

/* ---- Langue du site dans l'en-tête : drapeau + code, petite liste ------------------------------------------------- */
.lang-menu { position: relative; }
.lm-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 9px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; transition: border-color var(--t), background var(--t); }
.lm-btn:hover { border-color: #C6CFDA; background: #F8FAFC; }
.lm-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.flag { display: block; flex: none; width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16, 28, 53, .12); overflow: hidden; }
.lm-chev { width: 14px; height: 14px; fill: none; stroke: #6B7383; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.lm-btn[aria-expanded="true"] .lm-chev { transform: rotate(180deg); }
.lm-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px; padding: 6px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; box-shadow: 0 1px 2px rgba(16, 28, 53, .06), 0 14px 34px rgba(16, 28, 53, .14); animation: lm-in .16s ease; }
.lm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px;
  color: var(--navy); text-align: left; cursor: pointer; }
.lm-item:hover, .lm-item:focus-visible { background: #F4F6F9; outline: none; }
.lm-item.is-on { font-weight: 600; }
.lm-item span { flex: 1; }
.lm-check { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes lm-in { from { opacity: 0; transform: translateY(-4px); } }
.header-inner > .lang-menu { margin-left: 18px; }
@media (max-width: 767px) {
  .header-inner > .lang-menu { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
  .lm-list { left: 0; right: auto; }
  .lm-btn { height: 34px; padding: 0 8px; gap: 5px; }
  .lm-code { display: none; }
}

/* ---- Demande reçue : carte hiérarchisée (en-tête, infos, message, niveau, décision) ------------------------------- */
.req-item.rq { display: block; padding: 16px; border: 1px solid #E5E9EF; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 28, 53, .04); }
.req-item.rq.is-active { border-color: #F3B6A8; box-shadow: 0 0 0 3px #FDECEC; }
.rq-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.req-item.rq .avatar-request { grid-row: auto; width: 52px; height: 52px; border: 0; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #F0D6CF; }
.req-item.rq .avatar-request img { border-radius: 50%; }
.rq-id { min-width: 0; }
.rq-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-family: var(--font-title, inherit); font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--navy); }
.rq-age { font-family: var(--font); font-size: 13.5px; font-weight: 500; color: #6B7383; }
.rq-name .req-langs { font-size: 14px; }
.rq-profile { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.rq-profile .icon { width: 14px; height: 14px; }
.rq-status { align-self: start; padding: 4px 9px; border-radius: 999px; background: #FFF4E5; color: #9A5B00; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rq-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rq-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.rq-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #F4F6FA; font-size: 13px; color: #3B4658; }
.rq-facts li strong { color: var(--navy); }
.rq-facts .icon { width: 15px; height: 15px; color: #6B7383; }
.rq-msg { margin-top: 12px; padding: 12px 14px; border-left: 3px solid #F3B6A8; border-radius: 4px 12px 12px 4px; background: #FBF7F6; }
.rq-msg p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--navy); white-space: pre-line; overflow-wrap: anywhere; }
.rq-msg .rq-label { margin-bottom: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A6D66; }
.req-item.rq .req-bio { margin: 10px 0 0; }
.req-item.rq .req-with { margin-top: 12px; }
.req-item.rq .lc { margin-top: 12px; }
.req-item.rq .lc-title { display: flex; align-items: flex-start; gap: 8px; }
.req-item.rq .lc-title .icon { flex: none; margin-top: 2px; }
.rq-actions { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #EEF2F6; }
.rq-accept { width: 100%; min-height: 46px; font-size: 15px; font-weight: 700; }
.rq-sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.rq-sec .btn { width: 100%; min-height: 42px; font-size: 14px; }
.rq-refuse { color: #A12121; }
.rq-refuse .icon { color: #A12121; }
.req-item.rq .req-report { display: block; margin: 12px auto 0; font-size: 12.5px; }
@media (max-width: 767px) {
  .req-item.rq { padding: 14px; }
  .req-item.rq > * { grid-column: auto; }
}

/* ---- Message retenu pour vérification (vu seulement par son auteur) ---------------------------------------------- */
.ch-msg.is-held .ch-bubble { background: #F4F6FA; border: 1px dashed #C9D2DD; color: #3B4658; }
.ch-msg.is-held.is-rejected .ch-bubble { background: #FFF4F2; border-color: #F1B7AC; }
.ch-held { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #526074; }
.ch-msg.is-rejected .ch-held { color: #A12121; }
.ch-held .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.ad-held { margin-bottom: 16px; }
.ad-held-item { padding: 12px 0; border-top: 1px solid #EEF2F6; }
.ad-held-item:first-child { border-top: 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Administration : onglet Messages */
.ad-msg-hint { display: flex; gap: 6px; align-items: center; margin: 4px 0 12px; }
.ad-msg-hint .icon { width: 15px; height: 15px; flex: none; }
.ad-msgs { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.ad-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line, #E6EAF0); transition: opacity .25s ease, transform .25s ease; }
.ad-msg:first-child { border-top: 0; }
.ad-msg.is-leaving { opacity: 0; transform: translateX(16px); }
.ad-msg-main { min-width: 0; }
.ad-msg-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 4px; }
.ad-msg-body { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; color: var(--navy); overflow-wrap: anywhere; }
.ad-msg-meta { margin: 0; }
.ad-msg-del { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ad-msg-del .icon { width: 15px; height: 15px; }
.ad-msg-conv { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; font-size: 14px; }
.ad-msg-conv .icon { width: 16px; height: 16px; }
.ad-more { text-align: center; margin: 14px 0 0; }
@media (max-width: 600px) { .ad-msg { grid-template-columns: 34px minmax(0, 1fr); } .ad-msg .ad-av { width: 34px; height: 34px; } .ad-msg-del { grid-column: 2; justify-self: start; } }

/* Administration : carte des visiteurs et dernières visites */
.ad-map-views { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-map { position: relative; height: 420px; margin-top: 12px; border-radius: 12px; overflow: hidden; background: #AAD3DF; touch-action: none; cursor: grab; user-select: none; }
.ad-map.is-dragging { cursor: grabbing; }
.ad-map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; filter: saturate(.55) brightness(1.04); pointer-events: none; }
.ad-map-pins { position: absolute; inset: 0; pointer-events: none; }
.ad-pin { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #fff; padding: 0; background: rgba(6, 158, 143, .78); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); pointer-events: auto; cursor: pointer; }
.ad-pin:hover { background: #0A9E8F; z-index: 2; }
.ad-pin.is-live { background: #E70C1D; z-index: 3; animation: ad-pin-pulse 1.8s ease-out infinite; }
@keyframes ad-pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(231, 12, 29, .55); } 100% { box-shadow: 0 0 0 14px rgba(231, 12, 29, 0); } }
.ad-map-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 4px; }
.ad-map-zoom button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #fff; font-size: 20px; line-height: 1; color: #101C35; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: pointer; }
.ad-map-tip { position: absolute; transform: translate(-50%, calc(-100% - 16px)); background: #101C35; color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 5; }
.ad-map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 0 0; font-size: 13px; color: #56606F; }
.ad-map-legend span { display: inline-flex; align-items: center; gap: 6px; } .ad-map-legend small { margin-left: auto; color: #8A93A2; }
.ad-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(6, 158, 143, .78); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); } .ad-dot.is-live { background: #E70C1D; }
.ad-visits td { vertical-align: top; } .ad-visits td small { display: block; color: #8A93A2; font-size: 12px; }
.ad-flag { margin-right: 6px; } .ad-app-share { margin: 4px 0 0; font-size: 13.5px; color: #3D4757; } .ad-app-share strong { font-size: 18px; color: #101C35; margin-right: 4px; }
@media (max-width: 600px) { .ad-map { height: 320px; } .ad-map-legend small { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ad-pin.is-live { animation: none; } }
.ad-grid.ad-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .ad-grid.ad-grid-2 { grid-template-columns: 1fr; } }
.ad-live .ad-live-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 10px; }
.ad-live .ad-live-page { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 1; font-size: 14px; }
.ad-live .ad-live-who { grid-column: 1; font-size: 12.5px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-live .ad-live-list time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; opacity: .75; white-space: nowrap; }
.ad-au-kpis .ad-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* --- Accueil : texte et présentation du visuel « Trouvez vos compagnons. Partagez le cours. Divisez le prix. » --- */
.h-sub.h-sub-green { color: #14532D; font-size: 25px; letter-spacing: -.02em; margin-top: 20px; white-space: normal; max-width: none; }
.h-hero-text .h-lead { font-size: 16.5px; line-height: 1.5; margin-top: 12px; max-width: 450px; color: #2B3140; }
.h-six { margin-top: 16px; padding-left: 12px; border-left: 3px solid #1F9D55; font-weight: 700; font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.h-hero-text .h-actions { margin-top: 24px; }
.h-free2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; font-size: 14px; color: #4B5565; }
.h-free2 strong { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #E8F6EE; color: #146C43; font-weight: 700; }
.h-free2 .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.hero-tribe .seats { color: var(--brand); font-weight: 700; }
.hero-tribe-foot { display: flex; align-items: center; gap: 2cqw; }
.hero-example { flex: none; padding: .5cqw 1.6cqw; border-radius: 999px; background: #E8F6EE; color: #146C43; font-weight: 700; font-size: 2.2cqw; }
.hero-tribe-foot .hero-tribe-note { padding-left: 2cqw; border-left: 1px solid #DCE2EA; min-width: 0; }
.h-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; padding: 16px 8px; background: #fff; border-radius: 18px; box-shadow: 0 4px 24px rgba(16, 40, 80, .06); }
.h-steps li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 12px; font-weight: 700; font-size: 17px; letter-spacing: -.015em; color: var(--navy); }
.h-steps li + li { border-left: 1px solid #DCE2EA; }
.h-steps .icon { width: 30px; height: 30px; stroke-width: 1.6; color: #14532D; flex: none; }
.home-search.hs-3 { grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; }
.home-search.hs-3 .hs-field { border: 1px solid #DCE2EA !important; border-radius: 12px !important; min-height: 56px; }
.home-search.hs-3 .hs-dates .dr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.home-search.hs-3 .hs-field input, .home-search.hs-3 .ns-value, .home-search.hs-3 .dr-value { font-size: 15.5px; color: var(--navy); }
.home-search.hs-3 input::placeholder, .home-search.hs-3 .is-empty { color: var(--navy); opacity: 1; }
.home-search.hs-3 .hs-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: 0; }
.home-search.hs-3 .hs-submit .icon { width: 19px; height: 19px; stroke-width: 2.2; }
@media (max-width: 1100px) {
  .home-search.hs-3 { grid-template-columns: 1fr 1fr; }
  .home-search.hs-3 .hs-submit { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .h-sub.h-sub-green { font-size: 20px; }
  .h-steps { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .h-steps li { justify-content: flex-start; font-size: 15.5px; }
  .h-steps li + li { border-left: 0; }
  .home-search.hs-3 { grid-template-columns: 1fr; }
}
.h-hero .h-hero-text h1 { white-space: normal; font-size: 41px; line-height: 1.1; letter-spacing: -.035em; margin-top: 24px; }
.h-sub.h-sub-green { font-size: 21.5px; white-space: nowrap; }
.h-free2 { font-size: 13.5px; gap: 8px 10px; }
@media (max-width: 760px) { .h-hero .h-hero-text h1 { font-size: 32px; } .h-sub.h-sub-green { font-size: 18px; white-space: normal; } }
@media (min-width: 1101px) {
  .h-hero { grid-template-columns: 500px minmax(0, 630px); }
  .h-hero .h-hero-text h1 { font-size: 40px; }
}
/* Accueil : grille recalée (bords alignés sur les étapes et la recherche, colonnes centrées verticalement) */
@media (min-width: 1101px) {
  .h-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 48px; align-items: center; justify-content: stretch; padding: 24px 0 8px; margin: 0; }
  .h-hero .h-hero-text { padding: 0; }
  .h-hero .h-photo { margin: 0; }
}
.h-hero .h-kicker { margin: 0; }
.h-hero .h-hero-text h1 { font-size: clamp(32px, 2.7vw, 38px); line-height: 1.08; letter-spacing: -.03em; margin-top: 18px; }
.h-sub.h-sub-green { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 16px; color: #166534; }
.h-hero-text .h-lead { font-size: 16px; line-height: 1.5; margin-top: 10px; max-width: 470px; color: var(--muted); }
.h-six { margin-top: 14px; font-size: 15px; }
.h-hero-text .h-actions { margin-top: 24px; }
.h-free2 { margin-top: 14px; }
.hero-tribe-foot .hero-tribe-note { white-space: nowrap; font-size: 2.3cqw; }
@media (max-width: 760px) { .h-hero .h-hero-text h1 { font-size: 32px; } .h-sub.h-sub-green { font-size: 18px; } }
.hero-tribe-foot { gap: 1.6cqw; }
.hero-tribe-foot .hero-tribe-note { font-size: 2.1cqw; padding-left: 1.6cqw; gap: 1.2cqw; }
.hero-tribe-foot .hero-tribe-note .icon { width: 2.6cqw; height: 2.6cqw; }
.hero-example { font-size: 2cqw; padding: .5cqw 1.4cqw; }
@media (max-width: 760px) { .h-sub.h-sub-green { font-size: 16px; white-space: nowrap; } }

/* Bandeau vert de saison (page d’accueil), collé sous l’en-tête */
.promo-bar { position: sticky; top: var(--promo-top, 0); z-index: 19; background: #E3F5F1; border-bottom: 1px solid #C5E8E1; color: #0C1A2E; }
.promo-bar[hidden] { display: none; }
.promo-inner { position: relative; max-width: 1240px; margin: 0 auto; min-height: 46px; padding: 8px 56px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.promo-text { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; text-align: center; }
.promo-flake { flex: none; width: 20px; height: 20px; fill: none; stroke: #2BB3A3; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promo-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #0C1A2E; cursor: pointer; }
.promo-close:hover { background: rgba(12, 26, 46, .06); }
.promo-close:focus-visible { outline: 2px solid #2BB3A3; outline-offset: 2px; }
.promo-close svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .promo-bar { position: static; }
  .promo-inner { padding: 8px 48px 8px 16px; gap: 10px; justify-content: flex-start; }
  .promo-text { font-size: 13px; text-align: left; }
  .promo-flake + .promo-text + .promo-flake { display: none; }
  .promo-close { right: 8px; }
}

/* Administration : choix d’un avatar à la place d’une photo de profil */
.ad-avatars { border: 0; padding: 0; margin: 4px 0 12px; }
.ad-avatars legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.ad-avatar-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; margin-left: -5px; }
.ad-avatar { display: block; border-radius: 50%; padding: 3px; border: 2px solid transparent; cursor: pointer; transition: border-color .15s; }
.ad-avatar img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ad-avatar:hover { border-color: #C5E8E1; }
.ad-avatar:has(input:checked) { border-color: #1F8A7A; }
.ad-avatar:has(input:focus-visible) { outline: 2px solid #1F8A7A; outline-offset: 2px; }

/* Enfants inscrits par un membre : une puce par enfant, alignées proprement */
.tp-kids { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; align-items: center; align-self: center; gap: 4px; }
.tp-kids li { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: #F1F4F8; color: #4B5565; font-size: 12.5px; line-height: 1.4; white-space: nowrap; }
.tp-kids li svg { width: 12px; height: 12px; flex: none; }

/* Administration : modération des nouvelles tribus */
.mod-intro { margin: 4px 0 18px; }
.ad-h2 { font: 700 18px/1.3 var(--font-title, var(--font)); margin: 0 0 4px; letter-spacing: -.01em; }
.mod-intro p { margin: 0; max-width: 720px; font-size: 14px; }
.mod-list { display: grid; gap: 18px; }
.mod-card { padding: 20px 22px; transition: opacity .45s, transform .45s; }
.mod-card.is-approved { opacity: 0; transform: translateY(-8px) scale(.99); }
.mod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mod-head h2 { margin: 0; font: 700 17px/1.3 var(--font-title, var(--font)); }
.mod-head p { margin: 3px 0 0; font-size: 13px; color: #6B7280; }
.mod-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
.mod-cover { margin: 0; }
.mod-cover-img img, .mod-cover-none { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid #E5E9F0; }
.mod-cover-none { display: grid; place-content: center; text-align: center; gap: 4px; background: #F6F9FC; color: #4B5565; font-size: 13px; font-weight: 600; }
.mod-cover-none small { font-weight: 400; color: #8A94A3; font-size: 12px; }
.mod-cover figcaption { margin-top: 6px; font-size: 12px; color: #8A94A3; }
.mod-dl { display: grid; grid-template-columns: 70px 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: 14px; }
.mod-dl dt { color: #6B7280; }
.mod-dl dd { margin: 0; color: #0C1A2E; font-weight: 500; }
.mod-h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: #4B5565; text-transform: uppercase; letter-spacing: .04em; }
.mod-info .mod-h3 { margin-top: 0; }
.mod-bio { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F6F9FC; border-left: 3px solid #C5E8E1; font-size: 14px; line-height: 1.55; color: #1F2937; white-space: pre-line; }
.mod-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.mod-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mod-face, .mod-face img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.mod-face img { border: 1px solid #E5E9F0; }
.mod-initial { display: grid; place-items: center; background: #EEF2F7; color: #4B5565; font-weight: 700; font-size: 22px; }
.mod-person div { display: grid; gap: 1px; font-size: 13px; color: #6B7280; }
.mod-person strong { font-size: 14.5px; color: #0C1A2E; }
.mod-person .ad-link { justify-self: start; margin-top: 2px; }
.mod-mail { font-size: 12.5px; }
.mod-kids, .mod-leader-bio { margin: 14px 0 0; font-size: 13.5px; color: #4B5565; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mod-kids svg { width: 14px; height: 14px; }
.mod-check { list-style: none; margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: #FBFAF4; border: 1px solid #F1ECD8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 13px; color: #4B5565; }
.mod-check li { display: flex; align-items: center; gap: 7px; }
.mod-check svg { width: 14px; height: 14px; color: #1F8A7A; flex: none; }
.mod-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEF1F6; }
.mod-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.mod-actions .btn svg { width: 15px; height: 15px; }
.mod-reject { margin-right: auto; color: #B42318; border-color: #F3D0CC; }
.mod-reject:hover { background: #FEF3F2; }
.mod-approve { background: #1F8A7A; border-color: #1F8A7A; }
.mod-approve:hover { background: #18705F; border-color: #18705F; }
.mod-empty { text-align: center; padding: 36px 20px; }
.mod-empty svg { width: 28px; height: 28px; color: #1F8A7A; }
.mod-empty h3 { margin: 8px 0 4px; font-size: 16px; }
@media (max-width: 760px) {
  .mod-card { padding: 16px; }
  .mod-grid { grid-template-columns: 1fr; gap: 14px; }
  .mod-check { grid-template-columns: 1fr; }
  .mod-actions .btn { flex: 1 1 auto; justify-content: center; }
  .mod-reject { margin-right: 0; }
}

/* « Votre tribu se fait une beauté » : tribu envoyée en vérification avant publication */
.rvw-scene { position: relative; height: 250px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #2E8C7F 0%, #165F56 48%, #0E4A43 100%); }
.rvw-flakes i { position: absolute; top: -12px; left: var(--l); width: calc(6px * var(--z)); height: calc(6px * var(--z)); border-radius: 50%; background: rgba(255, 255, 255, .8); animation: rvw-snow var(--t) linear var(--dl) infinite; }
@keyframes rvw-snow { to { transform: translate3d(18px, 270px, 0); } }
.rvw-glow { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 170, .38), rgba(255, 236, 170, 0) 65%); animation: rvw-breathe 3.2s ease-in-out infinite; }
@keyframes rvw-breathe { 50% { transform: scale(1.12); opacity: .75; } }
.rvw-mirror { position: absolute; left: 50%; top: 50%; width: 176px; height: 176px; translate: -50% -50%; animation: lch-fade .5s ease .1s both; }
.rvw-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #FFE7A3, #fff 18%, #F5C451 35%, #FFF3CF 52%, #E9B23C 70%, #FFE7A3 100%); animation: rvw-spin 6s linear infinite; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
@keyframes rvw-spin { to { transform: rotate(360deg); } }
.rvw-face { position: absolute; inset: 9px; border-radius: 50%; overflow: hidden; background: #E8F2F1; border: 3px solid #fff; animation: rvw-pop .7s cubic-bezier(.2, 1.3, .3, 1) .25s both; }
.rvw-face img, .rvw-initial { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvw-initial { display: grid; place-items: center; font: 800 54px/1 var(--font-title); color: #0E4A43; }
@keyframes rvw-pop { from { transform: scale(.4); opacity: 0; } }
.rvw-shine { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .75) 48%, rgba(255, 255, 255, .15) 54%, transparent 62%); transform: translateX(-120%); animation: rvw-sweep 2.8s cubic-bezier(.4, 0, .2, 1) 1s infinite; }
@keyframes rvw-sweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.rvw-sp { position: absolute; left: var(--x); top: var(--y); width: calc(22px * var(--s)); height: calc(22px * var(--s)); fill: #FFF6D6; filter: drop-shadow(0 0 6px rgba(255, 228, 140, .9)); opacity: 0; animation: rvw-twinkle 2.6s ease-in-out var(--d) infinite; }
@keyframes rvw-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(25deg); } }
.rvw-mirror.is-again .rvw-sp { animation: rvw-burst .9s ease-out both, rvw-twinkle 2.6s ease-in-out calc(var(--d) + .9s) infinite; }
@keyframes rvw-burst { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(1.5) rotate(45deg); } 100% { opacity: 0; transform: scale(.6); } }
.rvw-wand { position: absolute; right: -34px; top: -18px; width: 58px; height: 58px; transform-origin: 20% 90%; animation: rvw-wave 2.8s ease-in-out .9s infinite; }
.rvw-wand svg { width: 100%; height: 100%; fill: none; stroke: #FFF6D6; stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 228, 140, .8)); }
@keyframes rvw-wave { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-22deg) translate(-6px, 4px); } 40% { transform: rotate(8deg); } }
.rvw-kicker { background: #FFF4D6; color: #8A5A00; }
.rvw-copy .lch-title { font-size: 28px; }
.rvw-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.rvw-steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: 12px; opacity: 0; transform: translateY(10px); animation: hw-up .55s cubic-bezier(.2, .8, .2, 1) calc(1.85s + var(--i) * .22s) both; }
.rvw-steps li + li::before { content: ""; position: absolute; left: 23px; top: -8px; width: 2px; height: 14px; background: #DDE5EE; }
.rvw-steps li.is-now { background: #F2FAF8; }
.rvw-dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #EEF2F7; border: 2px solid #DDE5EE; }
.is-done .rvw-dot { background: #1F8A7A; border-color: #1F8A7A; }
.is-done .rvw-dot svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; animation: rvw-tick .45s ease 2.2s forwards; }
@keyframes rvw-tick { to { stroke-dashoffset: 0; } }
.is-now .rvw-dot { display: flex; gap: 2px; background: #fff; border-color: #1F8A7A; }
.is-now .rvw-dot i { width: 4px; height: 4px; border-radius: 50%; background: #1F8A7A; animation: rvw-dots 1.2s ease-in-out infinite; }
.is-now .rvw-dot i:nth-child(2) { animation-delay: .15s; } .is-now .rvw-dot i:nth-child(3) { animation-delay: .3s; }
@keyframes rvw-dots { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-3px); opacity: 1; } }
.rvw-steps strong { display: block; font-size: 14.5px; font-weight: 700; color: #0C1A2E; }
.rvw-steps li span:not(.rvw-dot) { display: block; margin-top: 1px; font-size: 13px; color: #6B7280; line-height: 1.4; }
.is-next strong { color: #6B7280; }
.rvw-meter { animation-delay: 2.6s; }
.rvw-meter i { animation: rvw-fill 1.4s cubic-bezier(.2, .8, .2, 1) 2.8s forwards; background: linear-gradient(90deg, #06C7B3, #0A9E8F, #F5C451); background-size: 200% 100%; }
@keyframes rvw-fill { to { width: 72%; } }
.rvw-meter em { color: #8A5A00; }
.rvw-ok { animation-delay: 2.7s; }
@media (max-width: 420px) {
  .rvw-scene { height: 220px; }
  .rvw-mirror { width: 150px; height: 150px; }
  .rvw-copy .lch-title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .rvw-flakes, .rvw-shine, .rvw-wand { display: none; }
  .rvw-ring, .rvw-glow, .rvw-sp, .is-now .rvw-dot i { animation: none; }
  .rvw-sp { opacity: .8; }
}

/* Tribu en vérification : côté chef de tribu (Mes tribus, gestion, aperçu) */
.badge-amber { background: #FFF4D6; color: #8A5A00; }
.mg-review { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 16px; background: linear-gradient(120deg, #FFFBF0 0%, #F2FAF8 100%); border: 1px solid #F1E6C4; }
.mg-review h2 { margin: 0 0 4px; font: 700 17px/1.3 var(--font-title, var(--font)); color: #0E4A43; }
.mg-review p { margin: 0; font-size: 14px; line-height: 1.5; color: #4B5565; max-width: 62ch; }
.mg-review-art { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.mg-review-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#FFE7A3, #fff, #F5C451, #FFF3CF, #E9B23C, #FFE7A3); animation: rvw-spin 6s linear infinite; }
.mg-review-art img, .mg-review-art > .icon { position: relative; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #E8F2F1; }
.mg-review-art > .icon { padding: 14px; color: #0E4A43; }
.mg-review-sp { position: absolute; right: -6px; top: -4px; width: 18px; height: 18px; fill: #F5C451; animation: rvw-twinkle 2.6s ease-in-out infinite; }
.tp-review-note { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 11px 16px; border-radius: 12px; background: #FFF8E6; border: 1px solid #F1E6C4; color: #6B4E00; font-size: 14px; font-weight: 500; }
.tp-review-note .icon { width: 17px; height: 17px; flex: none; }
.mt2-review { background: #FFF8E6; border-color: #F1E6C4; color: #6B4E00; }
@media (max-width: 600px) {
  .mg-review { align-items: flex-start; gap: 14px; padding: 16px; }
  .mg-review-art { width: 52px; height: 52px; }
  .mg-review-art img, .mg-review-art > .icon { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .mg-review-ring, .mg-review-sp { animation: none; } }

/* Photos : fenêtre « règles des photos » (case obligatoire : aucune photo de mineur) */
.pp-rule { display: flex; margin-top: 10px; }
.phr { width: min(460px, calc(100% - 24px)); max-width: none; margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--navy, #0C1A2E); box-shadow: 0 30px 70px -24px rgba(6, 30, 26, .5); animation: phr-in .32s cubic-bezier(.2, .9, .2, 1); }
.phr::backdrop { background: rgba(6, 22, 20, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.phr.is-leaving { animation: phr-out .18s ease forwards; }
@keyframes phr-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes phr-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.phr-card { position: relative; padding: 22px 22px 20px; }
.phr-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #4B5565; cursor: pointer; }
.phr-x:hover { background: #F2F5F9; }
.phr-x .icon { width: 18px; height: 18px; }
.phr-top { display: flex; align-items: center; gap: 16px; padding-right: 28px; }
.phr-preview { flex: none; display: block; width: 92px; height: 70px; border-radius: 12px; overflow: hidden; border: 1px solid #E5E9F0; background: #F2F5F9; }
.phr-preview.is-round { width: 76px; height: 76px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #E5E9F0, 0 8px 18px -10px rgba(0, 0, 0, .35); }
.phr-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phr-top h2 { margin: 0 0 4px; font: 700 17px/1.3 var(--font-title, var(--font)); }
.phr-lead { margin: 0; font-size: 14px; line-height: 1.5; color: #4B5565; }
.phr-tip { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 9px 12px; border-radius: 10px; background: #F2FAF8; color: #14705F; font-size: 13px; font-weight: 500; }
.phr-tip .icon { width: 15px; height: 15px; flex: none; }
.phr-rule { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #FEF3F2; border: 1px solid #F8D4CF; }
.phr-rule .icon { width: 18px; height: 18px; color: #B42318; flex: none; margin-top: 1px; }
.phr-rule strong { display: block; font-size: 14px; color: #912018; }
.phr-rule span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #6B2A23; }
.phr-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #DDE5EE; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.4; transition: border-color .15s, background .15s; }
.phr-check:hover { border-color: #B9C6D4; }
.phr-check:has(input:checked) { border-color: #1F8A7A; background: #F2FAF8; }
.phr-check input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; accent-color: #1F8A7A; cursor: pointer; }
.phr-check.is-shake { animation: phr-shake .4s ease; border-color: #E5534B; }
@keyframes phr-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.phr-error { margin: 8px 0 0; font-size: 13px; color: #B42318; }
.phr-error[hidden] { display: none; }
.phr-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.phr-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.phr-ok .icon { width: 16px; height: 16px; }
.phr-ok[aria-disabled="true"] { opacity: .5; }
@media (max-width: 480px) {
  .phr { width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .phr-card { padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
  .phr-top { gap: 12px; }
  .phr-actions { flex-direction: column-reverse; }
  .phr-actions .btn { width: 100%; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .phr, .phr.is-leaving, .phr-check.is-shake { animation: none; } }

/* Inscription : écran « Activez votre compte » (activation obligatoire, rappel des spams) */
.ap-verify { gap: 10px; }
.ap-verify .ap-sub { margin-top: 0; }
.ap-steps { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; gap: 8px; text-align: left; }
.ap-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-radius: 12px; background: #F6F9FC; border: 1px solid #E5E9F0; }
.ap-steps li > span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #E1251B); color: #fff; font-size: 13px; font-weight: 700; }
.ap-steps strong { display: block; font-size: 14.5px; color: var(--navy, #0C1A2E); line-height: 1.35; }
.ap-steps em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: #6B7383; }
.ap-required { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 2px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF6E5; border: 1px solid #F3DFB4; color: #6B4E00; font-size: 13.5px; line-height: 1.45; text-align: left; }
.ap-required .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ap-required strong { color: #5A3F00; }
.ap-verify .ap-after { width: 100%; margin: 0; }
.ap-spam { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px dashed #C9D3DF; text-align: left; }
.ap-spam > .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #4B5565; }
.ap-spam strong { display: block; font-size: 14px; color: var(--navy, #0C1A2E); }
.ap-spam span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: #4B5565; }
.ap-spam span strong { display: inline; font-size: inherit; }
.ap-spam .link { margin-top: 6px; min-height: 0; padding: 0; color: var(--navy, #0C1A2E); font-weight: 600; }
.ap-verify .ap-back { margin-top: 4px; }

/* ---- Administration : tableau des tribus (une ligne nette par tribu, fiches quand la place manque) ---------------- */
.ad-tribes-wrap { container-type: inline-size; }
.ad-tribes th, .ad-tribes td { padding-left: 11px; padding-right: 11px; }
.ad-tribes th:first-child, .ad-tribes td:first-child { padding-left: 16px; }
.ad-tribes td { padding-top: 12px; padding-bottom: 12px; white-space: nowrap; line-height: 1.35; }
.ad-tribes tbody tr:first-child td { border-top: 0; }
.ad-tribes tbody tr:hover td { background: #FAFCFE; }
.ad-tribes td small { margin-top: 2px; }
.ad-tribes .at-name { width: 100%; min-width: 130px; white-space: normal; }
.ad-tribes .at-name a { color: var(--navy, #0b2545); font-weight: 600; text-decoration: none; }
.ad-tribes .at-name a:hover { color: var(--brand, #E1251B); text-decoration: underline; }
.ad-tribes .at-dates span, .ad-tribes .at-places { font-variant-numeric: tabular-nums; }
.ad-tribes .at-chef small { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.ad-tribes .at-wait { color: #8A5A00; font-weight: 600; }
.ad-tribes tr.is-off td:not(.at-actions) > *, .ad-tribes tr.is-off .at-course, .ad-tribes tr.is-off .at-chef, .ad-tribes tr.is-off .at-dates, .ad-tribes tr.is-off .at-places { color: #6B7686; }
.ad-tribes .at-actions { text-align: right; padding-left: 4px; }
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; color: #4B5565; font: 600 13px/1 var(--font); cursor: pointer; }
.at-btn .icon { width: 16px; height: 16px; }
.at-btn span { display: none; }
.at-btn:hover { background: #EEF2F7; color: var(--navy, #0b2545); }
.at-btn.is-danger { color: var(--brand, #E1251B); }
.at-btn.is-danger:hover { background: #FDECEB; color: #B42318; }
@container (max-width: 899px) {
  .ad-tribes, .ad-tribes tbody { display: block; }
  .ad-tribes thead { display: none; }
  .ad-tribes tr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 1.25fr) minmax(0, .9fr); gap: 10px 16px; padding: 14px 16px; border-top: 1px solid #EEF1F5; }
  .ad-tribes tr:first-child { border-top: 0; }
  .ad-tribes tbody tr:hover td { background: none; }
  .ad-tribes td, .ad-tribes td:first-child { padding: 0; border: 0; white-space: normal; min-width: 0; }
  .ad-tribes .at-name { grid-column: 1 / 4; width: auto; font-size: 15px; }
  .ad-tribes .at-state { grid-column: 4; grid-row: 1; justify-self: end; }
  .ad-tribes .at-chef small { max-width: none; }
  .ad-tribes .at-actions { grid-column: 1 / -1; padding: 0; text-align: left; display: flex; gap: 4px; margin-left: -10px; }
  .at-btn { width: auto; padding: 0 10px; }
  .at-btn span { display: inline; }
}
@container (max-width: 599px) {
  .ad-tribes tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-tribes .at-name { grid-column: 1; }
  .ad-tribes .at-state { grid-column: 2; }
  .ad-tribes .at-dates span { white-space: normal; }
  .at-btn { height: 40px; }
}

/* Cartes d’accueil : un long repère de niveau (tribus enfants) ne fait jamais déborder la carte */
.hcard { min-width: 0; }
.hcard-head > div { min-width: 0; flex: 1 1 auto; }
.hcard-facts { grid-template-columns: minmax(0, 1fr); }
.hf-text { min-width: 0; overflow-wrap: anywhere; }
.hf-text .esi-eq { white-space: normal; vertical-align: top; margin-top: 2px; }
@media (max-width: 767px) { .h-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 345px) {  /* très petits téléphones : rien ne dépasse de l’écran */
  .h-hero { grid-template-columns: minmax(0, 1fr); }
  .h-hero-text, .h-photo { min-width: 0; }
  .h-hero-text .h-kicker, .h-hero-text h1, .h-hero-text h1 * , .h-hero-text p { white-space: normal !important; }
}

/* Aucune tribu : message « c’est normal, créez la première » */
.ef-call { max-width: 560px; margin: 10px auto 0; padding: 11px 16px; border-radius: 12px; background: #ECF8F1; color: #14532D; font-size: 15.5px; font-weight: 650; line-height: 1.45; }
.empty-fun h2 { text-wrap: balance; }
.ef-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 22px; margin: 4px 0 0; }
.ef-more .link { font-size: 14px; font-weight: 500; color: #4B5565; }
.ef-seat .ef-friend { filter: none; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(11, 37, 69, .18); }
.empty-fun .actions .btn { max-width: 100%; white-space: normal; }

/* Audience : où les visiteurs s'arrêtent, appareils de l'équipe */
.ad-journey { align-items: start; }
.ad-funnel li { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) auto; }
.ad-funnel li > span:first-child { white-space: normal; }
.ad-own { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ad-own li { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px; border-radius: 99px; background: #F2F5F9; font-size: 13.5px; }
.ad-own span { color: #5B6676; }
.lg-optout { margin-top: 4px; }

/* Accueil : animation « on prend ses compagnons au passage » (place réservée avant le chargement : rien ne bouge) */
.h-anim { background: linear-gradient(#BFE0FB, #F1F8FF 70%); }
.h-anim canvas { display: block; width: 100%; aspect-ratio: 666 / 496; }
@container (max-width: 479.9px) { .h-anim canvas { aspect-ratio: 666 / 610; } }

/* Accueil : leçon particulière, bien visible au-dessus des boutons */
.h-private { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 13px 18px; border-radius: 16px; background: #fff; border: 1.5px solid #F3C4C6; box-shadow: 0 4px 18px rgba(16, 40, 80, .06); }
.h-private > .icon { flex: none; width: 30px; height: 30px; color: var(--brand, #E1251B); stroke-width: 1.7; }
.h-private p { margin: 0; min-width: 0; }
.h-private strong { display: block; font-family: var(--font-title); font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.h-private em { font-style: normal; color: var(--brand, #E1251B); }
.h-private .h-who { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 10px 2px 7px; border-radius: 999px; background: #E9F6EE; color: #1E6B3A; font-size: 13px; font-weight: 700; }
.h-private .h-who .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.h-private span { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; color: #3D4757; }
@media (max-width: 767px) { .h-private { padding: 12px 14px; gap: 12px; } .h-private strong { font-size: 18px; } .h-private > .icon { width: 26px; height: 26px; } }

/* Parcours vers la création de tribu (audit du 26/11/2026) */
.search-fold { margin-bottom: 4px; }
.search-fold > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--navy); font-size: 14px; font-weight: 600; }
.search-fold > summary::-webkit-details-marker { display: none; }
.search-fold > summary .icon { width: 16px; height: 16px; }
.search-fold[open] > summary { margin-bottom: 8px; }
.results-create { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 14px 16px; border: 1px solid #F6C9C6; border-radius: 14px; background: #FFF8F7; }
.results-create .rc-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #FDE8E8; color: var(--accent); }
.results-create .rc-icon .icon { width: 18px; height: 18px; }
.results-create p { flex: 1; margin: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.4; color: #5B6577; }
.results-create strong { color: var(--navy); font-size: 15px; }
.results-create .btn { flex: none; min-height: 40px; padding: 0 16px; }
@media (max-width: 560px) {
  .results-create { flex-wrap: wrap; }
  .results-create p { flex-basis: calc(100% - 46px); }
  .results-create .btn { width: 100%; }
}
.mobile-nav .mn-create { flex: 1; display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 56px; padding: 8px 2px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mobile-nav .mn-create .icon { box-sizing: content-box; width: 16px; height: 16px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; }
.mobile-nav a { align-content: start; }
.mobile-nav a span, .mobile-nav .mn-create span { white-space: nowrap; }
@media (max-width: 400px) { .mobile-nav a, .mobile-nav .mn-create { font-size: 11px; padding-inline: 1px; } }
@media (max-width: 600px) { .empty-fun .ef-steps { margin-top: 14px; } }

/* Clavier du téléphone ouvert : fenêtre limitée à la zone visible, pied (« Continuer ») au-dessus du clavier */
@media (max-width: 767.98px) {
  .modal.kb-open { height: var(--vv-h); max-height: var(--vv-h); }
  .modal.kb-open .modal-shell { height: var(--vv-h); max-height: var(--vv-h); }
  .modal.kb-open .modal-footer { padding-bottom: 10px; }
}

/* Accueil sur téléphone, version aérée (26/11/2026) : une idée par ligne, encadré compact */
.h-lead .only-phone { display: none; }
@media (max-width: 767.98px) {
  .h-hero .h-kicker { display: none; }
  .h-hero h1 { margin-top: 6px; }
  .h-sub.h-sub-green { font-size: 17px; margin-top: 10px; }
  .h-hero-text .h-lead { font-size: 15px; line-height: 1.45; margin-top: 6px; }
  .h-lead .only-desk { display: none; }
  .h-lead .only-phone { display: inline; }
  .h-private { margin-top: 16px; padding: 12px 14px; gap: 0; border-width: 1px; box-shadow: none; }
  .h-private > .icon { display: none; }
  .h-private strong { font-size: 17px; }
  .h-private .h-who { margin-top: 6px; font-size: 12.5px; }
  .h-private span { font-size: 13px; color: #5B6577; }
  .h-actions { margin-top: 16px; }
}

/* Création de tribu, version épurée (26/11/2026) : prix indicatif replié, progression fine sur téléphone */
details.gs-price { padding: 0; overflow: hidden; }
details.gs-price > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; list-style: none; cursor: pointer; }
details.gs-price > summary::-webkit-details-marker { display: none; }
.gs-price-plus { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #CBD3DD; color: var(--navy); transition: transform .2s; }
.gs-price-plus .icon { width: 14px; height: 14px; }
details.gs-price[open] .gs-price-plus { transform: rotate(45deg); }
details.gs-price .gs-price-label { flex: 1; font-size: 15px; font-weight: 600; }
.gs-price-opt { font-size: 13px; color: #6B7280; }
.gs-price-body { padding: 0 16px 16px; }
.gs-price-body .gs-price-help { margin-top: 0; }
.gs-price-each:empty { display: none; }
@media (max-width: 767.98px) {
  .modal[data-owner="wizard"] .modal-top.has-progress { padding-bottom: 12px; }
  .modal[data-owner="wizard"] .modal-back { visibility: hidden; }  /* « Retour » déjà en bas de la fenêtre */
  .modal[data-owner="wizard"] .stepper { gap: 4px; margin: 12px 0 0; justify-content: stretch; }
  .modal[data-owner="wizard"] .stepper span { flex: 1; width: auto; height: 4px; border: 0; border-radius: 4px; background: #E3E8EF; box-shadow: none; }
  .modal[data-owner="wizard"] .stepper span.done, .modal[data-owner="wizard"] .stepper span.current { background: var(--accent); }
  .modal[data-owner="wizard"] .stepper span::before, .modal[data-owner="wizard"] .stepper span::after, .modal[data-owner="wizard"] .stepper b { display: none !important; }
  .modal[data-owner="wizard"] .stepper-count { position: static; margin: 8px 0 0; font-size: 13px; font-weight: 500; color: #5B6577; text-align: left; }
  .modal[data-owner="wizard"] .modal-footer .btn:not(.btn-primary) { flex: none; min-width: 0; border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }
}

/* Recherche sans résultat, version « aperçu de votre tribu » (26/11/2026) */
.empty-pro { max-width: 520px; margin: 8px auto 0; padding: 28px 24px 22px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(16, 40, 80, .05), 0 10px 34px rgba(16, 40, 80, .07); text-align: center; }
.ep-eyebrow { margin: 0; font-size: 13px; font-weight: 600; color: #6B7280; }
.empty-pro h2 { margin: 6px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; color: var(--navy); text-wrap: balance; }
.ep-sub { margin: 10px auto 0; max-width: 400px; font-size: 15px; line-height: 1.5; color: #5B6577; }
.ep-preview { position: relative; margin: 22px auto 0; max-width: 360px; padding: 16px; border: 1px solid #E6EAF0; border-radius: 18px; background: linear-gradient(180deg, #fff, #FBFCFE); box-shadow: 0 12px 30px rgba(16, 40, 80, .09); text-align: left; animation: ep-float 6s ease-in-out infinite; }
.ep-tag { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: #F2F5F9; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; }
.ep-head { display: flex; align-items: center; gap: 12px; padding-right: 64px; }
.ep-avatar { position: relative; flex: none; width: 48px; height: 48px; }
.ep-avatar img { width: 48px; height: 48px; border-radius: 50%; background: #FDE8E8; object-fit: cover; }
.ep-avatar i { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); display: flex; width: 20px; }
.ep-avatar i svg { width: 20px; height: auto; }
.ep-head strong { display: block; font-size: 16px; line-height: 1.25; color: var(--navy); }
.ep-head span { display: block; margin-top: 2px; font-size: 13px; color: #6B7280; }
.ep-facts { display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #EEF1F5; list-style: none; font-size: 13.5px; color: #3D4757; }
.ep-facts li { display: flex; align-items: center; gap: 8px; }
.ep-facts .icon { width: 16px; height: 16px; color: #8A94A6; }
.ep-seats { display: flex; justify-content: space-between; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.ep-seats li { display: grid; justify-items: center; gap: 4px; flex: 1; }
.ep-seats small { font-size: 11.5px; color: #6B7280; white-space: nowrap; }
.ep-you img { width: 40px; height: 40px; border-radius: 50%; background: #FDE8E8; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.ep-you small { font-weight: 700; color: var(--navy); }
.ep-free span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed #C3CBD6; color: #9AA4B2; animation: ep-seat 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * .35s); }
.ep-free .icon { width: 16px; height: 16px; }
.ep-cta { width: 100%; max-width: 360px; min-height: 52px; margin: 22px auto 0; font-size: 16px; font-weight: 700; border-radius: 14px; }
.ep-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: #5B6577; }
.ep-points li { display: inline-flex; align-items: center; gap: 5px; }
.ep-points .icon { width: 14px; height: 14px; color: #16A34A; stroke-width: 2.4; }
.ep-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #EEF1F5; font-size: 14px; }
@keyframes ep-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ep-seat { 0%, 100% { border-color: #C3CBD6; color: #9AA4B2; background: transparent; } 50% { border-color: var(--accent); color: var(--accent); background: #FFF5F5; } }
@media (max-width: 767.98px) {
  .empty-pro { margin-top: 4px; padding: 22px 16px 18px; border-radius: 20px; }
  .empty-pro h2 { font-size: 22px; }
  .ep-sub { font-size: 14px; }
  .ep-preview { margin-top: 18px; }
  .ep-cta { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ep-preview, .ep-free span { animation: none; } }
@media (max-width: 400px) {
  .ep-tag { position: static; display: inline-block; margin-bottom: 10px; }
  .ep-head { padding-right: 0; }
  .ep-seats small { font-size: 10.5px; }
}

/* Écran vide, mise en page finale (26/11/2026) : une seule carte, rien ne se chevauche */
.page-head.ph-empty { display: none; }
.search-fold > summary { display: flex; width: 100%; gap: 12px; padding: 10px 14px 10px 16px; border-radius: 16px; box-shadow: 0 2px 10px rgba(16, 40, 80, .06); }
.search-fold .sf-main { flex: 1; min-width: 0; display: grid; text-align: left; line-height: 1.25; }
.search-fold .sf-main b { font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-fold .sf-main small { font-size: 12.5px; font-weight: 500; color: #6B7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-fold .sf-edit { flex: none; font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ep-tag { display: none; }
.ep-head { padding-right: 0; }
.ep-label { margin: 22px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A94A6; }
.ep-label + .ep-preview { margin-top: 0; }
@media (max-width: 767.98px) {
  .empty-pro { margin-top: 18px; padding: 4px 0 8px; background: none; box-shadow: none; border-radius: 0; }
  .empty-pro h2 { font-size: 24px; }
  .ep-sub { max-width: 340px; }
  .ep-label { margin-top: 18px; }
  .ep-preview { max-width: none; background: #fff; }
  .ep-cta { max-width: none; }
  .ep-more { border-top-color: #E3E8EF; }
}

/* Cartes de l’accueil : dates des cours en évidence */
.hcard-facts .hf-dates { font-weight: 600; color: var(--navy); }

/* Première étape de la création, visiteurs venus d’une publicité. */
.wz-intro { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #E9F6EE; color: #1E6B3A; text-align: center; }
.wz-intro p { margin: 0 0 6px; font-weight: 700; font-size: 15px; line-height: 1.35; color: #14402A; text-wrap: balance; }
.wz-intro p em { font-style: normal; color: #C4161C; text-transform: uppercase; letter-spacing: .01em; }
.wz-intro p.wz-intro-not { margin-bottom: 8px; font-weight: 600; font-size: 13.5px; }
.wz-intro ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }
.wz-intro li { display: inline-flex; align-items: center; gap: 4px; }
.wz-intro .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.h-private .h-not { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: #C4161C; }
