/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

:root {
  /* Régimes */
  --regime-monarchie_absolue:      #7F77DD;
  --regime-monarchie_absolue-bg:   #EEEDFE;
  --regime-revolution:             #888780;
  --regime-revolution-bg:          #F1EFE8;
  --regime-consulat:               #A86B0A;
  --regime-consulat-bg:            #FEF3DC;
  --regime-premier_empire:         #D85A30;
  --regime-premier_empire-bg:      #FAECE7;
  --regime-restauration:           #BA7517;
  --regime-restauration-bg:        #FAEEDA;
  --regime-monarchie_juillet:      #378ADD;
  --regime-monarchie_juillet-bg:   #E6F1FB;
  --regime-deuxieme_republique:    #1D9E75;
  --regime-deuxieme_republique-bg: #E1F5EE;
  --regime-second_empire:          #D85A30;
  --regime-second_empire-bg:       #FAECE7;
  --regime-troisieme_republique:   #1D9E75;
  --regime-troisieme_republique-bg:#E1F5EE;
  --regime-etat_francais:          #8B2020;
  --regime-etat_francais-bg:       #F5E0E0;
  --regime-gprf:                   #2E86AB;
  --regime-gprf-bg:                #E0F0F8;
  --regime-quatrieme_republique:   #27AE60;
  --regime-quatrieme_republique-bg:#E1F5EE;
  --regime-cinquieme_republique:   #16A085;
  --regime-cinquieme_republique-bg:#E0F5EF;
  --regime-regence:                #9B7FC4;
  --regime-regence-bg:             #F0ECF8;

  /* Transitions */
  --transition-succession:    #1D9E75;
  --transition-election:      #378ADD;
  --transition-coup-etat:     #D85A30;
  --transition-revolution:    #E24B4A;
  --transition-abdication:    #BA7517;
  --transition-demission:     #888780;
  --transition-mort:          #3d3d3a;
  --transition-defaite:       #9a9890;
  --transition-vote:          #6B5DD3;

  /* UI */
  --bg:              #F8F7F4;
  --bg-white:        #FFFFFF;
  --text-primary:    #1a1a18;
  --text-secondary:  #5a5a56;
  --text-tertiary:   #8a8a84;
  --border:          #e0dfd8;
  --border-light:    #eeedea;
  --shadow:          0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg:       0 4px 12px rgba(0,0,0,0.12);
  --radius:          6px;
  --radius-lg:       10px;
  --fiche-width:     380px;
  --header-height:   56px;

  /* Archives de Lumière — panneau de détail */
  --adl-primary:       #031632;
  --adl-accent:        #775A19;
  --adl-accent-light:  #FFDEA5;
  --adl-bg:            #FBF9F4;
  --adl-bg-card:       #F5F3EE;
  --adl-bg-card-high:  #EAE8E3;
  --adl-bg-container:  #F0EEE9;
  --adl-text:          #031632;
  --adl-text-secondary:#4A4640;
  --adl-text-tertiary: #8A8680;
  --adl-border:        rgba(3,22,50,0.10);
  --adl-border-accent: #775A19;
  --adl-font-serif:    'Noto Serif', Georgia, serif;
  --adl-font-sans:     'Inter', system-ui, sans-serif;
  --adl-transition:    all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --adl-t100: rgba(3,22,50,1.00);
  --adl-t080: rgba(3,22,50,0.80);
  --adl-t070: rgba(3,22,50,0.70);
  --adl-t060: rgba(3,22,50,0.60);
  --adl-t050: rgba(3,22,50,0.50);
  --adl-accent70: rgba(119,90,25,0.70);
  --adl-on-primary: #FFDEA5;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* === Header & Nav === */
.app-header {
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: var(--header-height);
  padding: 8px 20px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.app-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.app-nav {
  display: flex;
  gap: 4px;
}

.nav-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-btn:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--text-primary);
  color: var(--bg-white);
  border-color: var(--text-primary);
}

/* === Layout === */
.app-layout {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#view-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  background: var(--adl-bg);
}

/* === Resizer === */
#resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.15s;
  user-select: none;
  -webkit-user-select: none;
  z-index: 11;
}

#resizer:hover,
#resizer.dragging {
  background: var(--border-light);
}

.resizer-grip {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  position: relative;
  transition: background 0.15s;
}

.resizer-grip::before,
.resizer-grip::after {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: inherit;
}

.resizer-grip::before {
  top: -7px;
}

.resizer-grip::after {
  top: 7px;
}

#resizer:hover .resizer-grip,
#resizer.dragging .resizer-grip {
  background: var(--text-tertiary);
}

/* === Detail Panel (overlay) === */
#detail-col {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: var(--bg-white);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0,0,0,0.06);
  z-index: 10;
}

.fiche-panel.hidden {
  display: none;
}

/* === Fiche Header (sticky) === */
.fiche-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.fiche-header-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px 10px;
}

.fiche-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Portrait — 80x100 fixe */
.fiche-portrait {
  width: 80px !important;
  height: 100px !important;
  min-width: 80px;
  min-height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: opacity 0.15s;
}

.fiche-portrait:hover {
  opacity: 0.85;
}

.fiche-portrait-fallback {
  width: 80px;
  height: 100px;
  min-width: 80px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  color: var(--bg-white);
}

