:root {
  --qv3-orange: #f58220;
  --qv3-orange-dark: #df6d0a;
  --qv3-charcoal: #191919;
  --qv3-charcoal-2: #2d2d2d;
  --qv3-bg: #f6f7f9;
  --qv3-card: #ffffff;
  --qv3-text: #20242a;
  --qv3-muted: #667085;
  --qv3-border: #e6e8ec;
  --qv3-green: #2fa84f;
  --qv3-green-soft: #eaf8ee;
  --qv3-yellow: #f4a51c;
  --qv3-yellow-soft: #fff7e3;
  --qv3-red: #e04444;
  --qv3-red-soft: #fff0f0;
  --qv3-blue-soft: #edf6ff;
  --qv3-purple: #933ec5;
  --qv3-shadow: 0 14px 38px rgba(24, 31, 43, 0.08);
  --qv3-radius: 24px;
  --qv3-radius-sm: 14px;
  --qv3-max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.qv3-body {
  margin: 0;
  min-height: 100vh;
  color: var(--qv3-text);
  background: var(--qv3-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.qv3-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(135deg, #111 0%, #272727 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.qv3-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 210px;
}
.qv3-brand strong {
  display: block;
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: -0.04em;
}
.qv3-brand small {
  display: block;
  margin-top: 4px;
  color: var(--qv3-orange);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}
.qv3-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--qv3-orange);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.12);
}
.qv3-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qv3-nav a,
.qv3-user-button {
  color: #f7f7f7;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 700;
  border-radius: 16px;
  padding: 12px 15px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.qv3-nav a:hover,
.qv3-user-button:hover,
.qv3-nav .is-active {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}
.qv3-nav .is-active { color: var(--qv3-orange); }
.qv3-nav-cta {
  background: var(--qv3-orange) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(245, 130, 32, .24);
}
.qv3-user-menu { position: relative; }
.qv3-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: none;
  min-width: 190px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: var(--qv3-text);
  box-shadow: var(--qv3-shadow);
  border: 1px solid var(--qv3-border);
}
.qv3-user-dropdown.is-open { display: block; }
.qv3-user-dropdown a {
  display: block;
  color: var(--qv3-text);
  border-radius: 0;
  padding: 13px 16px;
  font-weight: 650;
}
.qv3-user-dropdown a:hover { background: #fff5ee; color: var(--qv3-orange-dark); }
.qv3-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.qv3-page {
  max-width: var(--qv3-max);
  margin: 0 auto;
  padding: 28px 24px 94px;
}
.qv3-public .qv3-page {
  max-width: none;
  padding: 0 0 64px;
}
.qv3-section { max-width: var(--qv3-max); margin: 0 auto; padding: 0 24px; }
.qv3-card {
  background: var(--qv3-card);
  border: 1px solid var(--qv3-border);
  border-radius: var(--qv3-radius);
  box-shadow: var(--qv3-shadow);
}
.qv3-card-pad { padding: 24px; }
.qv3-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 24px;
}
.qv3-page-title h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: -0.05em; }
.qv3-page-title p { margin: 8px 0 0; color: var(--qv3-muted); }
.qv3-icon-title { color: var(--qv3-orange); margin-right: 8px; }

