/* Site vitrine (home, events, prices, contact, account, legal) — charte Evan */

/* ---------- Home hero ---------- */
.contentblock1 {
  display: flex; flex-direction: row; height: calc(100vh - var(--navbar-height)); width: 100%;
  overflow: hidden; background-color: var(--color-bg-main);
}
.image1wrapper { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image1wrapper img { width: 100%; height: 100%; object-fit: cover; }
.landingcontent {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 64px var(--gutter); background: var(--gradient-hero); color: var(--color-text-dark);
}
.landingtitle { font-size: clamp(28px, 4vw, 48px); font-weight: 700; margin-bottom: 24px; line-height: 1.2; }
.landingdesc { font-size: clamp(16px, 2vw, 20px); margin-bottom: 32px; line-height: 1.6; max-width: 600px; }
.landingbuttons { display: flex; flex-wrap: wrap; gap: 16px; }
.contentblock1 .outlinebutton { color: var(--color-text-dark); }
.contentblock1 .outlinebutton:hover { color: var(--color-text-accent); }

@media (max-width: 900px) {
  .contentblock1 { flex-direction: column; height: auto; }
  .image1wrapper { height: 40vh; }
  .landingcontent { padding: 32px var(--gutter); gap: 8px; }
}

/* ---------- Features ---------- */
.contentblock2 { padding: 64px var(--gutter); background-color: var(--color-bg-main); }
.featuresTitle { font-size: clamp(32px, 5vw, 52px); font-weight: 700; margin-bottom: 24px; text-align: center; }
.featuresDesc { font-size: clamp(18px, 2vw, 22px); max-width: 720px; margin: 0 auto 32px; color: var(--color-text-muted); line-height: 1.7; text-align: center; }
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.feature {
  background-color: var(--color-bg-main); border: 1px solid var(--color-border-light); border-radius: var(--radius-card);
  padding: 32px 24px; display: flex; flex-direction: column; flex: 1 1 260px; max-width: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1); }
