@font-face {
  font-family: 'Jost';
  src: url('./assets/fonts/jost-latin.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unkempt';
  src: url('./assets/fonts/unkempt-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette modernisée (Fintech sobre + couleurs officielles FO) */
  --color-primary: #e2041b;
  --color-primary-dark: #b50215;
  --color-primary-soft: #fee2e2;
  --color-primary-tint: #fef2f2;

  --color-secondary: #38b6ff;
  --color-blue-text: #0284c7;
  --color-blue-bg: #e0f2fe;

  /* Textes */
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-subtle: #64748b;
  --color-text-inverse: #ffffff;

  /* Surfaçage & Ombres */
  --color-bg-app: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-border-subtle: rgba(15, 23, 42, 0.04);
  --color-border: #e2e8f0;
  --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.05);
  --radius-card: 16px;

  /* Couleurs Sémantiques (Calculatrice de Salaire) */
  --color-success-bg: #dcfce7;
  --color-success-text: #14532d;
  --color-success-border: #16a34a;

  --color-warning-bg: #ffedd5;
  --color-warning-text: #7c2d12;
  --color-warning-border: #ea580c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text-main);
  background-color: #e2e8f0;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

.hidden {
  display: none !important;
}

/* Conteneur Mobile-First centré sur Desktop */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: var(--color-bg-app);
  box-shadow: 0 0 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Dégradé de fondu en bas d'écran sous la Tab Bar */
.app-container::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(96px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(241, 245, 249, 0.96) 35%, rgba(241, 245, 249, 0));
  pointer-events: none;
  z-index: 900;
}

/* Écran d'accueil & d'installation PWA */
.welcome-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-bg-app);
  z-index: 1500;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.welcome-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 44px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  gap: 24px;
}

.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.welcome-logo {
  width: 156px;
  height: auto;
  margin-bottom: 16px;
}

.welcome-title {
  margin: 0 0 8px 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-main);
}

.welcome-slogan {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-text-muted);
}

.welcome-install-guide {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  font-size: 14px;
  color: var(--color-text-main);
}

.welcome-install-guide h2 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

.welcome-install-guide ol,
.welcome-install-guide ul {
  margin: 0;
  padding-left: 18px;
}

.welcome-install-guide li + li {
  margin-top: 6px;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-welcome-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-size: 15px;
}

.btn-welcome-continue {
  width: 100%;
  min-height: 44px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-card);
  color: var(--color-text-main);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* En-tête Fixe */
.app-header {
  height: 76px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-logo-box {
  width: 50px;
  height: 50px;
  padding: 0;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-brand {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.header-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #e2041b;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header-brand-sub {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.21em;
  margin-right: -0.21em;
  margin-top: 2px;
  line-height: 1.15;
}

.btn-header-share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0f2fe;
  color: #0284c7;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn-header-share:hover {
  background-color: #bae6fd;
}

.btn-header-share:active {
  transform: scale(0.95);
}

/* Mini-bannière d'installation PWA (non sticky) */
.pwa-install-banner {
  background-color: #fef2f2;
  border-bottom: 1px solid #fecaca;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pwa-banner-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.35;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-install {
  background-color: #e2041b;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.btn-install:hover {
  background-color: #b50215;
}

.pwa-banner-close {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.pwa-banner-close:hover {
  background-color: rgba(15, 23, 42, 0.06);
}

@keyframes tabViewEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-view.active {
  animation: tabViewEnter 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .tab-view.active {
    animation: none;
  }
}

.share-qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-bottom: 24px;
}

.share-qr-img {
  width: 220px;
  height: 220px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.share-qr-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.share-qr-url-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
  border: 1px solid rgba(2, 132, 199, 0.22);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.share-qr-url-btn:active {
  transform: scale(0.97);
}

.share-qr-url-btn.is-copied {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.share-qr-copy-feedback {
  margin: -4px 0 0 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
}

/* Zone principale */
.app-main {
  flex: 1;
  padding: 18px 16px calc(100px + env(safe-area-inset-bottom, 0px)) 16px;
}

/* Médaillons d'icônes pastel */
.icon-medallion {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-medallion-blue {
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
}

.icon-medallion-red {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.icon-medallion-violet {
  background-color: #ede9fe;
  color: #7c3aed;
}

/* Onglet 1 : Cartes pleine largeur empilées (Sondage & Calculatrice) */
.quick-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-action-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-card);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text-main);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.quick-action-row:active {
  transform: scale(0.99);
}

.quick-action-poll {
  background: linear-gradient(90deg, rgba(254, 242, 242, 0.94) 0%, rgba(254, 242, 242, 0.82) 55%, rgba(254, 226, 226, 0.45) 100%), url('./assets/bg-poll.jpg') right center / cover no-repeat;
  border: 1px solid rgba(226, 4, 27, 0.1);
}

.quick-action-salary {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.48) 100%), url('./assets/bg-calculator.jpg') right center / cover no-repeat;
}

.quick-action-aidants {
  background: linear-gradient(90deg, rgba(250, 245, 255, 0.96) 0%, rgba(245, 243, 255, 0.86) 58%, rgba(237, 233, 254, 0.45) 100%), url('./assets/bg-aidants.jpg') right center / cover no-repeat;
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.quick-action-poll .icon-medallion-poll {
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 4, 27, 0.14);
  padding: 5px;
}

.quick-action-salary .icon-medallion-salary {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(2, 132, 199, 0.14);
  padding: 5px;
}

.quick-action-aidants .icon-medallion-violet {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #7c3aed;
}

.quick-action-poll .icon-medallion-poll img,
.quick-action-salary .icon-medallion-salary img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quick-action-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-action-poll-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.quick-action-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.25;
}