.qv3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit;
  font-size: .96rem;
}
.qv3-btn:hover { transform: translateY(-1px); }
.qv3-btn-primary { background: var(--qv3-orange); color: #fff; box-shadow: 0 12px 24px rgba(245,130,32,.22); }
.qv3-btn-primary:hover { background: var(--qv3-orange-dark); }
.qv3-btn-outline { background: #fff; color: var(--qv3-text); border-color: var(--qv3-border); }
.qv3-btn-soft { background: #fff4ed; color: var(--qv3-orange-dark); border-color: #ffd8bd; }
.qv3-btn-green { background: linear-gradient(135deg, #40be5c, #209646); color: #fff; }
.qv3-btn-yellow { background: linear-gradient(135deg, #ffc848, #f3a51a); color: #3c2a00; }
.qv3-btn-red { background: linear-gradient(135deg, #ff666c, #e94348); color: #fff; }
.qv3-btn-block { width: 100%; }
.qv3-actions-row { display: flex; gap: 12px; flex-wrap: wrap; }

.qv3-hero-public {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.qv3-hero-public::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.42), rgba(0,0,0,.12)), url('../img/roller-derby3.webp') center/cover no-repeat;
  transform: scale(1.01);
}
.qv3-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--qv3-max);
  margin: 0 auto;
  padding: 90px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  gap: 48px;
  align-items: center;
}
.qv3-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--qv3-orange);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.qv3-hero-public h1 {
  max-width: 730px;
  margin: 22px 0 18px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -0.075em;
}
.qv3-hero-public h1 span { color: var(--qv3-orange); }
.qv3-hero-public p { max-width: 650px; color: rgba(255,255,255,.88); font-size: 1.17rem; }
.qv3-hero-public .qv3-btn-outline { background: rgba(255,255,255,.92); }
.qv3-training-preview { color: var(--qv3-text); padding: 24px; }
.qv3-training-preview .qv3-kicker { background: #fff0e7; }

.qv3-feature-row,
.qv3-preview-grid,
.qv3-grid-3,
.qv3-dashboard-grid {
  display: grid;
  gap: 20px;
}
.qv3-feature-row { grid-template-columns: repeat(3, 1fr); margin-top: -42px; position: relative; z-index: 2; }
.qv3-feature-card { padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.qv3-feature-card .qv3-feature-icon,
.qv3-large-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff0e7;
  color: var(--qv3-orange);
  font-size: 1.8rem;
}
.qv3-feature-card h3 { margin: 0 0 6px; font-size: 1.28rem; letter-spacing: -0.02em; }
.qv3-feature-card p { margin: 0; color: var(--qv3-muted); }
.qv3-home-preview { margin-top: 36px; padding: 28px; background: linear-gradient(135deg, #fff, #fff6ee); }
.qv3-preview-grid { grid-template-columns: 1.1fr 1fr 1fr 1fr; }

.qv3-event-hero {
  display: grid;
  grid-template-columns: 310px 1fr 370px;
  gap: 26px;
  overflow: hidden;
}
.qv3-event-visual {
  min-height: 330px;
  background: linear-gradient(0deg, rgba(0,0,0,.16), rgba(0,0,0,.16)), url('../img/roller-derby2.webp') center/cover no-repeat;
  border-radius: calc(var(--qv3-radius) - 6px);
}
.qv3-event-main,
.qv3-event-side { padding: 28px; }
.qv3-event-main h1,
.qv3-event-main h2 { margin: 10px 0 14px; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -0.06em; }
.qv3-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--qv3-muted);
  font-weight: 700;
}
.qv3-theme-pill,
.qv3-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .82rem;
}
.qv3-theme-pill { color: var(--qv3-orange-dark); background: #fff0e7; }
.qv3-team-pill { color: #fff; background: var(--qv3-purple); }
.qv3-coach-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid var(--qv3-border);
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0;
}
.qv3-coach-note strong { color: var(--qv3-orange-dark); }
.qv3-impact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #fff8f2, #fff);
  border: 1px solid #ffe1cb;
  border-radius: 18px;
  margin-bottom: 18px;
}
.qv3-impact strong { display: block; font-size: 1.15rem; }
.qv3-helmets { display: flex; gap: 5px; margin-top: 6px; }
.qv3-helmet { width: 22px; height: 16px; border-radius: 12px 12px 6px 6px; background: var(--qv3-orange); opacity: .92; }
.qv3-helmet.is-empty { background: #ccd0d6; }
.qv3-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.qv3-count {
  border: 1px solid var(--qv3-border);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  background: #fff;
}
.qv3-count strong { display: block; font-size: 2rem; line-height: 1; }
.qv3-count small { color: var(--qv3-muted); font-weight: 700; }
.qv3-count-present strong { color: var(--qv3-green); }
.qv3-count-indecis strong { color: var(--qv3-yellow); }
.qv3-count-absent strong { color: var(--qv3-red); }
.qv3-attendees { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.qv3-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.qv3-avatar-sm { width: 34px; height: 34px; }
.qv3-avatar-lg { width: 132px; height: 132px; }
.qv3-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffe5d2, #f58220);
  color: #fff;
  font-weight: 900;
}
.qv3-more { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #edf0f3; color: #596071; font-weight: 900; }

.qv3-dashboard-grid { grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr) 290px; align-items: start; margin-top: 22px; }
.qv3-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.qv3-card-head h2, .qv3-card-head h3 { margin: 0; }
.qv3-link { color: var(--qv3-orange-dark); font-weight: 900; text-decoration: none; }
.qv3-stat-row { display: grid; gap: 12px; }
.qv3-stat-box { display: flex; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--qv3-border); border-radius: 16px; background: #fff; }
.qv3-stat-box .qv3-stat-icon { font-size: 1.8rem; color: var(--qv3-orange); }
.qv3-stat-box strong { display: block; font-size: 1.7rem; line-height: 1; }
.qv3-list { display: grid; gap: 10px; }
.qv3-list-item { display: flex; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--qv3-border); border-radius: 16px; background: #fff; text-decoration: none; }
.qv3-list-item:hover { border-color: #ffd0b1; }
.qv3-datebox { width: 62px; min-width: 62px; text-align: center; border-right: 3px solid var(--qv3-orange); padding-right: 10px; }
.qv3-datebox span { display: block; color: var(--qv3-orange); font-weight: 900; font-size: .78rem; }
.qv3-datebox strong { display: block; font-size: 1.7rem; line-height: 1; }
.qv3-datebox small { display: block; color: var(--qv3-muted); font-weight: 800; }
.qv3-tag { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .76rem; font-weight: 900; background: #edf0f3; color: #535b68; }
.qv3-tag-present { background: var(--qv3-green-soft); color: var(--qv3-green); }
.qv3-tag-indecis { background: var(--qv3-yellow-soft); color: #a96500; }
.qv3-tag-absent { background: var(--qv3-red-soft); color: var(--qv3-red); }
.qv3-annonce { border: 1px solid var(--qv3-border); background: #fff; border-radius: 16px; padding: 14px; }
.qv3-annonce.important { background: #fff7f0; border-color: #ffd9bd; }
.qv3-annonce h3 { margin: 2px 0 6px; }
.qv3-annonce p { margin: 0; color: #4b5360; }
.qv3-activity { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--qv3-border); }
.qv3-activity:last-child { border-bottom: 0; }
.qv3-activity-icon { width: 36px; height: 36px; border-radius: 50%; background: #fff0e7; color: var(--qv3-orange); display: inline-flex; align-items: center; justify-content: center; }
.qv3-carpool { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; background: #fff; border: 1px solid var(--qv3-border); border-radius: 16px; }

.qv3-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .84rem;
  font-weight: 900;
}
.qv3-status-present { background: var(--qv3-green-soft); color: var(--qv3-green); border: 1px solid #bee9c8; }
.qv3-status-indecis { background: var(--qv3-yellow-soft); color: #a76700; border: 1px solid #ffe1a4; }
.qv3-status-absent { background: var(--qv3-red-soft); color: var(--qv3-red); border: 1px solid #ffcaca; }

.qv3-calendar-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .95fr); gap: 22px; align-items: start; }
.qv3-month-nav { display: grid; grid-template-columns: 52px 1fr 52px; border: 1px solid var(--qv3-border); border-radius: 16px; overflow: hidden; background: #fff; margin-bottom: 18px; }
.qv3-month-nav a, .qv3-month-nav strong { display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
.qv3-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.qv3-calendar-weekday { text-align: center; font-weight: 900; font-size: .82rem; padding: 7px; color: #343a46; }
.qv3-day { min-height: 100px; border: 1px solid var(--qv3-border); border-radius: 14px; background: #fff; padding: 8px; }
.qv3-day.is-muted { opacity: .45; background: #f1f3f5; }
.qv3-day-number { display: block; font-weight: 800; margin-bottom: 6px; }
.qv3-event-pill { display: block; text-decoration: none; border-radius: 12px; padding: 6px 8px; font-size: .78rem; font-weight: 900; margin-top: 4px; }
.qv3-event-pill.good { background: var(--qv3-green-soft); color: var(--qv3-green); }
.qv3-event-pill.medium { background: var(--qv3-yellow-soft); color: #9f6500; }
.qv3-event-pill.low { background: var(--qv3-red-soft); color: var(--qv3-red); }
.qv3-event-pill.is-selected { outline: 2px solid var(--qv3-orange); }
.qv3-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--qv3-muted); font-size: .9rem; }
.qv3-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.qv3-dot.green { background: var(--qv3-green); } .qv3-dot.yellow { background: var(--qv3-yellow); } .qv3-dot.red { background: var(--qv3-red); }
.qv3-detail-card { position: sticky; top: 98px; }
.qv3-detail-date { display: flex; gap: 18px; align-items: flex-start; }
.qv3-detail-date .qv3-datebox { border-right: 1px solid var(--qv3-border); }

.qv3-directory-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.qv3-filter-card { position: sticky; top: 100px; }
.qv3-field { width: 100%; min-height: 44px; border: 1px solid var(--qv3-border); border-radius: 13px; padding: 10px 12px; background: #fff; color: var(--qv3-text); font: inherit; }
.qv3-filter-card label { display: block; margin: 14px 0 7px; color: #3a414b; font-weight: 850; }
.qv3-member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.qv3-member-card { padding: 18px; }
.qv3-member-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.qv3-member-card h3 { margin: 0; font-size: 1.25rem; }
.qv3-member-card p { margin: 2px 0; color: var(--qv3-muted); }
.qv3-team-badge { display: inline-flex; padding: 4px 8px; color: #fff; border-radius: 7px; font-size: .78rem; font-weight: 900; background: var(--qv3-purple); }
.qv3-team-succubes { background: #f1b52c; } .qv3-team-damnes, .qv3-team-damnés { background: var(--qv3-orange); } .qv3-team-cambions { background: var(--qv3-purple); }
.qv3-member-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid var(--qv3-border); margin-top: 14px; padding-top: 12px; }
.qv3-member-actions a { color: var(--qv3-orange-dark); text-decoration: none; font-weight: 800; font-size: .82rem; text-align: center; }
.qv3-summary-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--qv3-border); border-radius: 18px; margin-bottom: 18px; }

.qv3-info-grid { display: grid; grid-template-columns: 1fr 1.8fr 1fr; gap: 18px; align-items: start; }
.qv3-info-stack { display: grid; gap: 18px; }
.qv3-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.qv3-check-list li::before { content: "✓"; color: var(--qv3-green); font-weight: 900; margin-right: 8px; }
.qv3-location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qv3-callout { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: #fff7f0; border: 1px solid #ffdcc4; }

.qv3-profile-header { display: grid; grid-template-columns: auto minmax(0, 1fr) repeat(4, minmax(130px, 1fr)); gap: 18px; align-items: center; padding: 24px; }
.qv3-profile-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.06em; }
.qv3-profile-quote { margin: 10px 0 0; color: #536070; font-style: italic; }
.qv3-profile-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; margin-top: 18px; }
.qv3-progress-bar { width: 100%; height: 10px; background: #ffe0ca; border-radius: 999px; overflow: hidden; }
.qv3-progress-bar span { display: block; height: 100%; background: var(--qv3-orange); border-radius: inherit; }
.qv3-mini-chart { width: 100%; min-height: 160px; }
.qv3-quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.qv3-bottom-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; padding: 22px; background: linear-gradient(135deg, #fff7f0, #fff); border: 1px solid #ffdcc4; border-radius: var(--qv3-radius); }

.qv3-call-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.qv3-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.qv3-attendance-row { display: grid; grid-template-columns: minmax(220px, 1.2fr) 150px 180px 180px minmax(180px, 1fr); gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--qv3-border); }
.qv3-attendance-row:last-child { border-bottom: 0; }
.qv3-table-head { color: var(--qv3-muted); font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.qv3-select-status { width: 100%; min-height: 40px; border-radius: 12px; padding: 8px 10px; font-weight: 900; border: 1px solid var(--qv3-border); background: #fff; }
.qv3-contact-icons { display: flex; gap: 10px; }
.qv3-contact-icons a { color: var(--qv3-orange-dark); text-decoration: none; font-weight: 900; }
.qv3-note-panel { background: var(--qv3-blue-soft); border: 1px solid #b8dcff; }
.qv3-reco-panel { background: var(--qv3-green-soft); border: 1px solid #bee9c8; }

.qv3-login-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 34px 20px; }
.qv3-login-card { width: min(100%, 460px); padding: 34px; }
.qv3-login-card h1 { margin: 0 0 22px; color: var(--qv3-orange); font-size: 2.8rem; text-align: center; }
.qv3-error { padding: 12px 14px; border-radius: 12px; background: var(--qv3-red-soft); color: var(--qv3-red); font-weight: 800; margin-bottom: 14px; }
.qv3-form-row { margin-bottom: 16px; }
.qv3-form-row label { display: block; margin-bottom: 8px; font-weight: 900; }

.qv3-debug { position: fixed; right: 10px; bottom: 90px; background: #111; color: #fff; padding: 8px 10px; border-radius: 10px; font-size: .8rem; z-index: 999; }
.qv3-bottom-nav { display: none; }

@media (max-width: 1180px) {
  .qv3-event-hero { grid-template-columns: 260px 1fr; }
  .qv3-event-side { grid-column: 1 / -1; }
  .qv3-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .qv3-info-grid, .qv3-profile-grid, .qv3-call-layout { grid-template-columns: 1fr; }
  .qv3-profile-header { grid-template-columns: auto minmax(0, 1fr); }
  .qv3-profile-header .qv3-stat-box { grid-column: auto; }
}

@media (max-width: 860px) {
  .qv3-topbar { padding: 0 16px; min-height: 66px; }
  .qv3-brand { min-width: 0; }
  .qv3-brand strong { font-size: 1.35rem; }
  .qv3-brand small, .qv3-brand-mark { display: none; }
  .qv3-burger { display: inline-flex; align-items: center; justify-content: center; }
  .qv3-nav { display: none; position: absolute; top: 66px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: #222; border-radius: 18px; padding: 12px; box-shadow: var(--qv3-shadow); }
  .qv3-nav.is-open { display: flex; }
  .qv3-nav a, .qv3-user-button { width: 100%; text-align: left; }
  .qv3-user-dropdown { position: static; margin-top: 6px; }
  .qv3-page { padding: 18px 14px 92px; }
  .qv3-hero-inner { grid-template-columns: 1fr; gap: 22px; padding: 54px 20px 42px; }
  .qv3-hero-public { min-height: auto; }
  .qv3-hero-public h1 { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .qv3-feature-row, .qv3-preview-grid, .qv3-dashboard-grid, .qv3-calendar-layout, .qv3-directory-layout { grid-template-columns: 1fr; }
  .qv3-feature-row { margin-top: 16px; }
  .qv3-event-hero { grid-template-columns: 1fr; }
  .qv3-event-visual { min-height: 210px; }
  .qv3-event-main, .qv3-event-side { padding: 18px; }
  .qv3-actions-row { flex-direction: column; }
  .qv3-actions-row .qv3-btn { width: 100%; }
  .qv3-counts { grid-template-columns: repeat(3, 1fr); }
  .qv3-count { padding: 12px 6px; }
  .qv3-count strong { font-size: 1.7rem; }
  .qv3-calendar-grid { gap: 5px; }
  .qv3-day { min-height: 64px; padding: 5px; }
  .qv3-calendar-weekday { font-size: .68rem; padding: 4px; }
  .qv3-event-pill { font-size: 0; padding: 5px; }
  .qv3-event-pill::after { content: attr(data-count); font-size: .68rem; }
  .qv3-detail-card { position: static; }
  .qv3-location-grid { grid-template-columns: 1fr; }
  .qv3-profile-header { grid-template-columns: 1fr; text-align: center; }
  .qv3-profile-header .qv3-avatar-lg { margin: 0 auto; }
  .qv3-quick-actions { grid-template-columns: 1fr; }
  .qv3-bottom-cta { flex-direction: column; align-items: stretch; }
  .qv3-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .qv3-attendance-row { grid-template-columns: 1fr; gap: 8px; }
  .qv3-table-head { display: none; }
  .qv3-contact-icons { justify-content: space-between; }
  .qv3-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 70px; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--qv3-border); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
  .qv3-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: #606875; font-size: .72rem; font-weight: 800; }
  .qv3-bottom-nav a span { font-size: 1.18rem; }
  .qv3-bottom-nav a.is-active { color: var(--qv3-orange); }
}

@media (max-width: 560px) {
  .qv3-page-title { display: block; }
  .qv3-card-pad { padding: 18px; }
  .qv3-event-visual { display: none; }
  .qv3-event-main h1, .qv3-event-main h2 { font-size: 2.25rem; }
  .qv3-meta { gap: 10px; }
  .qv3-counts { gap: 6px; }
  .qv3-count small { font-size: .74rem; }
  .qv3-feature-card { padding: 18px; }
  .qv3-member-grid { grid-template-columns: 1fr; }
  .qv3-summary-strip { display: block; }
  .qv3-profile-header { padding: 18px; }
  .qv3-kpi-row { grid-template-columns: 1fr; }
  .qv3-login-card { padding: 24px; }
}

/* V3 - module covoiturage Discord */
.qv3-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 850;
  border: 1px solid var(--qv3-border);
  background: #fff;
}
.qv3-alert-success { background: var(--qv3-green-soft); color: var(--qv3-green); border-color: #bee9c8; }
.qv3-alert-error { background: var(--qv3-red-soft); color: var(--qv3-red); border-color: #ffcaca; }
.qv3-carpool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.qv3-carpool-form label { display: block; margin-bottom: 8px; font-weight: 900; color: #333b46; }
.qv3-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.qv3-form-wide { grid-column: 1 / -1; }
.qv3-textarea { resize: vertical; min-height: 116px; }
.qv3-btn-block { width: 100%; justify-content: center; }
.qv3-card code { background: #f4f5f7; border: 1px solid var(--qv3-border); border-radius: 8px; padding: 2px 6px; font-size: .85em; }

@media (max-width: 1180px) {
  .qv3-carpool-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .qv3-form-grid { grid-template-columns: 1fr; }
  .qv3-carpool { flex-direction: column; align-items: stretch; }
}