.featureIcon { height: 40px; width: 40px; margin-bottom: 16px; }
.featureTitle { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.featureDesc { font-size: 17px; margin-bottom: 32px; line-height: 1.6; color: var(--color-text-muted-2); }
.feature .textbutton { margin-top: auto; font-size: 16px; font-weight: 500; color: var(--color-text-accent); align-self: flex-start; }
.feature .textbutton:hover { color: var(--color-bg-button-hover); }

/* ---------- Events block ---------- */
.contentblock3 { padding: 64px var(--gutter); background-color: var(--color-bg-panel); text-align: center; }
.eventsTitle { font-size: clamp(32px, 5vw, 52px); font-weight: 700; margin-bottom: 24px; text-align: center; }
.eventsDesc { font-size: clamp(18px, 2vw, 22px); max-width: 700px; margin: 0 auto 32px; text-align: center; color: var(--color-text-muted); line-height: 1.6; }
.events { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; padding-bottom: 32px; }
.event {
  flex: 1 1 calc(33.333% - 32px); min-width: 280px; max-width: 500px; background-color: var(--color-bg-main);
  border: 1px solid var(--color-border-muted); border-radius: var(--radius-event); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: left; text-decoration: none; color: inherit;
}
.event:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }
.eventBanner { width: 100%; height: 160px; background-color: #ccc; background-size: cover; background-position: center; position: relative; background-image: var(--gradient-hero); }
.eventTag { position: absolute; top: 0; left: 0; padding: 6px 12px; font-size: 12px; font-weight: 600; background-color: var(--color-bg-button); color: var(--color-text-dark); border-radius: 0 0 8px 0; z-index: 2; }
.eventTitle { font-size: 18px; font-weight: 600; margin: 16px 16px 8px; }
.eventDesc { font-size: 14px; margin: 0 16px 12px; color: var(--color-text-muted-3); line-height: 1.4; }
.eventDate, .eventDistance { font-size: 13px; margin: 0 16px 4px; color: #999999; }
.event .textbutton { margin: 16px; font-weight: 500; color: var(--color-text-accent); align-self: start; }
.event .textbutton:hover { color: var(--color-bg-button-hover); }
.contentblock3 > .flatbutton { display: inline-block; margin: auto; }
.empty { color: var(--color-text-muted); padding: 32px; }

/* ---------- Events page header + filters ---------- */
.eventsHeader { background: var(--gradient-hero); color: white; text-align: center; min-height: calc(70vh - var(--navbar-height)); padding: 4rem var(--gutter); }
.eventsHeaderAll { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.eventsHeaderContent { max-width: 960px; margin: 0 auto; }
.eventsHeaderTitle { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.eventsHeaderSubtitle { font-size: 1.2rem; font-weight: 300; }
.eventsFilters {
  display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem auto 0; padding: 1rem; max-width: 960px; width: 100%;
  background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); justify-content: space-between; align-items: flex-end;
}
.filterGroup { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 150px; color: var(--color-text-light); text-align: left; }
.filterGroup label { font-weight: 600; margin-bottom: 0.5rem; }
.filterGroup select, .filterGroup input { padding: 0.5rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
.filterGroup input:focus, .filterGroup select:focus { border-color: var(--color-text-accent); outline: none; }
.distance-range { display: flex; align-items: center; gap: 8px; width: 100%; }
.distanceInputWrapper { position: relative; display: inline-block; width: 100%; }
.distanceInputWrapper input { padding-right: 40px; width: 100%; }
.unit-label { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); pointer-events: none; color: #666; font-weight: 600; font-size: 1rem; }
@media (max-width: 600px) {
  .eventsHeaderTitle { font-size: 1.8rem; }
  .eventsHeaderSubtitle { font-size: 1rem; }
  .eventsFilters { flex-direction: column; align-items: stretch; }
  .filterGroup { flex: 0 0 auto; min-width: 0; }
  .eventsHeader { min-height: 0; padding: 2.5rem var(--gutter); }
}

/* ---------- Pricing ---------- */
.pricing-section { min-height: calc(100vh - var(--navbar-height)); display: flex; align-items: center; justify-content: center; padding: 64px clamp(16px, 6vw, 120px); background: var(--gradient-hero); }
.pricing-container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; max-width: 1200px; width: 100%; }
.pricing-card {
  background-color: #fff; border: 1px solid var(--color-border-light); border-radius: 12px; box-shadow: 0 4px 12px var(--color-shadow);
  flex: 1 1 280px; max-width: 360px; padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 6px 20px var(--color-shadow); }
.pricing-card.featured { border: 2px solid var(--color-bg-button); transform: scale(1.03); }
@media (max-width: 700px) {
  .pricing-section { padding: 32px 16px; }
  .pricing-card { padding: 24px; }
  .pricing-card.featured { transform: none; }
}
.pricing-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.pricing-subtitle { font-size: 1rem; color: #666; margin-bottom: 24px; }
.pricing-price { font-size: 2rem; font-weight: 700; color: var(--color-text-accent); margin-bottom: 24px; }
.pricing-price small { font-size: 1rem; color: #666; font-weight: 400; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 24px; width: 100%; }
.pricing-features li { margin-bottom: 12px; color: #333; font-weight: 500; }
.pricing-card .flatbutton { width: 100%; margin-top: auto; }

/* ---------- Contact ---------- */
.contact-section { min-height: calc(100vh - var(--navbar-height)); background: var(--gradient-hero); display: flex; align-items: center; justify-content: center; padding: 48px clamp(16px, 6vw, 130px); }
.contact-container { display: flex; flex-direction: row; gap: 48px; width: 100%; max-width: 1440px; flex-wrap: wrap; }
.contact-left { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.contact-card { background: #fff; border: 1px solid var(--color-border-light); border-radius: 12px; padding: 16px 20px; flex: 1 1 200px; min-width: 0; box-shadow: 0 2px 8px var(--color-shadow); }
.contact-card h3 { font-size: 16px; font-weight: 600; color: var(--color-text-accent); margin-bottom: 8px; }
.contact-card p { font-size: 14px; line-height: 1.6; color: var(--color-text-light); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.contact-form input, .contact-form textarea { padding: 12px 16px; font-size: 15px; border: 1px solid var(--color-border-light); border-radius: 8px; resize: vertical; background: #fff; }
.contact-form textarea { min-height: 120px; width: 100%; }
.contact-form button { align-self: flex-start; padding: 12px 24px; font-size: 16px; border: none; }
.contact-map { flex: 1 1 400px; min-width: 0; min-height: 400px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px var(--color-shadow); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-form-wrapper { background: #ffffff; border: 1px solid var(--color-border-light); border-radius: 16px; padding: 32px; box-shadow: 0 4px 12px var(--color-shadow); width: 100%; max-width: 800px; }
@media (max-width: 960px) {
  .contact-container { flex-direction: column; }
  .contact-map { height: 300px; width: 100%; }
  .contact-form button { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  .contact-section { padding: 24px 12px; }
  .contact-form-wrapper { padding: 16px; }
}

/* ---------- Account dashboard ---------- */
.dashboard { display: flex; min-height: calc(100vh - var(--navbar-height)); }
.sidebar {
  width: 360px; background: var(--color-bg-sidebar); color: #e0e0e0; display: flex; flex-direction: column;
  justify-content: space-between; padding: 24px; position: relative; transition: transform 0.3s ease-in-out; flex-shrink: 0;
}
.sideseparator { height: 0; border: 1px solid #ffffff3b; margin-top: 8px; margin-bottom: 16px; }
.sidebar-top, .sidebar-bottom { display: flex; flex-direction: column; gap: 12px; }
.sidebutton {
  background-color: transparent; border: 1px solid #ffffff3b; padding: 10px 16px; border-radius: 8px; text-align: left;
  font-weight: 500; cursor: pointer; transition: all 0.3s ease; color: #e0e0e0; text-decoration: none; display: block; width: 100%;
}
.sidebutton:hover, .sidebutton.active { border-color: #1FA732; color: #1FA732; }
.sidetitle { text-align: center; font-weight: 600; font-size: 16pt; }
.maincontent { flex: 1; padding: 32px clamp(16px, 6vw, 96px); background-color: var(--color-bg-main); min-width: 0; }
.section-title { font-size: 24px; font-weight: 600; }
.section-separator { height: 2px; background-color: var(--color-border-muted); margin-bottom: 24px; }
.mainheader { display: flex; align-items: center; gap: 12px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.mainheader .section-title { flex: 1 1 auto; min-width: 0; }
.sidebar-toggle { display: none; background: var(--color-bg-button); color: var(--color-text-dark); border: none; border-radius: 8px; padding: 8px 12px; font-size: 20px; cursor: pointer; }
.backbutton { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: var(--color-bg-button); color: var(--color-text-dark); transition: all 0.3s ease; }
.backbutton:hover { background: var(--color-bg-button-hover); }
.backbutton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-overlay { display: none; }
@media (max-width: 900px) {
  .dashboard { flex-direction: column; }
  .sidebar {
    position: fixed; top: var(--navbar-height); left: 0; height: calc(100vh - var(--navbar-height)); width: 280px; z-index: 302;
    transform: translateX(-100%); background-color: #1e1e1e; overflow-y: auto;
  }
  .sidebar.active { transform: translateX(0); box-shadow: 4px 0 12px var(--color-shadow); }
  .maincontent { padding: 20px 16px; }
  .section-title { font-size: 20px; }
  .sidebar-toggle { display: inline-block; }
  .sidebar-overlay {
    display: block; position: fixed; top: var(--navbar-height); left: 0; width: 100vw; height: calc(100vh - var(--navbar-height));
    background: var(--color-bg-overlay); opacity: 0; visibility: hidden; z-index: 301; transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .sidebar-overlay.active { opacity: 1; visibility: visible; }
}
.trail-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; }
.trail-pager { padding-bottom: 32px; }
.trail-pager .trail-per { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 600px) {
  .trail { padding: 14px 16px; }
  .dropzone { padding: 24px 16px; }
  .card { padding: 16px; }
}
.trail {
  width: 100%; background-color: var(--color-bg-main); border: 1px solid var(--color-border-muted); border-radius: 12px;
  padding: 16px 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); display: flex; flex-direction: row; justify-content: space-between;
  align-items: center; gap: 16px; transition: box-shadow 0.3s ease, transform 0.2s ease; flex-wrap: wrap;
}
.trail:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); transform: translateY(-2px); }
.trail { position: relative; cursor: pointer; }
/* The title link covers the whole card; the action buttons stay above it. */
.trailLink { color: inherit; text-decoration: none; }
.trailLink::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.trailPoster { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--color-bg-panel); }
.trailInfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.trailTitle { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trailIcon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--color-bg-panel); color: var(--color-text-accent); position: relative; z-index: 1; }
.trailDesc { font-size: 14px; color: #666; }
.trailMeta { font-size: 13px; color: #999; display: flex; gap: 16px; flex-wrap: wrap; }
.trailActions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.iconbutton { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--color-text-muted-2); cursor: pointer; }
.iconbutton:hover { background: var(--color-bg-panel); }
.iconbutton.danger:hover { color: var(--color-danger); }
.trailActions form { display: inline; }

/* ---------- Two-column card rows (race page) ---------- */
.card-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.card-row > .card { flex: 1 1 280px; min-width: 0; }
.card-row > .card.wide { flex: 2 1 320px; }
.card-narrow { max-width: 560px; }
.card-medium { max-width: 720px; }
.qr-box { max-width: 220px; }
.thumb-preview { border-radius: 8px; margin-top: 8px; display: block; max-width: 300px; max-height: 200px; width: auto; height: auto; object-fit: contain; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 auto; min-width: 0; }
.inline-form .input.num { width: 70px; flex: 0 0 70px; }
.inline-form .input.name { width: 220px; flex: 1 1 140px; min-width: 0; }
.inline-form .input.wide { width: 320px; flex: 1 1 200px; min-width: 0; }
.category-row { align-items: center; border-bottom: 1px solid var(--color-border-muted); padding-bottom: 8px; }

/* ---------- Drop zone (GPX upload) ---------- */
.dropzone {
  border: 2px dashed var(--color-border-light); border-radius: var(--radius-card); padding: 40px 24px; text-align: center;
  color: var(--color-text-muted-2); background: var(--color-bg-panel); transition: all 0.2s ease; cursor: pointer;
}
.dropzone.dragover, .dropzone:hover { border-color: var(--color-text-accent); background: var(--color-bg-hover-dark); }
.dropzone.uploading { pointer-events: none; opacity: .7; border-color: var(--color-text-accent); }
.dropzone strong { color: var(--color-text-light); display: block; margin-bottom: 8px; font-size: 18px; }
.dropzone input[type="file"] { display: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: 48px var(--gutter); line-height: 1.7; }
.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal .mainheader { margin-bottom: 24px; flex-wrap: nowrap; }
.legal .mainheader h1 { margin-bottom: 0; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--color-text-muted-2); }
.legal ul { margin-left: 20px; }

/* ---------- Waiting page (GPX processing) ---------- */
.processing { max-width: 640px; margin: 0 auto; padding: 64px var(--gutter); text-align: center; }
.processing h1 { font-size: 1.8rem; margin-bottom: 8px; }
.processing .steps { text-align: left; margin: 24px auto 0; display: inline-block; list-style: none; }
.processing .steps li { padding: 4px 0; color: var(--color-text-muted); }
.processing .steps li.done { color: var(--color-text-accent); }
.processing .steps li.done::before { content: "✓ "; }
.processing .steps li.current { color: var(--color-text-light); font-weight: 600; }
.processing .steps li.current::before { content: "… "; }
.processing .steps li::before { content: "○ "; }
.filterGroup.filterSubmit { flex: 0 0 auto; min-width: 0; }

/* ---------- Profile page ---------- */
.profile { max-width: 960px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }
.profile-hero {
  display: flex; align-items: center; gap: 20px 24px; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--radius-card);
  background: var(--gradient-hero); color: var(--color-text-dark); box-shadow: 0 8px 24px rgba(22, 55, 52, 0.18);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--color-bg-button); color: #fff; font-size: 26px; font-weight: 700; letter-spacing: 1px;
  border: 3px solid rgba(255, 255, 255, 0.35);
}
.profile-identity { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-name { font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.profile-email { color: rgba(255, 255, 255, 0.75); font-size: 15px; overflow-wrap: anywhere; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.profile-hero .badge { background: rgba(255, 255, 255, 0.14); color: #fff; }
.profile-hero .badge.green { background: rgba(31, 167, 50, 0.9); }
.profile-stats { display: flex; gap: 12px; }
.profile-stat {
  display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); text-decoration: none; transition: background 0.3s ease;
}
.profile-stat:hover { background: rgba(255, 255, 255, 0.2); }
.profile-stat strong { font-size: 24px; font-weight: 700; line-height: 1.2; }
.profile-stat span { font-size: 12px; color: rgba(255, 255, 255, 0.75); }

.settings {
  gap: 0; background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-form);
  box-shadow: 0 2px 8px var(--color-shadow); overflow: hidden;
}
.settings-errors { padding: 20px 28px 0; }
.settings-section { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px 40px; padding: 28px; }
.settings-section + .settings-section { border-top: 1px solid var(--color-border-muted); }
.settings-intro h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.settings-intro p { font-size: 14px; color: var(--color-text-muted-2); }
.settings-fields { display: flex; flex-direction: column; gap: 16px; }
.settings-footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 20px 28px; background: var(--color-bg-navbar); border-top: 1px solid var(--color-border-muted);
}
.settings-current { flex: 0 1 340px; min-width: 0; }
.settings-footer .flatbutton { padding: 10px 22px; }

.danger-zone {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 20px 28px; border: 1px solid #f5b5b5; border-radius: var(--radius-form); background: #fffafa;
}
.danger-zone > div { flex: 1 1 300px; min-width: 0; }
.danger-zone h3 { font-size: 16px; font-weight: 600; color: var(--color-danger); margin-bottom: 4px; }
.danger-zone p { font-size: 14px; color: var(--color-text-muted-2); }
.danger-button { border-color: var(--color-danger); color: var(--color-danger); }
.danger-button:hover { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }

@media (max-width: 760px) {
  .profile-hero { padding: 20px; }
  .profile-avatar { width: 56px; height: 56px; font-size: 20px; }
  .profile-stats { width: 100%; }
  .profile-stat { flex: 1; }
  .settings-section { grid-template-columns: 1fr; padding: 20px; }
  .settings-errors { padding: 16px 20px 0; }
  .settings-footer, .danger-zone { padding: 16px 20px; }
  .settings-current { flex-basis: 100%; }
  .settings-footer .flatbutton, .danger-zone form, .danger-zone .danger-button { width: 100%; }
}

/* ---------- Modal (<dialog>, modal_controller.js) ---------- */
.modal { margin: auto; inset: 0; border: 0; border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); color: var(--color-text-light); background: var(--color-bg-main); }
.modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.modal-box { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h3 { font-size: 18px; font-weight: 600; margin: 0; }
.modal-close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--color-text-muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.checklist { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding: 8px 12px; border: 1px solid var(--color-border-light); border-radius: 8px; }
.tabs-bar { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--color-border-muted); overflow-x: auto; }
.tabs-bar a {
  padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--color-text-muted-2); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs-bar a:hover { color: var(--color-text-accent); }
.tabs-bar a.active { color: var(--color-text-accent); border-bottom-color: var(--color-text-accent); }
.tabs-bar .count { font-size: 12px; font-weight: 500; color: var(--color-text-muted); margin-left: 4px; }

/* ---------- Home « En savoir plus » service dialogs ---------- */
.service-modal-body { font-size: 16px; line-height: 1.6; color: var(--color-text-muted-2); margin-bottom: 16px; }
.service-modal-body p { margin: 0 0 12px; }
.service-modal-body ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.service-modal-body strong { color: var(--color-text-light); font-weight: 600; }
.service-modal .modal-actions { flex-wrap: wrap; }
.service-modal:focus-visible { outline: none; }
