/* 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; }
.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; }
.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)); } }