.quick-action-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.quick-action-poll .quick-action-sub {
  color: var(--color-text-main);
  font-weight: 500;
}

.quick-action-check,
.row-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-subtle);
}

.quick-action-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #16a34a;
  color: #ffffff;
}

/* Recherche instantanée */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-infos {
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--color-text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 40px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  background-color: var(--color-bg-card);
  color: var(--color-text-main);
  font-size: 14px;
  font-family: inherit;
  box-shadow: var(--shadow-card);
}

.search-input::placeholder {
  color: var(--color-text-subtle);
}

.search-input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

.search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--color-text-subtle);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

/* Filtres par Catégories */
.pills-nav {
  position: relative;
  margin-bottom: 14px;
}

.pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.pills-row::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  flex-shrink: 0;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 8px 8px;
  font-size: 11.5px;
  letter-spacing: -0.02em;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pill-btn.active {
  background-color: var(--color-text-main);
  color: var(--color-text-inverse);
  border-color: var(--color-text-main);
}

/* Liste Infos & Droits */
.infos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  text-align: left;
  width: 100%;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.12s ease;
}

.info-card:active {
  transform: scale(0.99);
}

.info-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.info-card-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
}

.badge-category.is-actualites {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge-category.is-cse {
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
}

.badge-category.is-nao {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge-category.is-permanence {
  background-color: #f1f5f9;
  color: #334155;
}

.badge-category.is-visite {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-category.is-negociations {
  background-color: #fef3c7;
  color: #b45309;
}

.info-date {
  font-size: 12px;
  color: var(--color-text-subtle);
}

.info-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-main);
}

.info-card-summary {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.badge-pdf {
  background-color: var(--color-bg-app);
  color: var(--color-text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.empty-state {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 16px;
  text-align: center;
  color: var(--color-text-muted);
}

/* Sondages dans Modale */
.poll-details-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poll-banner {
  background-color: var(--color-primary-tint);
  border: 1px solid rgba(226, 4, 27, 0.12);
  border-radius: var(--radius-card);
  padding: 16px;
  color: var(--color-text-main);
}

.poll-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.poll-badge-status {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.poll-badge-perimeter {
  background-color: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
}

.poll-badge-voted {
  background-color: var(--color-success-bg);
  color: var(--color-success-text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.poll-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
}

.poll-desc {
  margin: 0 0 14px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.btn-poll-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-poll-voted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  background-color: var(--color-bg-card);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.poll-voted-confirmation {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: var(--color-success-bg);
  color: var(--color-success-text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Questionnaire QCM interne */
.poll-native-body {
  padding-top: 4px;
}

.qcm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qcm-poll-desc {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.qcm-question-block {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: #f8fafc;
}

.qcm-question-legend {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
}

.qcm-question-hint {
  font-size: 12px;
  color: var(--color-text-subtle);
  margin: 4px 0 10px 0;
}

.qcm-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qcm-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.qcm-option-item.is-selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-tint);
}

.qcm-option-item input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.qcm-option-text {
  font-size: 14px;
  color: var(--color-text-main);
  line-height: 1.35;
}

.qcm-error-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
}

.btn-poll-action:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Formulaire Calculatrice de Salaire (Modale) */
.salary-modal-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-blue {
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.salary-modal-subtitle {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.grid-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.btn-grid {
  border: 1px solid var(--color-border);
  background: var(--color-bg-app);
  color: var(--color-text-main);
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.btn-grid.active {
  border-color: var(--color-blue-text);
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
}

.gender-selector {
  display: flex;
  gap: 8px;
}

.btn-gender {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-app);
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.btn-gender.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
}

.salary-select,
.salary-input {
  width: 100%;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-main);
  background-color: var(--color-bg-card);
  font-family: inherit;
}

.salary-input {
  font-size: 17px;
}

.salary-select:focus,
.salary-input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

.btn-action-primary {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

.btn-action-primary:disabled {
  background-color: #cbd5e1;
  color: #475569;
  cursor: not-allowed;
}

.salary-result {
  padding: 14px;
  border-radius: 12px;
  margin-top: 12px;
}

.result-success {
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
}

.result-warning {
  background-color: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-text);
}

.result-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.result-details {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.btn-reset {
  width: 100%;
  background-color: var(--color-bg-card);
  color: var(--color-text-main);
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.privacy-note {
  margin: 12px 0 0 0;
  font-size: 12px;
  color: var(--color-text-subtle);
}

/* Modale Questionnaire Aidant */
.aidant-header-badge {
  background-color: #f3e8ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.aidant-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aidant-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aidant-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.aidant-progress-pct {
  color: #6d28d9;
  font-weight: 700;
}

.aidant-progress-track {
  width: 100%;
  height: 8px;
  background-color: #ede9fe;
  border-radius: 999px;
  overflow: hidden;
}

.aidant-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.aidant-card {
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aidant-intro-badge {
  align-self: flex-start;
  background-color: #f3e8ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.aidant-screen-title,
.aidant-question-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-main);
}

.aidant-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.aidant-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.aidant-choice-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-bg-card);
  color: var(--color-text-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.aidant-choice-btn:active {
  transform: scale(0.98);
}

.aidant-choice-yes:hover,
.aidant-choice-yes.is-selected {
  background-color: #ecfdf5;
  border-color: #16a34a;
  color: #15803d;
}

.aidant-choice-no:hover,
.aidant-choice-no.is-selected {
  background-color: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
}

.aidant-back-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 6px 2px;
  color: var(--color-text-subtle);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.aidant-back-btn:hover {
  color: var(--color-text-main);
}

.aidant-result-card {
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aidant-result-card.is-positive {
  background-color: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.aidant-result-card.is-neutral {
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
}

.aidant-result-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-main);
}

.aidant-result-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.aidant-score-pill {
  align-self: flex-start;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-main);
}

.aidant-resources {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aidant-resources-title {
  margin: 4px 0 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
}

.aidant-resources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aidant-resource-link {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  color: #5b21b6;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.aidant-resource-link:hover {
  border-color: #c4b5fd;
  text-decoration: underline;
}

.aidant-start-btn,
.aidant-restart-btn {
  margin-top: 2px;
}

/* Onglet 2 : Agenda Syndical */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.agenda-card-next {
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
}

.agenda-card-past {
  opacity: 0.72;
}

.agenda-card-past .agenda-day {
  color: var(--color-text-muted);
}

.agenda-date-box {
  width: 54px;
  min-width: 54px;
  height: 62px;
  border-radius: 12px;
  background-color: var(--color-bg-app);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.agenda-day {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.agenda-month {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-main);
  margin-top: 3px;
}

.agenda-year {
  font-size: 10px;
  color: var(--color-text-subtle);
}

.agenda-content {
  flex: 1;
  min-width: 0;
}

.agenda-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.agenda-content h2 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-main);
}

.agenda-desc {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Onglet 3 : Contacter FO */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(0, 145, 90, 0.14);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease;
}

.contact-green-1 {
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.94) 0%, rgba(236, 253, 245, 0.8) 55%, rgba(16, 185, 129, 0.28) 100%), url('./assets/bg-contact-green.jpg') right center / cover no-repeat;
}

.contact-green-2 {
  background: linear-gradient(90deg, rgba(230, 245, 239, 0.94) 0%, rgba(230, 245, 239, 0.8) 55%, rgba(0, 145, 90, 0.3) 100%), url('./assets/bg-contact-green.jpg') right center / cover no-repeat;
}

.contact-green-3 {
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.94) 0%, rgba(220, 252, 231, 0.82) 55%, rgba(5, 150, 105, 0.28) 100%), url('./assets/bg-contact-green.jpg') right center / cover no-repeat;
}

.contact-green-4 {
  background: linear-gradient(90deg, rgba(240, 253, 250, 0.94) 0%, rgba(204, 251, 241, 0.82) 55%, rgba(13, 148, 136, 0.28) 100%), url('./assets/bg-contact-green.jpg') right center / cover no-repeat;
}

.icon-medallion-green-1 {
  background-color: rgba(209, 250, 229, 0.95);
  color: #00915a;
}

.icon-medallion-green-2 {
  background-color: rgba(220, 252, 231, 0.95);
  color: #047857;
}

.icon-medallion-green-3 {
  background-color: rgba(187, 247, 208, 0.85);
  color: #059669;
}

.icon-medallion-green-4 {
  background-color: rgba(204, 251, 241, 0.95);
  color: #0f766e;
}

.contact-card:active {
  transform: scale(0.99);
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-info h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.25;
}

.contact-info p {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.contact-phone {
  font-weight: 600;
  color: var(--color-text-main) !important;
}

.info-callout {
  background-color: rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.callout-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
}

.callout-text strong {
  color: var(--color-text-main);
}

.contact-social-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 300px;
}

.social-linkedin-link {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-card);
  color: #0a66c2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.12s ease;
}

.social-podcast-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-linkedin-link:active {
  transform: scale(0.96);
}

.contact-social-slogan {
  margin: 0;
  max-width: 230px;
  font-family: 'Unkempt', cursive, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
}

.contact-social-brand {
  color: #0a66c2;
  font-weight: 700;
}

/* Onglet 4 : Espace Adhérent */
.member-hero-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  margin-bottom: 14px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.92) 0%, rgba(224, 242, 254, 0.78) 55%, rgba(56, 182, 255, 0.34) 100%), url('./assets/bg-adherer.jpg') right center / cover no-repeat;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 182, 255, 0.28);
  color: var(--color-text-main);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(56, 182, 255, 0.14);
}