/* Nom & titres (header) */
.fiche-nom {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fiche-surnom {
  font-size: 12px;
  font-style: italic;
  color: var(--text-tertiary);
  line-height: 1.3;
}

.fiche-header-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0;
}

.fiche-badge-regime {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.fiche-badge-periode {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.fiche-badge-maison {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  position: relative;
  cursor: default;
}

.fiche-badge-maison[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: 260px;
  padding: 8px 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: normal;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.fiche-badge-maison[data-tooltip]:hover::after {
  opacity: 1;
}

.fiche-badge-maison[data-tooltip=""]::after {
  display: none;
}

.fiche-titre {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fiche-ordre-line {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: auto;
  padding-top: 4px;
}

/* Métriques — bloc jointif sous le header-top */
.fiche-header-metrics {
  display: flex;
  border-top: 1px solid var(--border-light);
}

.fiche-metric {
  flex: 1;
  padding: 8px 14px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fiche-metric:last-child { border-right: none; }

.fiche-metric--duree {
  background: var(--bg);
}

.fiche-metric-valeur {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.fiche-metric-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.fiche-metric-detail {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

/* === Fiche Body (scrollable) === */
.fiche-body {
  padding: 8px 16px 24px;
}

/* Bloc pattern commun */
.fiche-bloc { margin-bottom: 4px; }
.fiche-bloc-titre {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 5px;
  border-top: 1px solid var(--border-light);
}
.fiche-bloc:first-child .fiche-bloc-titre { border-top: none; }
.fiche-bloc-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.fiche-bloc-contenu { padding: 0 0 8px 20px; }

/* Toggle variant */
.fiche-bloc-titre--toggle { cursor: pointer; }
.fiche-bloc-titre--toggle:hover .fiche-desc-chevron { color: var(--text-primary); }

/* Ordre (rang) */
.fiche-ordre {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Dates de vie */
.fiche-vie {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.fiche-lieu {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Mandat */
.fiche-mandat {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 12px;
}

.fiche-mandat-dates {
  font-weight: 600;
}

.fiche-mandat-duree {
  color: var(--text-secondary);
  margin-top: 4px;
}

.fiche-note-dates {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-style: italic;
}

/* Legacy section (si encore utilisé) */
.fiche-section { margin-top: 16px; }
.fiche-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-tertiary); margin-bottom: 6px;
}

/* Gouvernement (exécutifs) */
.fiche-executif-ligne {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.fiche-executif-ligne:last-child {
  border-bottom: none;
}

.fiche-executif-nom {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.fiche-executif-titre {
  font-size: 12px;
  font-style: italic;
  color: var(--text-secondary);
}

.fiche-executif-dates {
  font-size: 11px;
  color: var(--text-tertiary);
}

.fiche-executif-badges {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.fiche-executif-cohab {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 8px;
  background: #FEF3DC;
  color: #A86B0A;
}

.fiche-executif-notable {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--border-light);
  color: var(--text-tertiary);
}

.fiche-executif-note {
  font-size: 11px;
  font-style: italic;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 2px;
}

/* Accession + Sortie côte à côte */
.fiche-events {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

.fiche-accession,
.fiche-sortie {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.detail-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.event-box {
  padding: 8px 10px;
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  overflow: hidden;
  flex: 1;
}

.event-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.event-desc {
  margin-top: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Legacy event styles (used elsewhere) */
.fiche-event-box {
  padding: 8px 10px;
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
  background: var(--bg);
  font-size: 12px;
}

.fiche-event-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.fiche-event-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.fiche-event-texte {
  margin-top: 6px;
  line-height: 1.5;
}

/* Panneau étroit : events en colonne (appliqué via JS quand panneau < 320px) */
.fiche-events.stacked {
  flex-direction: column;
}

/* Biographie */
.fiche-bio {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Collège - membres notables */
.fiche-membres {
  margin-top: 12px;
}

.fiche-membres-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.fiche-membres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fiche-membre-tag {
  padding: 2px 8px;
  background: var(--border-light);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Descendance accordéon */
.fiche-desc-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
}

.fiche-desc-chevron {
  font-size: 14px;
  color: var(--text-tertiary);
  min-width: 12px;
  text-align: center;
  transition: color 0.15s;
}

.fiche-descendance-body {
  padding: 6px 0 8px 20px;
}

.fiche-desc-union-header {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.fiche-desc-enfants {
  margin: 4px 0 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fiche-desc-enfant {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.fiche-desc-enfant strong {
  font-weight: 600;
}

.fiche-desc-enfant button {
  font-size: 11px;
  background: none;
  border: none;
  padding: 0;
  color: var(--transition-election);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  font-family: inherit;
}

.fiche-desc-enfant button:hover {
  color: var(--text-primary);
}

.fiche-desc-succ-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 10px 0 5px;
}

/* Filiation */
.fiche-filiation {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.fiche-filiation-btn {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  transition: all 0.15s;
}

.fiche-filiation-btn:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--text-tertiary);
}

.fiche-filiation-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.fiche-filiation-label {
  font-size: 11px;
  color: var(--text-tertiary);
  display: block;
}

.fiche-filiation-nom {
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.fiche-filiation-lien {
  font-size: 11px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

/* Sources */
.fiche-sources {
  margin-top: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.fiche-sources-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.fiche-source-group {
  margin-bottom: 8px;
}

.fiche-source-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.fiche-source-link {
  display: block;
  font-size: 11px;
  color: var(--transition-election);
  text-decoration: none;
  padding: 2px 0;
  line-height: 1.4;
}

.fiche-source-link:hover {
  text-decoration: underline;
}

/* === Filter bar === */
.nav-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  width: 100%;
  padding-top: 4px;
  overflow: hidden;
}

.nav-filters:empty {
  display: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.filter-reset {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.15s;
}

.filter-reset:hover {
  background: var(--border-light);
}

.filter-reset.has-filters {
  background: var(--bg);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

/* Bouton Filtres avancés */
.filter-advanced-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  margin-left: auto;
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.15s;
}

.filter-advanced-btn:hover {
  background: var(--border-light);
}

.filter-advanced-btn.has-advanced {
  background: var(--bg);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.filter-advanced-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  background: var(--text-primary);
  color: var(--bg-white);
}

.filter-advanced-arrow {
  font-size: 10px;
  transition: transform 0.15s;
}

.filter-advanced-btn.open .filter-advanced-arrow {
  transform: rotate(180deg);
}

/* Chips */
.filter-chip {
  padding: 3px 8px;
  border: 1px solid var(--chip-color, var(--border));
  border-radius: 14px;
  background: var(--chip-bg, transparent);
  color: var(--chip-color, var(--text-secondary));
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.filter-chip:hover {
  opacity: 0.85;
}

.filter-chip.active {
  background: var(--chip-color);
  color: white;
  border-color: var(--chip-color);
}

/* === Filter drawer === */
.filter-drawer {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.15s;
  max-height: 300px;
  opacity: 1;
}

.filter-drawer--hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.filter-drawer-inner {
  padding: 12px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-drawer-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-drawer-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-drawer-footer {
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.filter-drawer-reset {
  font-size: 11px;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.filter-drawer-reset:hover {
  color: var(--text-primary);
}

/* === Frise filter info === */
.frise-filter-info {
  position: sticky;
  bottom: -20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 12px;
  margin: 0 -20px -20px;
  width: calc(100% + 40px);
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.92;
}

.frise-filter-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* === Frise ADL === */
#frise-container {
  display: flex;
  gap: 0;
  position: relative;
}

.frise-axis {
  position: relative;
  width: 56px;
  flex-shrink: 0;
}

/* Repères d'années — sceaux dorés */
.frise-marker-century {
  position: absolute;
  right: 0;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 2.5rem;
  background: var(--adl-bg);
  border: 2px solid var(--adl-accent);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(119,90,25,0.15);
  font-family: var(--adl-font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--adl-primary);
  padding: 0 0.75rem;
  letter-spacing: 0.02em;
  transform: translateY(-50%);
}

.frise-marker-century::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: var(--adl-accent);
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
}

.frise-marker-decade-label {
  position: absolute;
  right: 6px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 1.75rem;
  background: var(--adl-bg);
  border: 1.5px solid var(--adl-accent);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(119,90,25,0.10);
  font-family: var(--adl-font-serif);
  font-weight: 700;
  font-size: 11px;
  color: var(--adl-primary);
  padding: 0 0.5rem;
  transform: translateY(-50%);
}

.frise-marker-decade-label::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 1.5px;
  background: var(--adl-accent);
  right: -11px;
  top: 50%;
}

.frise-axis-segment {
  position: absolute;
  right: 0;
  width: 3px;
  border-radius: 2px;
  opacity: 0.25;
  z-index: 1;
}

.frise-body {
  flex: 1;
  position: relative;
  padding-left: 16px;
}

/* Ligne verticale — dégradé bleu-or-bleu */
.frise-line {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #031632 0%, #775A19 50%, #031632 100%);
  z-index: 0;
}

.frise-cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

/* Carte : deux blocs jointifs */
.frise-card-DEAD {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  transition: var(--adl-transition);
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  min-height: 0;
  min-width: 0;
  position: relative;
}

.frise-card:hover .frise-card-identity {
  box-shadow: 0 4px 12px rgba(3,22,50,0.10);
}

.frise-card.selected .frise-card-identity {
  border-color: var(--adl-accent);
  box-shadow: 0 4px 12px rgba(119,90,25,0.15);
}

.frise-card.dimmed {
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.25s;
}

/* Bloc identité gauche */
.frise-card-identity {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(3,22,50,0.10);
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
  width: 220px;
  overflow: hidden;
  transition: var(--adl-transition);
}

.frise-card-portrait-wrap {
  width: 52px;
  height: 66px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
}

.frise-card-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: sepia(0.2) contrast(1.1);
  transition: filter 0.3s ease;
  display: block;
}
.frise-card:hover .frise-card-portrait { filter: sepia(0) contrast(1.2); }

.frise-card-portrait-fallback {
  width: 52px;
  height: 66px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--adl-bg-card);
  font-size: 14px;
  font-weight: 500;
  color: var(--adl-text-tertiary);
}

.frise-card-info {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: center;
}

.frise-card-nom {
  font-family: var(--adl-font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--adl-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.frise-card-dates {
  font-size: 11px;
  color: rgba(3,22,50,0.55);
  font-style: italic;
  font-family: var(--adl-font-sans);
}

.frise-card-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  align-self: flex-start;
}

/* Bloc durée droite — proportionnel */
.frise-card-duree {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-left: none;
  border-radius: 0 4px 4px 0;
  min-width: 40px;
  transition: var(--adl-transition);
  padding: 0 8px;
}

.frise-card-duree-texte {
  font-family: var(--adl-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--adl-primary);
  white-space: nowrap;
}

/* Chevauchement */
.frise-card-overlap {
  max-width: 48%;
  display: inline-flex;
  vertical-align: top;
}

.frise-card-accession-icon {
  font-size: 10px;
  opacity: 0.6;
  line-height: 1;
  margin-top: 1px;
}

.frise-card-overlap .frise-card-identity { width: auto; }

/* === Lignes ADL === */
.adl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.adl-row.dimmed {
  opacity: 0.20;
  pointer-events: none;
  transition: opacity 0.25s;
}

/* Sceau année */
.adl-year-seal {
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FBF9F4;
  border: 1.5px solid #775A19;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}

.adl-year-seal::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1.5px;
  background: #775A19;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.adl-year-txt {
  font-family: var(--adl-font-serif);
  font-weight: 700;
  font-size: 11px;
  color: #031632;
  line-height: 1;
}

/* === Cartes ADL === */
.adl-card {
  display: flex;
  align-items: stretch;
  flex: 1;
  transition: all 0.3s ease;
  margin-bottom: 0;
}
.adl-row:hover .adl-card-identity {
  box-shadow: 0 4px 12px rgba(3,22,50,0.12);
  border-color: rgba(119,90,25,0.40);
}
.adl-card.selected .adl-card-identity {
  border-color: #775A19;
  box-shadow: 0 4px 12px rgba(119,90,25,0.20);
}

.adl-card-identity {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  width: 310px;
  background: #ffffff;
  border: 1px solid rgba(3,22,50,0.10);
  border-radius: 4px 0 0 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.adl-card-portrait-wrap {
  width: 64px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.adl-card-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: sepia(0.2) contrast(1.1);
  transition: filter 0.3s ease;
  display: block;
  position: absolute;
  top: 0; left: 0;
}
.adl-card:hover .adl-card-portrait { filter: sepia(0) contrast(1.2); }
.adl-card-portrait-fb {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #F0EEE9;
  font-size: 16px;
  font-weight: 600;
  color: #8A8680;
  position: absolute;
  top: 0; left: 0;
}

.adl-card-info {
  flex: 1;
  min-width: 0;
  padding: 14px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.adl-card-nom {
  font-family: var(--adl-font-serif);
  font-size: 13px;
  font-weight: 700;
  color: #031632;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adl-card-dates {
  font-size: 11px;
  color: rgba(3,22,50,0.60);
  font-style: italic;
  margin-bottom: 8px;
}
.adl-card-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  align-self: flex-start;
}
.adl-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.adl-card-icon {
  font-size: 10px;
  opacity: 0.55;
  line-height: 1;
}

.adl-card-duree {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-left: none;
  border-radius: 0 4px 4px 0;
  min-width: 40px;
  padding: 0 10px;
  transition: all 0.3s ease;
}
.adl-card-duree-txt {
  font-size: 11px;
  font-weight: 600;
  color: #031632;
  white-space: nowrap;
}

/* === Vue Durée === */
#duree-container {
  max-width: 800px;
}

.duree-header {
  margin-bottom: 20px;
}

.duree-title {
  font-size: 18px;
  font-weight: 700;
}

.duree-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.duree-chart {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.duree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s;
}

.duree-row:hover {
  background: var(--border-light);
}

.duree-row.selected {
  background: var(--border-light);
  box-shadow: inset 3px 0 0 var(--text-primary);
}

.duree-label {
  width: 150px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duree-bar-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.duree-bar {
  height: 20px;
  border-radius: 3px;
  transition: width 0.3s ease;
  min-width: 3px;
}

.duree-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.duree-dates {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.duree-short .duree-bar {
  opacity: 0.5;
}

.duree-short .duree-value {
  color: var(--text-tertiary);
}

/* === Vue Régimes === */
#regimes-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.regime-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.regime-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.regime-badge-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.regime-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.regime-total-duree {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
}

.regime-count {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 10px;
}

.regime-periode-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px;
}

.regime-periode-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}

.regime-periode-count {
  font-size: 11px;
  color: var(--text-tertiary);
}

.regime-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.regime-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.12s;
  border: 1px solid transparent;
}

.regime-card:hover {
  background: var(--bg);
  border-color: var(--border);
}

.regime-card.selected {
  background: var(--bg);
  border-color: var(--text-primary);
  box-shadow: var(--shadow);
}

.regime-card-portrait {
  width: 48px;
  height: 60px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  background: var(--border-light);
  flex-shrink: 0;
}

.regime-card-fallback {
  width: 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.regime-card-info {
  min-width: 0;
}

.regime-card-nom {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.regime-card-dates {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.regime-card-duree {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* === Vue Graphe === */
#view-container:has(svg) {
  padding: 0;
  position: relative;
}

.graphe-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  z-index: 10;
  font-size: 12px;
}

.graphe-legend-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.graphe-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--text-secondary);
}

.graphe-legend-item svg {
  flex-shrink: 0;
}

/* === Quiz === */
.quiz-accueil, .quiz-session, .quiz-fin {
  max-width: 600px;
  margin: 0 auto;
}

/* Accueil */
.quiz-accueil-header {
  text-align: center;
  margin-bottom: 28px;
}

.quiz-accueil-titre {
  font-size: 22px;
  font-weight: 700;
}

.quiz-accueil-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.quiz-stats-globales {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.quiz-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.quiz-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.quiz-stat-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.quiz-stat-bar-fill {
  height: 100%;
  background: var(--transition-succession);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.quiz-stat-detail {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.quiz-stat-revoir .quiz-stat-value {
  color: var(--transition-coup-etat);
}

.quiz-start-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--text-primary);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.quiz-start-btn:hover {
  opacity: 0.88;
}

/* Progression */
.quiz-progress {
  margin-bottom: 20px;
}

.quiz-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--transition-election);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.quiz-score-live {
  font-weight: 600;
  color: var(--transition-succession);
}

/* Carte de question */
.quiz-question-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.quiz-question-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--border-light);
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.quiz-question-portrait {
  text-align: center;
  margin-bottom: 16px;
}

.quiz-question-portrait img {
  max-height: 200px;
  border-radius: var(--radius);
  object-fit: contain;
}

.quiz-enonce {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

/* Propositions */
.quiz-propositions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-prop-btn {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  line-height: 1.3;
}

.quiz-prop-btn:hover:not(:disabled) {
  border-color: var(--text-secondary);
  background: var(--bg);
}

.quiz-prop-btn:disabled {
  cursor: default;
}

.quiz-prop-btn.correct {
  border-color: var(--transition-succession);
  background: #E1F5EE;
  color: #0d6b4a;
}

.quiz-prop-btn.incorrect {
  border-color: var(--transition-coup-etat);
  background: #FAECE7;
  color: #a83920;
}

/* Feedback */
.quiz-feedback {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.quiz-feedback.hidden {
  display: none;
}

.quiz-feedback.feedback-correct {
  border-left: 4px solid var(--transition-succession);
}

.quiz-feedback.feedback-incorrect {
  border-left: 4px solid var(--transition-coup-etat);
}

.quiz-feedback-icon {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feedback-correct .quiz-feedback-icon { color: var(--transition-succession); }
.feedback-incorrect .quiz-feedback-icon { color: var(--transition-coup-etat); }

.quiz-feedback-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.quiz-feedback-explication {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.quiz-next-btn {
  padding: 10px 20px;
  background: var(--text-primary);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.quiz-next-btn:hover {
  opacity: 0.88;
}

/* Fin de session */
.quiz-fin-header {
  text-align: center;
  margin-bottom: 24px;
}

.quiz-score-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--transition-succession) calc(var(--pct) * 1%), var(--border-light) 0);
  margin-bottom: 12px;
}

.quiz-score-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-white);
  font-size: 22px;
  font-weight: 700;
}

.quiz-message {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Erreurs */
.quiz-erreurs {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.quiz-erreurs-titre {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.quiz-erreurs-liste {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-erreur-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 13px;
}

.quiz-erreur-question {
  color: var(--text-secondary);
}

.quiz-erreur-reponse {
  font-weight: 600;
  color: var(--transition-succession);
}

.quiz-revoir-btn {
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid var(--transition-election);
  border-radius: var(--radius);
  background: transparent;
  color: var(--transition-election);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.quiz-revoir-btn:hover {
  background: var(--transition-election);
  color: var(--bg-white);
}

.quiz-fin-actions {
  margin-bottom: 20px;
}

.quiz-restart-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--text-primary);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.quiz-restart-btn:hover {
  opacity: 0.88;
}

.quiz-stats-recap {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.quiz-stat-mini {
  padding: 4px 10px;
  background: var(--border-light);
  border-radius: 10px;
}

/* === Portrait Zoom Overlay === */
.portrait-zoom-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn 0.15s ease;
  padding: 16px;
}

.portrait-zoom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100%;
  max-width: 100%;
  cursor: default;
}

.portrait-zoom-img {
  max-height: 65vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.portrait-zoom-caption {
  margin-top: 12px;
  text-align: center;
  max-width: 400px;
}

.portrait-zoom-nom {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

.portrait-zoom-dates {
  font-size: 13px;
  color: #1E4A7A;
  margin-top: 2px;
}

.portrait-zoom-legende {
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  line-height: 1.4;
}

.portrait-zoom-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  line-height: 1.5;
  max-height: 4.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================
   ARCHIVES DE LUMIÈRE — Typographie cohérente
   ============================================= */

/* --- Header : nom, surnom, métriques --- */
.fiche-nom {
  font-family: var(--adl-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--adl-t100);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.fiche-surnom {
  font-family: var(--adl-font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--adl-t060);
}
.fiche-titre {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--adl-t060);
}
.fiche-ordre-line {
  font-family: var(--adl-font-sans);
  font-size: 11px;
  color: var(--adl-t050);
}
.fiche-metric-label {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--adl-accent);
  opacity: 1;
}
.fiche-metric-valeur {
  font-family: var(--adl-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--adl-t100);
  line-height: 1;
}
.fiche-metric-detail {
  font-family: var(--adl-font-sans);
  font-size: 11px;
  color: var(--adl-t060);
}

/* --- Labels de blocs (universel) --- */
.fiche-bloc-label {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--adl-accent);
}

/* --- Bloc VIE --- */
.fiche-vie-item {
  margin-bottom: 0;
}
.fiche-vie-label {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--adl-accent);
  opacity: 0.70;
  margin-bottom: 3px;
}
.fiche-vie-valeur {
  font-family: var(--adl-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--adl-t100);
  line-height: 1.4;
}
.fiche-vie-cause {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  font-style: italic;
  color: var(--adl-t060);
  margin-top: 2px;
}
.fiche-vie-sep {
  display: none;
}

/* Grid 2 colonnes naissance / décès */
.fiche-vie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  align-items: start;
}

/* --- Bloc MANDAT --- */
.fiche-mandat-card {
  background: #031632;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 8px;
}
.fiche-mandat-dates {
  font-family: var(--adl-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.fiche-mandat-duree {
  font-family: var(--adl-font-sans);
  font-size: 13px;
  color: var(--adl-on-primary);
  opacity: 0.90;
}
.fiche-mandat-note {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  font-style: italic;
  color: var(--adl-t060);
  line-height: 1.5;
}

/* --- Bloc GOUVERNEMENT --- */
.fiche-executif-nom {
  font-family: var(--adl-font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--adl-t100);
}
.fiche-executif-titre {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  font-style: italic;
  color: var(--adl-t070);
}
.fiche-executif-dates {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--adl-accent);
  letter-spacing: 0.05em;
}
.fiche-executif-note {
  font-family: var(--adl-font-sans);
  font-size: 11px;
  font-style: italic;
  color: var(--adl-t060);
  line-height: 1.5;
}

/* --- Bloc ACCESSION / FIN --- */
.event-date {
  font-family: var(--adl-font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--adl-t100);
  line-height: 1.3;
}
.event-desc {
  font-family: var(--adl-font-sans);
  font-size: 13px;
  color: var(--adl-t070);
  line-height: 1.6;
}

/* --- Bloc BIOGRAPHIE --- */
.fiche-bio {
  font-family: var(--adl-font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--adl-t080);
  line-height: 1.8;
  border-left: 4px solid rgba(3,22,50,0.08);
  padding-left: 1.25rem;
}

/* --- Bloc DESCENDANCE --- */
.fiche-desc-count {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  color: var(--adl-t050);
}
.fiche-desc-union-header {
  font-family: var(--adl-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--adl-t100);
}
.fiche-desc-enfant {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  color: var(--adl-t070);
  line-height: 1.5;
}
.fiche-desc-succ-label {
  font-family: var(--adl-font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--adl-accent70);
}

/* --- Bloc FILIATION --- */
.fiche-filiation-label {
  font-family: var(--adl-font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--adl-accent);
}
.fiche-filiation-nom {
  font-family: var(--adl-font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--adl-t100);
}
.fiche-filiation-lien {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  color: var(--adl-t060);
  font-style: italic;
}

/* --- Bloc MEMBRES NOTABLES --- */
.fiche-membre-tag {
  font-family: var(--adl-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--adl-t100);
  background: var(--adl-bg-card);
  border: 1px solid rgba(3,22,50,0.10);
  padding: 2px 8px;
  border-radius: 999px;
}

/* --- Bloc SOURCES --- */
.fiche-source-group-label {
  font-family: var(--adl-font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adl-t050);
}
.fiche-source-link {
  font-family: var(--adl-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--adl-t100);
  text-decoration: none;
  border-bottom: 1px solid rgba(3,22,50,0.12);
  transition: all 0.3s ease;
}
.fiche-source-link:hover {
  color: var(--adl-accent);
  border-bottom-color: var(--adl-accent);
}

/* --- Badges --- */
.fiche-badge-regime,
.fiche-badge-periode,
.fiche-badge-maison {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
}

/* --- Frise : typographie cartes --- */
.adl-card-nom {
  font-family: var(--adl-font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--adl-t100);
  line-height: 1.3;
}
.adl-card-dates {
  font-family: var(--adl-font-sans);
  font-size: 11px;
  font-style: italic;
  color: var(--adl-t060);
}
.adl-card-badge {
  font-family: var(--adl-font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.adl-card-duree-txt {
  font-family: var(--adl-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--adl-t100);
}
.adl-year-txt {
  font-family: var(--adl-font-serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--adl-t100);
}

/* =============================================
   ARCHIVES DE LUMIÈRE — Panneau de détail only
   ============================================= */

/* Conteneur panneau */
#detail-col {
  background-color: var(--adl-bg);
  font-family: var(--adl-font-sans);
  color: var(--adl-text);
  border-left: none;
  box-shadow: -8px 0 32px rgba(3,22,50,0.08);
}

/* Resizer */
#resizer {
  background: transparent;
  border-left: 1px solid var(--adl-border);
}
#resizer:hover, #resizer.dragging {
  background: var(--adl-accent);
  opacity: 0.3;
  border-left: none;
}

/* === Header sticky === */
.fiche-header {
  background: var(--adl-bg);
  border-bottom: 1px solid rgba(3,22,50,0.08);
  padding: 2rem;
}

.fiche-header-top { margin-bottom: 0; }

/* Portrait — N&B, couleur au hover */
.fiche-portrait {
  filter: grayscale(100%);
  transition: var(--adl-transition);
  box-shadow: 0 8px 32px rgba(3,22,50,0.18);
  border: none;
}
.fiche-portrait:hover { filter: grayscale(0%); opacity: 1; }

.fiche-portrait-fallback { border-radius: 6px; }

/* Nom — Noto Serif */
.fiche-nom {
  font-family: var(--adl-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--adl-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fiche-surnom {
  font-family: var(--adl-font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--adl-text-secondary);
}

.fiche-titre {
  font-size: 12px;
  color: var(--adl-text-secondary);
}

.fiche-ordre-line {
  font-size: 11px;
  color: var(--adl-text-tertiary);
}

/* Badges */
.fiche-badge-regime {
  background: var(--adl-primary) !important;
  color: #ffffff !important;
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
}

.fiche-badge-periode {
  background: transparent !important;
  color: var(--adl-primary) !important;
  border: 1px solid var(--adl-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
}

.fiche-badge-maison {
  background: var(--adl-accent) !important;
  color: var(--adl-bg) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
  border: none;
}

/* Tooltip maison — adapter au thème */
.fiche-badge-maison[data-tooltip]::after {
  background: var(--adl-primary);
  color: rgba(255,255,255,0.9);
  border: none;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(3,22,50,0.3);
}

/* Métriques dates */
.fiche-header-metrics {
  border-top: none;
  border-left: 4px solid var(--adl-accent);
  background: var(--adl-bg-card);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.fiche-metric {
  background: transparent;
  border-right: 1px solid var(--adl-border);
  padding: 0 1.5rem 0 0;
  border-left: none;
  border-top: none;
  border-bottom: none;
}
.fiche-metric:last-child { border-right: none; padding-right: 0; }

.fiche-metric-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--adl-primary);
  opacity: 0.6;
}

.fiche-metric-valeur {
  font-family: var(--adl-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--adl-primary);
}

.fiche-metric-detail {
  font-size: 11px;
  color: var(--adl-text-tertiary);
}

.fiche-metric--duree {
  background: transparent;
}

/* === Corps scrollable === */
.fiche-body { padding: 2rem; }

/* Labels de section */
.fiche-bloc-label {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--adl-accent);
}

.fiche-bloc-titre {
  border-top: 1px solid var(--adl-border);
  padding: 10px 0 6px;
}

.fiche-bloc-titre svg {
  color: var(--adl-accent) !important;
}

/* Bloc VIE */
.fiche-vie {
  color: #031632;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.fiche-lieu {
  color: #031632;
  opacity: 0.75;
  font-size: 13px;
}

/* Bloc MANDAT — fond primaire */
/* .fiche-mandat obsolète — remplacé par .fiche-mandat-card */

.fiche-mandat-dates {
  font-family: var(--adl-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.fiche-mandat-duree {
  color: var(--adl-accent-light);
  font-size: 13px;
}

.fiche-note-dates {
  color: var(--adl-text-tertiary);
  font-size: 12px;
}

/* Bloc GOUVERNEMENT */
.fiche-executif-ligne {
  background: #ffffff;
  border: 1px solid var(--adl-border);
  padding: 1rem 1.25rem;
  border-radius: 0;
  transition: var(--adl-transition);
  border-bottom: 1px solid var(--adl-border);
}
.fiche-executif-ligne:hover { background: var(--adl-bg-container); }

.fiche-executif-nom {
  font-family: var(--adl-font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--adl-primary);
}

.fiche-executif-titre {
  font-style: italic;
  font-size: 12px;
  color: var(--adl-text-secondary);
}

.fiche-executif-dates {
  font-weight: 700;
  font-size: 12px;
  color: var(--adl-accent);
  letter-spacing: 0.05em;
}

.fiche-executif-cohab {
  background: transparent;
  border: 1px solid var(--adl-accent);
  color: var(--adl-accent);
  border-radius: 0;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.fiche-executif-notable {
  background: transparent;
  border: 1px solid var(--adl-text-tertiary);
  color: var(--adl-text-tertiary);
  border-radius: 0;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.fiche-executif-note {
  color: var(--adl-text-tertiary);
}

/* Blocs ACCESSION et FIN */
.fiche-accession .event-box {
  border-left: 2px solid var(--adl-accent);
  background: var(--adl-bg-card);
  border-radius: 0;
  padding: 1rem 1.25rem;
}

.fiche-sortie .event-box {
  border-left: 2px solid var(--adl-primary);
  background: var(--adl-bg-card-high);
  border-radius: 0;
  padding: 1rem 1.25rem;
}

.fiche-event-badge {
  border-radius: 0;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date {
  font-family: var(--adl-font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--adl-primary);
}

.event-desc {
  font-size: 13px;
  color: var(--adl-text-secondary);
  line-height: 1.6;
}

/* Biographie */
.fiche-bio {
  font-size: 14px;
  line-height: 1.8;
  color: var(--adl-text-secondary);
  border-left: 4px solid var(--adl-border);
  padding-left: 1.25rem;
}

/* Descendance */
.fiche-desc-count { color: var(--adl-text-tertiary); }
.fiche-desc-chevron { color: var(--adl-text-tertiary); }
.fiche-desc-union-header { color: var(--adl-text-secondary); }
.fiche-desc-succ-label { color: var(--adl-accent); }

/* Filiation */
.fiche-filiation { gap: 1rem; }

.fiche-filiation-btn {
  background: var(--adl-bg-card);
  border: 1px solid var(--adl-border);
  border-radius: 0;
  padding: 0.75rem 1rem;
  transition: var(--adl-transition);
}

.fiche-filiation-btn:hover:not(:disabled) {
  background: var(--adl-primary);
  color: #ffffff;
  border-color: var(--adl-primary);
}
.fiche-filiation-btn:hover:not(:disabled) .fiche-filiation-nom { color: #ffffff; }
.fiche-filiation-btn:hover:not(:disabled) .fiche-filiation-label { color: var(--adl-accent-light); }
.fiche-filiation-btn:hover:not(:disabled) .fiche-filiation-lien { color: rgba(255,255,255,0.7); }

.fiche-filiation-nom {
  font-family: var(--adl-font-serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--adl-primary);
}

.fiche-filiation-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--adl-accent);
}

.fiche-filiation-lien {
  color: var(--adl-text-tertiary);
}

/* Membres notables */
.fiche-membre-tag {
  background: var(--adl-bg-card);
  color: var(--adl-text-secondary);
  border-radius: 0;
}

/* Sources */
.fiche-source-link {
  color: var(--adl-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--adl-border);
  transition: var(--adl-transition);
}
.fiche-source-link:hover {
  color: var(--adl-accent);
  border-color: var(--adl-accent);
}

/* Ordre — masqué dans le header text (déjà dans fiche-ordre-line) */
.fiche-ordre { display: none; }

/* Bouton fermer */
.fiche-close-btn {
  color: var(--adl-text-tertiary);
  background: var(--adl-bg-card);
}
.fiche-close-btn:hover {
  background: var(--adl-primary);
  color: #ffffff;
}

/* =============================================
   ARCHIVES DE LUMIÈRE — Navigation
   ============================================= */

/* Header */
.app-header {
  background-color: rgba(251,249,244,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(3,22,50,0.06);
  padding: 8px 2rem;
}

/* Titre */
.app-title {
  font-family: var(--adl-font-sans);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #031632;
}

/* Boutons de vue */
.nav-btn {
  font-family: var(--adl-font-serif);
  font-size: 13px;
  font-weight: 400;
  color: rgba(3,22,50,0.60);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 4px 2px;
  margin: 0 12px;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: none;
}

.nav-btn:hover {
  color: #775A19;
  border-bottom-color: rgba(119,90,25,0.30);
  background: transparent;
}

.nav-btn.active {
  color: #775A19;
  border-bottom-color: #775A19;
  font-weight: 700;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
}

/* Barre de filtres */
.nav-filters {
  background: rgba(245,243,238,0.80);
  border-top: 1px solid rgba(3,22,50,0.06);
  border-bottom: none;
  padding: 0 2rem;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Chips de période */
.filter-chip {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(3,22,50,0.15) !important;
  background: #ffffff !important;
  color: rgba(3,22,50,0.60) !important;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: #775A19 !important;
  color: #775A19 !important;
  background: rgba(119,90,25,0.05) !important;
  opacity: 1;
}

.filter-chip.active {
  font-weight: 700;
  background: #031632 !important;
  color: #FBF9F4 !important;
  border-color: #031632 !important;
}

/* Bouton reset "Tous" */
.filter-reset {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(3,22,50,0.15);
  background: transparent;
  color: rgba(3,22,50,0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-reset:hover {
  color: #775A19;
  border-color: #775A19;
  background: transparent;
}

.filter-reset.has-filters {
  border-color: #031632;
  color: #031632;
  font-weight: 700;
  background: transparent;
}

/* Bouton "Filtres" */
.filter-advanced-btn {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid #775A19;
  background: transparent;
  color: #775A19;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}

.filter-advanced-btn:hover,
.filter-advanced-btn.open {
  background: #775A19;
  color: #FBF9F4;
}

.filter-advanced-btn.has-advanced {
  background: #031632;
  color: #FBF9F4;
  border-color: #031632;
}

.filter-advanced-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  background: #FBF9F4;
  color: #031632;
}

.filter-advanced-btn.has-advanced .filter-advanced-badge {
  background: #775A19;
  color: #FBF9F4;
}

/* Rideau filtres avancés */
.filter-drawer {
  background: rgba(251,249,244,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(3,22,50,0.08);
  box-shadow: 0 8px 24px rgba(3,22,50,0.06);
}

.filter-drawer-label {
  font-family: var(--adl-font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #775A19;
}

.filter-drawer-reset {
  font-family: var(--adl-font-sans);
  font-size: 10px;
  color: rgba(3,22,50,0.40);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.filter-drawer-reset:hover { color: #775A19; }

/* === Mobile === */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    height: auto;
    padding: 10px 12px;
    gap: 8px;
  }

  .app-nav {
    overflow-x: auto;
    width: 100%;
  }

  .nav-btn {
    flex-shrink: 0;
  }

  .app-layout {
    flex-direction: column;
  }

  #resizer {
    display: none;
  }

  #detail-col {
    position: fixed;
    top: 0;
    right: 0;
    width: 100% !important;
    height: 100vh;
    z-index: 200;
    border-left: none;
    box-shadow: none;
  }

  .fiche-panel.hidden {
    display: none;
  }

  .fiche-close-btn {
    display: block !important;
  }

  #frise-container {
    max-width: 100%;
  }

  .frise-axis {
    display: none;
  }

  .frise-card-overlap {
    width: 100%;
    display: flex;
  }

  .nav-filters {
    padding: 6px 12px;
  }

  .duree-label {
    width: 100px;
    font-size: 12px;
  }

  .duree-dates {
    display: none;
  }

  .regime-cards-grid {
    grid-template-columns: 1fr;
  }

  .quiz-stats-globales {
    grid-template-columns: 1fr;
  }

  .quiz-propositions {
    grid-template-columns: 1fr;
  }
}

/* Close button (mobile) */
.fiche-close-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--border-light);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  line-height: 32px;
  text-align: center;
}