.member-hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.member-hero-desc {
  margin: 0;
  font-size: 17.5px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text-main);
}

.member-hero-logo-wrap {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 9px;
  border: none;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.member-hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.member-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: var(--color-blue-text);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.14);
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-row-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease;
}

.member-row-card > * {
  position: relative;
  z-index: 1;
}

.member-row-card:active {
  transform: scale(0.99);
}

.member-row-efo,
.member-row-mystore,
.member-row-afoc,
.member-row-presse,
.member-row-cadres {
  gap: 16px;
}

.member-row-efo::before,
.member-row-mystore::before,
.member-row-afoc::before,
.member-row-presse::before,
.member-row-cadres::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(-1);
  pointer-events: none;
}

.member-row-efo {
  border: 1px solid rgba(2, 132, 199, 0.16);
}

.member-row-efo::before {
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.94) 0%, rgba(224, 242, 254, 0.82) 55%, rgba(56, 189, 248, 0.28) 100%), url('./assets/bg-efo.jpg') right center / cover no-repeat;
}

.member-row-logo-wrap {
  width: 60px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 8px;
  border: none;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-row-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.member-row-efo .member-row-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-main);
  white-space: normal;
  overflow: visible;
}

.member-row-logo-wrap-rose {
  padding: 4px 6px;
  box-shadow: 0 6px 16px rgba(226, 4, 27, 0.14);
}

.member-row-mystore {
  border: 1px solid rgba(226, 4, 27, 0.14);
}

.member-row-mystore::before {
  background: linear-gradient(90deg, rgba(255, 245, 245, 0.94) 0%, rgba(254, 226, 226, 0.82) 55%, rgba(251, 113, 133, 0.28) 100%), url('./assets/bg-mystore.jpg') right center / cover no-repeat;
}

.member-row-mystore .member-row-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-main);
  white-space: normal;
  overflow: visible;
  line-height: 1.35;
}

.member-row-afoc {
  border: 1px solid rgba(2, 132, 199, 0.16);
}

.member-row-afoc::before {
  background: linear-gradient(90deg, rgba(240, 253, 250, 0.94) 0%, rgba(236, 254, 255, 0.82) 55%, rgba(34, 211, 238, 0.28) 100%), url('./assets/bg-afoc.jpg') right center / cover no-repeat;
}

.member-row-afoc .member-row-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-main);
  white-space: normal;
  overflow: visible;
  line-height: 1.35;
}

.member-row-presse {
  border: 1px solid rgba(190, 18, 60, 0.14);
}

.member-row-presse::before {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.94) 0%, rgba(255, 228, 230, 0.82) 55%, rgba(244, 63, 94, 0.26) 100%), url('./assets/bg-presse.jpg') right center / cover no-repeat;
}

.member-row-presse .member-row-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-main);
  white-space: normal;
  overflow: visible;
  line-height: 1.35;
}

.member-row-cadres {
  border: 1px solid rgba(29, 78, 216, 0.16);
  padding-right: 12px;
}

.member-row-cadres::before {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.94) 0%, rgba(219, 234, 254, 0.82) 55%, rgba(37, 99, 235, 0.28) 100%), url('./assets/bg-cadres.jpg') right center / cover no-repeat;
}

.member-row-logo-wrap-cadres {
  padding: 5px;
}

.member-row-logo-wrap-cadres img {
  border-radius: 9px;
}

.member-row-cadres .member-row-desc {
  font-size: 13.5px;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--color-text-main);
  white-space: normal;
  overflow: visible;
  line-height: 1.35;
}

.member-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-row-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.25;
}

.member-row-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barre de Navigation Inférieure Flottante */
.bottom-nav {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 448px;
  height: 64px;
  padding: 4px 6px;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 54px;
  background: transparent;
  border: none;
  border-radius: 18px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  padding: 4px 2px;
  gap: 3px;
  font-family: inherit;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-item.active {
  color: var(--color-blue-text);
  background-color: var(--color-blue-bg);
  font-weight: 600;
}

.nav-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  transition: transform 0.16s ease;
}

.nav-item.active .nav-icon-img {
  transform: scale(1.05);
}

.nav-badge-dot {
  display: block;
  position: absolute;
  top: 5px;
  right: 7px;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(226, 4, 27, 0.35);
}

/* Modales (Article, Sondage, Calculatrice) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  background-color: var(--color-bg-card);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}

.modal-sheet-tall {
  height: 88dvh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.modal-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-bg-app);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.article-date {
  display: block;
  font-size: 12px;
  color: var(--color-text-subtle);
  margin-bottom: 6px;
}

.modal-title {
  margin: 0 0 14px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
}

.article-full-content p {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-main);
}

.article-full-content ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.article-full-content li {
  margin-bottom: 6px;
}

.modal-footer {
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--color-bg-card);
}

.btn-share {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background-color: var(--color-bg-app);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.poll-iframe-wrap {
  flex: 1;
  background-color: var(--color-bg-app);
}

.poll-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Modale Magazine Debout (numéro du mois en cours) */
.modal-header-close-only {
  justify-content: flex-end;
  border-bottom: none;
  padding: 12px 16px 2px 16px;
}

.presse-modal-body {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  padding-bottom: 24px;
}

.magazine-featured {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.94) 0%, rgba(255, 228, 230, 0.82) 55%, rgba(244, 63, 94, 0.28) 100%), url('./assets/bg-presse.jpg') right center / cover no-repeat;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 4, 27, 0.18);
  box-shadow: 0 8px 24px rgba(226, 4, 27, 0.12);
}

.magazine-featured-title {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-main);
}

.magazine-featured-date {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}

.magazine-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(226, 4, 27, 0.14);
  transition: transform 0.12s ease;
}

.magazine-featured-cta:active {
  transform: scale(0.98);
}

/* Mentions légales */
.legal-footer {
  margin-top: 20px;
  text-align: center;
}

.legal-link-btn {
  background: transparent;
  border: none;
  color: var(--color-text-subtle);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 12px;
  font-family: inherit;
}

.legal-content h3 {
  margin: 14px 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.legal-content ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.legal-content li + li {
  margin-top: 6px;
}

/* Toast notification */
.app-toast {
  position: fixed;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-text-main);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 3000;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
}
