/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --color-gray-100: oklch(.967 .003 264.542);
    --default-font-family: var(--font-sans);
    --default-font-feature-settings: var(--font-sans--font-feature-settings);
    --default-font-variation-settings: var(--font-sans--font-variation-settings);
    --default-mono-font-family: var(--font-mono);
    --default-mono-font-feature-settings: var(--font-mono--font-feature-settings);
    --default-mono-font-variation-settings: var(--font-mono--font-variation-settings);
    --color-primary: oklch(.205 0 0);
    --color-accent: oklch(.97 0 0);
    --color-border: oklch(.922 0 0);
    --color-chart-1: oklch(.646 .222 41.116);
    --color-chart-2: oklch(.6 .118 184.704);
    --color-chart-4: oklch(.828 .189 84.429);
    --color-chart-5: oklch(.769 .188 70.08);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  body {
    line-height: inherit;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    --lightningcss-light: initial;
    --lightningcss-dark: ;
    color-scheme: light;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    --lightningcss-light: initial;
    --lightningcss-dark: ;
    color-scheme: light;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
    color: currentColor;
  }

  @supports (color: color-mix(in lab, red, red)) {
    ::placeholder {
      color: color-mix(in oklab, currentColor 50%, transparent);
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }

  * {
    border-color: oklch(.922 0 0);
    outline-color: color-mix(in oklab, oklch(.708 0 0) 50%, transparent);
  }

  body {
    background-color: oklch(1 0 0);
    color: oklch(.145 0 0);
  }
}

@layer utilities {
  .visible {
    visibility: visible;
  }

  .flex {
    display: flex;
  }

  .hidden {
    display: none;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .h-full {
    height: 100%;
  }

  .w-full {
    width: 100%;
  }

  .resize {
    resize: both;
  }

  .items-center {
    align-items: center;
  }

  .justify-center {
    justify-content: center;
  }

  .bg-gray-100 {
    background-color: var(--color-gray-100);
  }

  .text-center {
    text-align: center;
  }

  .align-middle {
    vertical-align: middle;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

:root {
  --color-modus-green: #8bbaa6;
  --color-modus-green-light: #a8d5ba;
  --color-modus-green-dark: #6b9b87;
  --color-geneve-red: #e8b4be;
  --color-geneve-yellow: #fff4cc;
  --color-primary: #8bbaa6;
  --color-primary-hover: #6b9b87;
  --color-accent: #e8b4be;
  --color-accent-light: #f4c7d0;
  --color-warning: #fff4cc;
  --color-chart-1: #b8d4e8;
  --color-chart-2: #c7d8c6;
  --color-chart-3: #e8d5c4;
  --color-chart-4: #d4c5e0;
  --color-chart-5: #ffe5cc;
  --color-chart-6: #d5e8d4;
  --color-chart-7: #f4c7d0;
  --color-chart-8: #c4e0e5;
  --color-status-en-cours: #a8d5ba;
  --color-status-termine: #c7d8c6;
  --color-status-planifie: #b8d4e8;
  --color-status-idee: #fff4cc;
  --color-status-incertain: beige;
  --color-status-suspendu: #d5d5d5;
  --color-text-primary: #4a4a4a;
  --color-text-secondary: #757575;
  --color-text-light: #9e9e9e;
  --color-border: #ebebeb;
  --color-bg-light: #fafafa;
  --color-bg-white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #4a4a4a;
  background-color: #fafafa;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.app {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}

.header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  width: 100%;
}

.header-inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
}

.header-logos {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.header-logo {
  object-fit: contain;
  opacity: .8;
  width: auto;
  height: 28px;
  transition: opacity .2s;
}

.header-logo:hover {
  opacity: 1;
}

.header-content {
  text-align: left;
  flex: 1;
}

.header h1 {
  color: #4a4a4a;
  margin-bottom: .2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.subtitle {
  color: #9e9e9e;
  font-size: .85rem;
}

.mobile-stats-message {
  text-align: center;
  border: 2px dashed var(--color-border);
  background: #fff;
  border-radius: 12px;
  margin-top: 2rem;
  padding: 2rem;
  display: none;
}

.mobile-stats-message svg {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.mobile-stats-message h3 {
  color: var(--color-text-primary);
  margin-bottom: .5rem;
  font-size: 1.1rem;
}

.mobile-stats-message p {
  color: var(--color-text-secondary);
  font-size: .95rem;
}

.control-panel {
  box-shadow: none;
  background: none;
  border: none;
  border-radius: 0;
  width: 100%;
  margin-bottom: 1rem;
  overflow: visible;
}

.control-panel > .tabs, .control-panel > .filter-bar, .control-panel > .active-filters, .control-panel > .toolbar {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px #0000000a;
}

.control-panel > .tabs {
  border-bottom: 1px solid #fafafa;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  padding: .5rem 1rem 1rem;
}

.control-panel > .filter-bar {
  box-shadow: none;
  border-top: none;
  border-left: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  border-radius: 0;
  margin-bottom: 0;
  padding: 1rem;
}

.control-panel > .active-filters {
  box-shadow: none;
  border-top: 1px solid #fafafa;
  border-left: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  border-radius: 0;
  margin-bottom: 0;
  padding: 1rem;
}

.control-panel > .toolbar {
  border-radius: 0 0 12px 12px;
  margin-bottom: 0;
  padding: 1rem;
  border-top: none !important;
}

.control-panel-results {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  margin-top: 2rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px #0000000a;
}

.tabs {
  background: linear-gradient(#fafafa, #fff);
  border-bottom: 1px solid #ebebeb;
  justify-content: flex-start;
  align-items: center;
  gap: .25rem;
  padding: .5rem 1rem 0;
  display: flex;
}

.tab {
  cursor: pointer;
  color: #9e9e9e;
  background: none;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: .75rem 2rem;
  font-size: .95rem;
  font-weight: 500;
  transition: all .2s;
  position: relative;
}

.tab:hover {
  color: #4a4a4a;
  background: #8bbaa614;
}

.tab.active {
  color: var(--color-primary);
  background: #fff;
  font-weight: 600;
}

.tab.active:after {
  content: "";
  background: var(--color-primary);
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.filter-bar {
  box-shadow: none;
  background: none;
  border-radius: 0;
  margin-bottom: 0;
}

.filter-toggle-btn {
  display: none;
}

.filter-bar-content {
  flex-direction: column;
  gap: .875rem;
  display: flex;
}

.filter-bar-top {
  flex-wrap: wrap;
  align-items: center;
  gap: .875rem;
  display: flex;
}

.filters {
  flex-wrap: wrap;
  flex: 1;
  gap: .875rem;
  min-width: 0;
  display: flex;
}

.clear-all-btn {
  cursor: pointer;
  color: #4a4a4a;
  white-space: nowrap;
  background: #f5f5f5;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  height: 38px;
  padding: 0 1rem;
  font-size: .85rem;
  transition: all .2s;
  display: flex;
}

.multi-select {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  position: relative;
}

.multi-select-header {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  display: flex;
}

.multi-select label {
  color: #757575;
  margin: 0;
  font-size: .8rem;
  font-weight: 500;
  display: block;
}

.filter-reset-btn {
  color: #bdbdbd;
  cursor: pointer;
  opacity: .6;
  background: none;
  border: none;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  padding: 2px;
  transition: all .2s;
  display: flex;
}

.filter-reset-btn:hover {
  color: #9e9e9e;
  opacity: 1;
  background: #f5f5f5;
}

.multi-select-dropdown {
  position: relative;
}

.multi-select-summary {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  height: 38px;
  padding: 0 1rem;
  font-size: .9rem;
  transition: border-color .2s;
  display: flex;
}

.multi-select-summary:hover {
  border-color: var(--color-primary);
}

.multi-select-summary .chevron {
  color: #bdbdbd;
  flex-shrink: 0;
  transition: transform .2s;
}

.multi-select-summary .chevron.open {
  transform: rotate(180deg);
}

.multi-select-options {
  z-index: 10;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  max-height: 300px;
  padding: .5rem;
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 2px 8px #0000000f;
}

.multi-select-option {
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
  padding: .5rem;
  font-size: .9rem;
  transition: background .2s;
  display: flex;
}

.multi-select-option:hover {
  background: #f5f5f5;
}

.multi-select-option input {
  cursor: pointer;
  margin-right: .5rem;
}

.multi-select-option span {
  -webkit-user-select: none;
  user-select: none;
}

.simple-select {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

.simple-select-header {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  display: flex;
}

.simple-select label {
  color: #757575;
  margin: 0;
  font-size: .8rem;
  font-weight: 500;
}

.simple-select select {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  width: 100%;
  padding: .6rem .75rem;
  font-size: .9rem;
  transition: border-color .2s;
}

.simple-select select:hover {
  border-color: var(--color-primary);
}

.simple-select select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px #8bbaa626;
}

.search-box {
  flex: 0 180px;
  min-width: 160px;
  position: relative;
}

.search-icon {
  color: #bdbdbd;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: .75rem;
  transform: translateY(-50%);
}

.search-box input {
  border: 1px solid #ebebeb;
  border-radius: 6px;
  width: 100%;
  height: 38px;
  padding: 0 2.5rem;
  font-size: .9rem;
  transition: border-color .2s;
}

.search-clear-btn {
  color: #bdbdbd;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  transition: all .2s;
  display: flex;
  position: absolute;
  top: 50%;
  right: .75rem;
  transform: translateY(-50%);
}

.search-clear-btn:hover {
  color: #9e9e9e;
  background: #f5f5f5;
}

.projet-grouped-view {
  flex-direction: column;
  gap: 2rem;
  display: flex;
}

.groupe-section {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px #0000000a;
}

.groupe-header {
  border-bottom: 1px solid #ebebeb;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  display: flex;
}

.groupe-header h3 {
  color: #4a4a4a;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.groupe-count {
  background: var(--color-chart-1);
  color: #4a4a4a;
  border-radius: 20px;
  padding: .4rem .8rem;
  font-size: .9rem;
  font-weight: 600;
}

.groupe-items {
  column-count: 2;
  column-gap: 1.5rem;
}

.groupe-items.cols-1 {
  column-count: 1;
}

.groupe-items.cols-2 {
  column-count: 2;
}

.groupe-items.cols-3 {
  column-count: 3;
}

@media (width <= 1024px) {
  .groupe-items.cols-3 {
    column-count: 2;
  }
}

@media (width <= 640px) {
  .groupe-items {
    column-count: 1;
  }
}

.view-switcher {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.view-btn {
  cursor: pointer;
  color: #4a4a4a;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  flex: auto;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  height: 38px;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  transition: all .2s;
  display: flex;
}

.view-btn:hover {
  background: #f5f5f5;
}

.view-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.results-count {
  color: var(--color-text-secondary);
  background: #fafafa;
  border-bottom: 1px solid #ebebeb;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  padding: 1rem;
  font-size: .9rem;
  display: flex;
}

.view-content {
  background: #fff;
  padding: 1.5rem 1rem;
}

.quick-nav {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-left: .5rem;
  display: inline-flex;
}

.quick-nav-separator {
  color: #bbb;
  margin: 0 .25rem;
  font-size: .9rem;
}

.quick-nav-items {
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  display: inline-flex;
}

.quick-nav-item {
  color: #999;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 3px;
  padding: .2rem .4rem;
  font-size: .85rem;
  line-height: 1.2;
  text-decoration: none;
  transition: all .2s;
}

.quick-nav-item:hover {
  color: #757575;
  background: #f5f5f5;
}

.quick-nav-dot {
  color: #ccc;
  margin: 0 .1rem;
  font-size: .85rem;
}

@media (width <= 768px) {
  .results-count {
    gap: .4rem;
    font-size: .85rem;
  }

  .quick-nav-separator {
    font-size: .85rem;
  }

  .quick-nav-items {
    gap: .25rem;
  }

  .quick-nav-item {
    padding: .15rem .3rem;
    font-size: .8rem;
  }

  .quick-nav-dot {
    margin: 0;
    font-size: .8rem;
  }
}

.projet-list {
  column-count: 2;
  column-gap: 1.5rem;
}

@media (width <= 1024px) {
  .projet-list {
    column-count: 2;
  }
}

@media (width <= 640px) {
  .projet-list {
    column-count: 1;
  }
}

.projet-card {
  break-inside: avoid;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  transition: box-shadow .2s;
  box-shadow: 0 1px 2px #00000008;
}

.projet-card:hover {
  box-shadow: 0 2px 8px #0000000f;
}

.projet-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  display: flex;
}

.badge-group {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.projet-card h3 {
  color: #4a4a4a;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.projet-description {
  color: #757575;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.projet-meta {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.meta-row {
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .9rem;
  display: flex;
}

.meta-label {
  color: #9e9e9e;
  min-width: 100px;
  font-weight: 600;
}

.contact-email {
  color: var(--color-chart-1);
  font-size: .85rem;
}

.mode-chips {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.mode-chip {
  color: #4a4a4a;
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: .25rem .75rem;
  font-size: .85rem;
  transition: background .2s;
}

.mode-chip:hover {
  background: #ebebeb;
}

.mode-chip-small {
  color: #4a4a4a;
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: .2rem .6rem;
  font-size: .75rem;
  transition: background .2s;
}

.mode-chip-small:hover {
  background: #ebebeb;
}

.enjeux-list {
  color: #757575;
  font-size: .9rem;
}

.statut-badge {
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #00000014;
  border-radius: 12px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 500;
  transition: opacity .2s;
}

.statut-badge:hover {
  opacity: .85;
}

.statut-en-cours {
  background: var(--color-status-en-cours);
  color: #4a4a4a;
}

.statut-termine {
  background: var(--color-status-termine);
  color: #4a4a4a;
}

.statut-planifie {
  background: var(--color-status-planifie);
  color: #4a4a4a;
}

.statut-idee {
  background: var(--color-status-idee);
  color: #4a4a4a;
}

.statut-incertain {
  background: var(--color-status-incertain);
  color: #4a4a4a;
}

.statut-suspendu {
  background: var(--color-status-suspendu);
  color: #4a4a4a;
}

.timeline {
  flex-direction: column;
  gap: 2rem;
  display: flex;
}

.timeline-year-group {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.timeline-year-header {
  color: var(--color-chart-1);
  border-bottom: 2px solid var(--color-chart-1);
  padding-bottom: .5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.timeline-items {
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
  display: flex;
}

.timeline-item {
  gap: 1rem;
  display: flex;
  position: relative;
}

.timeline-marker {
  background: var(--color-chart-1);
  border-radius: 50%;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: .5rem;
}

.timeline-item:before {
  content: "";
  background: #ebebeb;
  width: 2px;
  position: absolute;
  top: 20px;
  bottom: -20px;
  left: 5px;
}

.timeline-item:last-child:before {
  display: none;
}

.timeline-content {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  flex: 1;
  padding: 1rem;
  transition: box-shadow .2s, transform .2s;
  box-shadow: 0 1px 2px #00000008;
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px #0000000f;
}

.timeline-item-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
  display: flex;
}

.timeline-content h4 {
  color: #4a4a4a;
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-meta {
  color: #9e9e9e;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .5rem;
  font-size: .9rem;
  display: flex;
}

.timeline-dates {
  font-weight: 500;
}

.timeline-modes {
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .5rem;
  display: flex;
}

.timeline-porteur {
  color: #757575;
  font-size: .9rem;
}

.board {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  display: grid;
}

.board-column {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  min-height: auto;
  padding: 1rem;
}

.board-column.collapsed {
  min-height: auto;
}

.board-column-header {
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 1rem;
  transition: margin-bottom .2s;
  display: flex;
}

.board-column:not(.collapsed) .board-column-header {
  margin-bottom: 1rem;
}

.board-cards {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.board-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  padding: 1rem;
  transition: box-shadow .2s;
  box-shadow: 0 1px 2px #00000008;
}

.board-card:hover {
  box-shadow: 0 2px 6px #0000000f;
}

.board-card h4 {
  color: #4a4a4a;
  margin-bottom: .5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.board-card-porteur {
  color: #9e9e9e;
  margin-bottom: .75rem;
  font-size: .85rem;
}

.board-card-meta {
  margin-bottom: .5rem;
}

.board-card-territoire {
  color: #757575;
  font-size: .8rem;
}

.board-card-modes {
  flex-wrap: wrap;
  gap: .4rem;
  display: flex;
}

.donnees-list {
  column-count: 2;
  column-gap: 1.5rem;
}

@media (width <= 1024px) {
  .donnees-list {
    column-count: 2;
  }
}

@media (width <= 640px) {
  .donnees-list {
    column-count: 1;
  }
}

.donnee-card {
  break-inside: avoid;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  transition: box-shadow .2s;
  box-shadow: 0 1px 2px #00000008;
}

.donnee-card:hover {
  box-shadow: 0 2px 8px #0000000f;
}

.donnee-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
  display: flex;
}

.donnee-card h3 {
  color: #4a4a4a;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  font-size: 1.25rem;
  font-weight: 600;
}

.donnee-proprietaire {
  color: #9e9e9e;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: .75rem;
  font-size: .95rem;
}

.donnee-description {
  color: #757575;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.donnee-meta {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.type-badge {
  background: var(--color-chart-4);
  color: #4a4a4a;
  cursor: pointer;
  border: 1px solid #00000014;
  border-radius: 12px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 500;
  transition: opacity .2s;
}

.type-badge:hover {
  opacity: .85;
}

.outil-badge {
  background: var(--color-chart-5);
  color: #4a4a4a;
  white-space: nowrap;
  border: 1px solid #00000014;
  border-radius: 12px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 500;
}

.gps-badge {
  background: var(--color-chart-1);
  color: #4a4a4a;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #00000014;
  border-radius: 12px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 500;
  transition: opacity .2s;
}

.gps-badge:hover {
  opacity: .85;
}

.sens-badge {
  border: 1px solid #00000014;
  border-radius: 12px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 500;
}

.sens-sensible {
  color: #4a4a4a;
  background: #f4c7d0;
}

.sens-ouvert {
  color: #4a4a4a;
  background: #c7d8c6;
}

.sens-anonymise {
  color: #4a4a4a;
  background: #b8d4e8;
}

.sens-default {
  color: #4a4a4a;
  background: #d5d5d5;
}

.valorisee-list {
  flex-direction: column;
  gap: .25rem;
  display: flex;
}

.valorisee-item {
  color: var(--color-chart-1);
  font-size: .9rem;
  font-style: italic;
}

.empty-state {
  text-align: center;
  color: #9e9e9e;
  padding: 3rem;
  font-size: 1.1rem;
}

.modal-overlay {
  z-index: 1000;
  background: #0009;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  margin: auto;
  position: relative;
  box-shadow: 0 4px 20px #00000014;
}

.modal-close {
  cursor: pointer;
  color: #4a4a4a;
  z-index: 10;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  transition: background .2s;
  display: flex;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-close:hover {
  background: #ebebeb;
}

.modal-body {
  max-height: calc(90vh - 4rem);
  padding: 2rem;
  overflow-y: auto;
}

.detail-modal {
  padding-right: 2rem;
}

.detail-header {
  border-bottom: 1px solid #ebebeb;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  display: flex;
}

.detail-header-content {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.detail-header-content h2 {
  color: #4a4a4a;
  flex: 1;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.detail-porteur-header {
  background-color: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: .75rem 1rem;
}

.detail-porteur {
  color: #9e9e9e;
  align-items: center;
  margin-top: .5rem;
  font-size: 1.1rem;
  display: flex;
}

.detail-header-badges {
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  display: flex;
}

.detail-sections {
  flex-direction: column;
  gap: 1.5rem;
  display: flex;
}

.detail-section {
  padding: 1rem 0;
}

.detail-section h3 {
  color: #4a4a4a;
  margin-bottom: .75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.detail-section p {
  color: #757575;
  white-space: pre-wrap;
  line-height: 1.6;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
  display: grid;
}

.detail-field {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.field-label {
  color: #9e9e9e;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .9rem;
  font-weight: 600;
}

.field-tags {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.field-tag {
  color: #4a4a4a;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: .4rem .8rem;
  font-size: .85rem;
}

.active-filters {
  background: none;
  border-bottom: 1px solid #ebebeb;
  border-radius: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 0;
  padding: 1rem;
  display: flex;
}

.active-filters-label {
  color: #9e9e9e;
  font-size: .9rem;
  font-weight: 600;
}

.filter-badge {
  background: var(--color-chart-1);
  color: #4a4a4a;
  cursor: pointer;
  border: none;
  border-radius: 20px;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  font-size: .85rem;
  transition: all .2s;
  display: flex;
}

.filter-badge:hover {
  background: var(--color-chart-2);
  transform: translateY(-1px);
}

.btn-clear-filters {
  cursor: pointer;
  color: #4a4a4a;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  padding: .4rem 1rem;
  font-size: .85rem;
  transition: all .2s;
}

.btn-clear-filters:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f5f5f5;
}

.toolbar {
  background: none;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  display: flex;
}

.toolbar .view-switcher {
  margin-bottom: 0;
}

.columns-selector {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  gap: .25rem;
  padding: .25rem;
  display: flex;
}

.columns-btn {
  cursor: pointer;
  color: #9e9e9e;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: .4rem .5rem;
  transition: all .2s;
  display: flex;
}

.columns-btn:hover {
  color: #4a4a4a;
  background: #ebebeb;
}

.columns-btn.active {
  background: var(--color-primary);
  color: #fff;
}

@media (width <= 768px) {
  .columns-btn-desktop {
    display: none;
  }
}

.export-btn {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  height: 38px;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  transition: all .2s;
  display: flex;
}

.export-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px #8bbaa64d;
}

.projet-card, .donnee-card {
  cursor: pointer;
}

.projet-card:hover, .donnee-card:hover {
  transform: translateY(-2px);
}

.porteur-with-logo {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.porteur-multiple {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.porteur-logo {
  object-fit: contain;
  flex-shrink: 0;
}

.porteur-logo-small {
  max-width: 60px;
  height: 20px;
}

.porteur-logo-medium {
  max-width: 80px;
  height: 28px;
}

.porteur-logo-large {
  max-width: 120px;
  height: 40px;
}

.porteur-name {
  color: #757575;
  font-size: inherit;
}

.footer {
  background: #fff;
  border-top: 1px solid #ebebeb;
  margin-top: 4rem;
  padding: 2rem 1rem 1rem;
}

.config-toggle-btn {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  z-index: 100;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  transition: all .2s;
  display: flex;
  position: fixed;
  bottom: 7rem;
  left: 2rem;
  box-shadow: 0 2px 8px #8bbaa64d;
}

.config-toggle-btn:hover {
  background: var(--color-primary-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 12px #8bbaa666;
}

.config-overlay {
  z-index: 1001;
  background: #0009;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.config-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 20px #00000014;
}

.config-header {
  border-bottom: 1px solid #ebebeb;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  display: flex;
}

.config-header h3 {
  color: #4a4a4a;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.config-close-btn {
  cursor: pointer;
  color: #4a4a4a;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  transition: background .2s;
  display: flex;
}

.config-close-btn:hover {
  background: #ebebeb;
}

.config-body {
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  display: flex;
}

.config-info {
  color: #757575;
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  font-size: .9rem;
  line-height: 1.5;
}

.config-info p {
  margin: 0 0 .5rem;
}

.config-info p:last-child {
  margin-bottom: 0;
}

.config-tip {
  color: var(--color-chart-1);
  margin-top: .5rem;
  font-size: .85rem;
}

.config-field {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.config-field label {
  color: #2c3e50;
  font-size: .95rem;
  font-weight: 600;
}

.config-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .75rem;
  font-size: .9rem;
  transition: border-color .2s;
}

.config-input:focus {
  border-color: #3489db;
  outline: none;
  box-shadow: 0 0 0 3px #3489db1a;
}

.config-actions {
  justify-content: flex-end;
  gap: 1rem;
  padding-top: .5rem;
  display: flex;
}

.config-cancel-btn {
  cursor: pointer;
  color: #2c3e50;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  transition: all .2s;
}

.config-cancel-btn:hover {
  background: #f8f9fa;
  border-color: #3489db;
}

.config-reload-btn {
  cursor: pointer;
  color: #fff;
  background: #3489db;
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  transition: all .2s;
  display: flex;
}

.config-reload-btn:hover:not(:disabled) {
  background: #2774c2;
}

.config-reload-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.spinning {
  animation: 1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer-content {
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
  display: flex;
}

.footer-section h4 {
  color: #2c3e50;
  margin-bottom: .25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-tagline {
  color: #7f8c8d;
  font-size: .9rem;
}

.footer-contact {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.footer-contact-item {
  color: #555;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  display: flex;
}

.footer-contact-item svg {
  color: #95a5a6;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #3489db;
  text-decoration: none;
  transition: color .2s;
}

.footer-contact-item a:hover {
  color: #2774c2;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1rem;
}

.footer-bottom p {
  color: #95a5a6;
  font-size: .8rem;
}

.info-button {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  z-index: 99;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  transition: all .2s;
  display: flex;
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  box-shadow: 0 4px 12px #006b5466;
}

.info-button:hover {
  background: var(--color-primary-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 16px #006b5480;
}

.scroll-buttons {
  z-index: 99;
  flex-direction: column;
  gap: .5rem;
  display: flex;
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
}

.scroll-button {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #2c3e50b3;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  transition: all .2s;
  display: flex;
  box-shadow: 0 2px 8px #0003;
}

.scroll-button:hover {
  background: #2c3e50e6;
  transform: scale(1.1);
  box-shadow: 0 4px 12px #0000004d;
}

.scroll-button:active {
  transform: scale(.95);
}

.loading-toast {
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  min-width: 300px;
  max-width: 500px;
  padding: 1rem 1.5rem;
  animation: .3s ease-out slideInUp;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 32px #00000026;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-toast-content {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.loading-toast-icon {
  flex-shrink: 0;
}

.loading-toast--loading {
  border-left: 4px solid var(--color-primary);
}

.loading-toast--loading .loading-toast-icon {
  color: var(--color-primary);
}

.loading-toast--success {
  border-left: 4px solid var(--color-primary);
}

.loading-toast--success .loading-toast-icon {
  color: var(--color-primary);
}

.loading-toast--error {
  border-left: 4px solid var(--color-accent);
}

.loading-toast--error .loading-toast-icon {
  color: var(--color-accent);
}

.loading-toast-message {
  color: var(--color-text-primary);
  font-size: .95rem;
  font-weight: 500;
}

.loading-toast-progress {
  background: var(--color-primary);
  transform-origin: 0;
  width: 100%;
  height: 3px;
  animation: linear progressBar;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes progressBar {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.spin {
  animation: 1s linear infinite spin;
}

@media (width <= 768px) {
  .scroll-buttons {
    display: none;
  }
}

.info-modal {
  max-width: 700px;
}

.info-modal h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.info-modal h3 {
  color: #2c3e50;
  margin: 1.5rem 0 .75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.info-modal p {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.info-modal ul {
  color: #555;
  margin: .5rem 0 1rem 1.5rem;
  padding-left: .5rem;
  line-height: 1.7;
}

.info-modal li {
  margin-bottom: .5rem;
}

.info-modal strong {
  color: #2c3e50;
}

.linked-items {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.linked-item-btn {
  text-align: left;
  cursor: pointer;
  color: #3489db;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  transition: all .2s;
}

.linked-item-btn:hover {
  background: #e9f5ff;
  border-color: #3489db;
  transform: translateX(4px);
}

.collapsible-section {
  margin-bottom: 1.5rem;
}

.collapsible-header {
  cursor: pointer;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  transition: all .2s;
  display: flex;
}

.collapsible-header:hover {
  background: #e9ecef;
  border-color: #3489db;
}

.collapsible-title {
  color: #2c3e50;
  align-items: center;
  gap: .75rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
}

.collapsible-count {
  color: #7f8c8d;
  margin-left: .5rem;
  font-size: .95rem;
  font-weight: 500;
}

.collapsible-content {
  padding-top: 1rem;
}

.statistics-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  display: grid;
}

.stat-card {
  border: 1px solid var(--color-border);
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  transition: all .3s;
}

.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px #006b5426;
}

.stat-value {
  color: var(--color-primary);
  margin-bottom: .5rem;
  font-size: 3rem;
  font-weight: 700;
}

.stats-section {
  margin-bottom: 4rem;
}

.section-title {
  color: var(--color-text-secondary);
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.partners-cloud {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 12px;
  margin-bottom: 3rem;
  padding: 2.5rem;
  box-shadow: 0 2px 8px #0000000d;
}

.partners-cloud h3 {
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.partners-logos {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  display: flex;
}

.partner-logo-item {
  filter: grayscale(20%) opacity(.85);
  cursor: pointer;
  flex: none;
  transition: all .3s;
}

.partner-logo-item:hover {
  filter: grayscale(0%) opacity();
  transform: scale(1.1);
}

.partner-logo-item img {
  object-fit: contain;
  max-width: 110px;
  height: 38px;
  display: block;
}

.charts-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  display: grid;
}

@media (width >= 1200px) {
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
}

.chart-card h3 {
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.board-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  min-height: auto;
  padding: 1rem;
  transition: all .2s;
}

.board-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #0000001a;
}

.board-card h4 {
  color: #2c3e50;
  margin-bottom: .5rem;
  font-size: .95rem;
  line-height: 1.3;
}

.board-card-porteur {
  margin-top: .5rem;
}

@media (width <= 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .header-content {
    width: 100%;
  }

  .header-logos {
    justify-content: flex-start;
    gap: .75rem;
    width: 100%;
  }

  .header-logo {
    opacity: .7;
    height: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: .85rem;
  }

  .charts-grid {
    display: none;
  }

  .mobile-stats-message {
    display: block;
  }

  .mobile-stats-message svg {
    margin-left: auto;
    margin-right: auto;
  }

  .partners-cloud {
    margin-top: 2rem;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    border-radius: 12px 12px 0 0;
    flex-direction: column;
    max-width: 100%;
    max-height: 90vh;
    margin: 0;
    display: flex;
  }

  .modal-close {
    background: var(--color-primary);
    color: #fff;
    z-index: 10;
    width: 44px;
    height: 44px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: 1rem;
    position: sticky;
    top: 1rem;
    right: 1rem;
    box-shadow: 0 2px 8px #0000004d;
  }

  .modal-close:hover {
    background: var(--color-primary-hover);
  }

  .modal-body {
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
  }

  .config-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .config-modal {
    border-radius: 12px 12px 0 0;
    flex-direction: column;
    max-width: 100%;
    max-height: 90vh;
    margin: 0;
    display: flex;
  }

  .config-header {
    flex-shrink: 0;
    position: relative;
  }

  .config-close-btn {
    background: var(--color-primary);
    color: #fff;
    z-index: 10;
    width: 44px;
    height: 44px;
    position: sticky;
    top: 1rem;
    box-shadow: 0 2px 8px #0000004d;
  }

  .config-close-btn:hover {
    background: var(--color-primary-hover);
  }

  .config-body {
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
  }

  .detail-modal {
    padding-right: 0;
  }

  .detail-header {
    flex-direction: column;
    gap: 1rem;
    padding-top: .5rem;
  }

  .detail-header-content {
    flex-direction: column;
  }

  .detail-porteur-header {
    width: 100%;
  }

  .detail-header-badges {
    flex-direction: row;
    align-items: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    padding: 1rem;
  }

  .filter-bar-top {
    flex-direction: column;
    width: 100%;
  }

  .search-box {
    flex: 1;
    width: 100%;
    min-width: 100%;
  }

  .clear-all-btn, .filters {
    width: 100%;
  }

  .multi-select, .simple-select {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .multi-select-options {
    max-height: 250px;
  }

  .projet-card-header, .donnee-card-header, .timeline-item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .control-panel {
    border-radius: 8px;
    margin-bottom: 1.5rem;
  }

  .tabs {
    justify-content: stretch;
    padding: .25rem .5rem 0;
  }

  .tab {
    flex: 1;
    padding: .75rem .5rem;
    font-size: .85rem;
  }

  .view-content {
    padding: 1rem;
  }

  .timeline-items {
    padding-left: 1rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .export-btn {
    display: none;
  }

  .active-filters {
    padding: 1rem;
  }

  .view-switcher {
    flex-wrap: wrap;
  }

  .view-btn {
    flex: auto;
    min-width: 120px;
  }

  .stats-section {
    display: none;
  }

  .filter-toggle-btn {
    cursor: pointer;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: .75rem;
    padding: .6rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s;
    display: flex;
  }

  .filter-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #3489db;
  }

  .filter-bar-content.closed {
    display: none;
  }

  .filter-bar-content.open {
    display: flex;
  }

  .info-button {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .config-toggle-btn {
    width: 48px;
    height: 48px;
    bottom: 5.5rem;
    left: 1.5rem;
  }

  .footer {
    z-index: 98;
    margin-bottom: 0;
    position: relative;
  }
}

.ressources-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.ressources-intro {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px #0000000d;
}

.ressources-intro h2 {
  color: var(--color-primary);
  margin-bottom: .5rem;
  font-size: 1.5rem;
}

.ressources-intro p {
  color: var(--color-text-secondary);
  font-size: .95rem;
  line-height: 1.6;
}

.ressources-category {
  margin-bottom: 2rem;
}

.ressources-category-header {
  background: #fff;
  border-left: 4px solid;
  border-radius: 12px 12px 0 0;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.25rem;
  display: flex;
  box-shadow: 0 2px 8px #0000000d;
}

.ressources-category-icon {
  justify-content: center;
  align-items: center;
  display: flex;
}

.ressources-category-header h3 {
  color: var(--color-text-primary);
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
}

.ressources-count {
  color: var(--color-text-light);
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: .25rem .75rem;
  font-size: .8rem;
}

.ressources-grid {
  background: #fff;
  border-radius: 0 0 12px 12px;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  display: flex;
  box-shadow: 0 2px 8px #0000000d;
}

.ressource-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  transition: all .2s;
  display: flex;
}

.ressource-card:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: 0 2px 8px #00000014;
}

.ressource-header {
  flex-direction: column;
  flex: 1;
  gap: .25rem;
  min-width: 0;
  display: flex;
}

.ressource-header h4 {
  color: var(--color-text-primary);
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.ressource-description {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: .875rem;
  line-height: 1.4;
}

.ressource-commentaire {
  color: var(--color-text-light);
  border-left: 2px solid var(--color-warning);
  background: #fff;
  border-radius: 4px;
  flex-shrink: 0;
  max-width: 250px;
  padding: .5rem .75rem;
  font-size: .8rem;
}

.ressource-commentaire em {
  font-style: italic;
}

.ressource-link-icon {
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: .5rem;
  transition: all .2s;
  display: flex;
}

.ressource-link-icon:hover {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px #006b544d;
}

.ressources-filters {
  background: #fff;
  border-radius: 12px;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  display: flex;
  box-shadow: 0 2px 8px #0000000d;
}

.ressource-filter-btn {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  transition: all .2s;
  display: flex;
}

.ressource-filter-btn:hover {
  border-color: var(--color-primary);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px #0000001a;
}

.ressource-filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px #006b544d;
}

.ressource-filter-btn.active .filter-icon {
  color: #fff !important;
}

.filter-icon {
  justify-content: center;
  align-items: center;
  display: flex;
}

.filter-count {
  opacity: .7;
  margin-left: .25rem;
  font-size: .75rem;
}

.ressources-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 2rem;
  font-style: italic;
}

.ressources-table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px #0000000d;
}

.ressources-table {
  border-collapse: collapse;
  width: 100%;
}

.ressources-table thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
}

.ressources-table thead th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
}

.ressources-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color .2s;
}

.ressources-table tbody tr:last-child {
  border-bottom: none;
}

.ressources-table tbody tr:hover {
  background-color: #f9fafb;
}

.ressources-table tbody td {
  vertical-align: top;
  padding: 1rem 1.25rem;
}

.ressource-titre-cell {
  color: var(--color-text-primary);
  min-width: 250px;
  max-width: 400px;
  font-weight: 500;
}

.ressource-titre-content {
  line-height: 1.4;
}

.ressource-description-cell {
  color: var(--color-text-secondary);
  min-width: 300px;
  font-size: .875rem;
  line-height: 1.5;
}

.ressource-commentaire-inline {
  border-left: 3px solid var(--color-warning);
  color: var(--color-text-light);
  background: #fef9e7;
  border-radius: 4px;
  margin-top: .5rem;
  padding: .4rem .75rem;
  font-size: .8rem;
}

.ressource-commentaire-inline em {
  font-style: italic;
}

.ressource-lien-cell {
  text-align: center;
  width: 80px;
}

.ressource-link-icon {
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: .5rem;
  transition: all .2s;
  display: inline-flex;
}

.ressource-link-icon:hover {
  color: var(--color-primary);
  background: #006b541a;
  transform: translateY(-1px);
}

.ressource-link-button {
  display: none;
}

.ressource-type-cell {
  width: 180px;
}

.ressource-type-badge {
  white-space: nowrap;
  border: 1px solid;
  border-radius: 6px;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  font-size: .8rem;
  font-weight: 500;
  display: inline-flex;
}

@media (width <= 1200px) {
  .ressources-table-wrapper {
    overflow-x: auto;
  }

  .ressources-table {
    min-width: 900px;
  }
}

@media (width <= 768px) {
  .ressources-container {
    padding: 1rem;
  }

  .ressources-intro {
    padding: 1.25rem;
  }

  .ressources-filters {
    gap: .5rem;
    padding: .75rem;
  }

  .ressource-filter-btn {
    padding: .4rem .75rem;
    font-size: .8rem;
  }

  .ressources-table-wrapper {
    border-radius: 8px;
  }

  .ressources-table thead th {
    padding: .75rem 1rem;
    font-size: .8rem;
  }

  .ressources-table tbody td {
    padding: .75rem 1rem;
  }

  .ressource-titre-cell {
    min-width: 200px;
  }

  .ressource-description-cell {
    min-width: 250px;
    font-size: .8rem;
  }

  .ressource-type-badge {
    padding: .3rem .6rem;
    font-size: .75rem;
  }

  .ressources-category-header, .ressources-grid, .ressource-card, .ressource-header, .ressource-link-icon {
    display: none;
  }
}

.matrix-view {
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;
  display: flex;
}

.matrix-controls {
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
  display: flex;
  box-shadow: 0 2px 8px #0000000d;
}

.matrix-axis-selector {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.matrix-axis-selector label {
  color: var(--color-text-primary);
  font-size: .95rem;
  font-weight: 600;
}

.dimension-buttons {
  flex-wrap: wrap;
  gap: .4rem;
  display: flex;
}

.dimension-btn {
  cursor: pointer;
  color: #2c3e50;
  white-space: nowrap;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  padding: .4rem .75rem;
  font-size: .8rem;
  transition: all .2s;
}

.dimension-btn:hover {
  border-color: var(--color-primary);
  background: #f8f9fa;
}

.dimension-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

.matrix-container {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  overflow-x: auto;
  box-shadow: 0 2px 8px #0000000d;
}

.matrix-table {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: inline-block;
}

.matrix-row {
  align-items: stretch;
  display: flex;
}

.matrix-header-row {
  background: #f8f9fa;
}

.matrix-corner-label {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fafafa;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  height: 160px;
}

.matrix-x-label {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #f8f9fa;
  justify-content: center;
  align-items: flex-end;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 160px;
  padding: .5rem .25rem;
  display: flex;
  position: relative;
  overflow: visible;
}

.matrix-x-label:last-child {
  border-right: none;
}

.matrix-x-label span {
  writing-mode: sideways-lr;
  color: #2c3e50;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  max-width: 45px;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.2;
}

.matrix-y-label {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  height: 50px;
  color: var(--color-text-primary);
  background: #f8f9fa;
  align-items: center;
  padding: .5rem .75rem;
  font-size: .75rem;
  font-weight: 500;
  display: flex;
  overflow: hidden;
}

.matrix-row:last-child .matrix-y-label {
  border-bottom: none;
}

.matrix-y-label span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
}

.matrix-cell {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  transition: all .15s;
  display: flex;
  position: relative;
}

.matrix-row:last-child .matrix-cell {
  border-bottom: none;
}

.matrix-cell:last-child {
  border-right: none;
}

.matrix-cell.empty {
  cursor: default;
}

.matrix-cell:not(.empty):hover {
  outline-offset: -2px;
  z-index: 10;
  outline: 2px solid #4caf50;
  background-color: #4caf501a !important;
}

.matrix-cell.active {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  z-index: 11;
}

.matrix-cell-count {
  color: #000000b3;
  -webkit-user-select: none;
  user-select: none;
  font-size: .7rem;
  font-weight: 600;
}

.matrix-tooltip {
  border: 2px solid var(--color-primary);
  z-index: 1000;
  pointer-events: auto;
  background: #fff;
  border-radius: 8px;
  min-width: 280px;
  max-width: 400px;
  margin-top: .5rem;
  padding: 1rem;
  position: fixed;
  transform: translateY(8px);
  box-shadow: 0 8px 24px #0003;
}

.matrix-tooltip-header {
  border-bottom: 2px solid var(--color-border);
  margin-bottom: .75rem;
  padding-bottom: .75rem;
}

.matrix-tooltip-title {
  color: var(--color-text-primary);
  margin-bottom: .25rem;
  font-size: .9rem;
  line-height: 1.4;
}

.matrix-tooltip-title strong {
  color: var(--color-primary);
}

.matrix-tooltip-count {
  color: var(--color-text-secondary);
  font-size: .8rem;
  font-weight: 600;
}

.loading-overlay {
  z-index: 10000;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #fffffff2;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.loading-content {
  background: #fff;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem;
  display: flex;
  box-shadow: 0 10px 40px #0000001a;
}

.loading-spinner {
  color: var(--color-primary);
  animation: 1s linear infinite spin;
}

.loading-message {
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.error-display {
  z-index: 10000;
  background: #fffffffa;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.error-content {
  border: 2px solid var(--color-accent);
  text-align: center;
  background: #fff;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  padding: 3rem;
  display: flex;
  box-shadow: 0 10px 40px #0000001a;
}

.error-icon {
  color: var(--color-accent);
}

.error-content h2 {
  color: var(--color-text-primary);
  margin: 0;
  font-size: 1.5rem;
}

.error-message {
  color: var(--color-accent);
  background: #c8102e1a;
  border-radius: 8px;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.error-details {
  text-align: left;
  background: var(--color-bg-light);
  border-radius: 8px;
  width: 100%;
  padding: 1.5rem;
  font-size: .9rem;
}

.error-details p {
  margin-bottom: .75rem;
}

.error-details ul {
  margin: .5rem 0 1rem 1.5rem;
  padding: 0;
}

.error-details li {
  color: var(--color-text-secondary);
  margin-bottom: .25rem;
}

.error-hint {
  color: var(--color-text-light);
  margin-top: 1rem;
  font-style: italic;
}

.retry-button {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all .2s;
  display: flex;
}

.retry-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #006b544d;
}

.matrix-tooltip-projects {
  flex-direction: column;
  gap: .5rem;
  max-height: 300px;
  display: flex;
  overflow-y: auto;
}

.matrix-tooltip-project {
  color: var(--color-text-primary);
  cursor: pointer;
  background: #f8f9fa;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: .75rem;
  font-size: .85rem;
  line-height: 1.3;
  transition: all .2s;
}

.matrix-tooltip-project:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary-hover);
  transform: translateX(4px);
}

.matrix-cell.selected {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  z-index: 11;
}

.matrix-sidebar-overlay {
  z-index: 999;
  background: #0000004d;
  animation: .2s fadeIn;
  position: fixed;
  inset: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.matrix-sidebar {
  z-index: 1000;
  background: #fff;
  flex-direction: column;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  animation: .3s slideInRight;
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  box-shadow: -4px 0 24px #00000026;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.matrix-sidebar-header {
  border-bottom: 2px solid var(--color-border);
  background: #f8f9fa;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  display: flex;
}

.matrix-sidebar-title {
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  display: flex;
}

.matrix-sidebar-dimensions {
  color: var(--color-text-primary);
  font-size: 1rem;
  line-height: 1.4;
}

.matrix-sidebar-dimensions strong {
  color: var(--color-primary);
  font-weight: 600;
}

.matrix-sidebar-count {
  color: var(--color-text-secondary);
  font-size: .85rem;
  font-weight: 600;
}

.matrix-sidebar-close {
  border: 1px solid var(--color-border);
  cursor: pointer;
  width: 36px;
  height: 36px;
  color: var(--color-text-secondary);
  background: #fff;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.matrix-sidebar-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.matrix-sidebar-content {
  flex-direction: column;
  flex: 1;
  gap: .75rem;
  padding: 1rem;
  display: flex;
  overflow-y: auto;
}

.matrix-sidebar-project {
  cursor: pointer;
  background: #f8f9fa;
  border: 2px solid #0000;
  border-radius: 8px;
  padding: 1rem;
  transition: all .2s;
}

.matrix-sidebar-project:hover {
  border-color: var(--color-primary);
  background: #fff;
  transform: translateX(-4px);
  box-shadow: 4px 4px 12px #00000014;
}

.matrix-sidebar-project-title {
  color: var(--color-text-primary);
  margin-bottom: .5rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}

.matrix-sidebar-project-desc {
  color: var(--color-text-secondary);
  font-size: .85rem;
  line-height: 1.4;
}

.matrix-sidebar.hover-mode {
  pointer-events: none;
  box-shadow: -2px 0 12px #00000014;
}

.matrix-sidebar.hover-mode .matrix-sidebar-content {
  pointer-events: none;
}

.matrix-sidebar-hint {
  color: var(--color-text-secondary);
  margin-top: .25rem;
  font-size: .75rem;
  font-style: italic;
}

.matrix-sidebar.small-screen {
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
}

.matrix-sidebar.small-screen .matrix-sidebar-content {
  pointer-events: auto;
}

.matrix-legend {
  color: var(--color-text-secondary);
  background: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  font-size: .85rem;
  display: flex;
}

.matrix-legend-label {
  color: var(--color-text-primary);
  font-weight: 600;
}

.matrix-legend-scale {
  align-items: center;
  gap: 1rem;
  display: flex;
}

.matrix-legend-item {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.matrix-legend-box {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  width: 20px;
  height: 20px;
}

@media (width <= 1024px) {
  .matrix-container {
    padding: 1rem;
  }

  .matrix-corner-label {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 130px;
  }

  .matrix-y-label {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    font-size: .7rem;
  }

  .matrix-x-label {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 130px;
  }

  .matrix-x-label span {
    max-width: 38px;
    font-size: .65rem;
    font-weight: 600;
  }

  .matrix-cell {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
  }
}

@media (width <= 640px) {
  .matrix-controls {
    padding: 1rem;
  }

  .dimension-btn {
    padding: .4rem .75rem;
    font-size: .8rem;
  }

  .matrix-container {
    padding: .75rem;
  }

  .matrix-corner-label {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 120px;
  }

  .matrix-y-label {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: .25rem .5rem;
    font-size: .65rem;
  }

  .matrix-x-label {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 120px;
  }

  .matrix-x-label span {
    max-width: 34px;
    font-size: .6rem;
    font-weight: 600;
  }

  .matrix-cell {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
  }

  .matrix-cell-count {
    font-size: .65rem;
  }

  .matrix-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .matrix-legend {
    flex-direction: column;
    gap: .75rem;
    font-size: .8rem;
  }

  .matrix-legend-scale {
    gap: .75rem;
  }
}

.porteur-stats {
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.stat-card {
  background: var(--color-bg-light);
  border-radius: 8px;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  min-width: 140px;
  padding: 1rem;
  display: flex;
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: .85rem;
  font-weight: 500;
}

.stat-value {
  color: var(--color-text-primary);
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-success {
  color: var(--color-primary);
}

.stat-warning {
  color: var(--color-chart-5);
}

.export-section {
  border-left: 4px solid var(--color-primary);
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.export-description {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-size: .95rem;
  line-height: 1.5;
}

.export-button {
  align-items: center;
  gap: .5rem;
  display: inline-flex;
}

.porteur-table-wrapper {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  max-height: 500px;
  overflow: auto;
}

.porteur-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
}

.porteur-table thead {
  background: var(--color-primary);
  color: #fff;
  z-index: 10;
  position: sticky;
  top: 0;
}

.porteur-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 600;
}

.porteur-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background .2s;
}

.porteur-table tbody tr:hover {
  background: #f5f5f5;
}

.porteur-table tbody tr.no-logo-row {
  background: #fff9e6;
}

.porteur-table tbody tr.no-logo-row:hover {
  background: #fff3d6;
}

.porteur-table td {
  vertical-align: middle;
  padding: .75rem 1rem;
}

.logo-cell {
  text-align: center;
  padding: .5rem !important;
}

.porteur-preview-logo {
  object-fit: contain;
  width: auto;
  max-width: 50px;
  height: 30px;
}

.no-logo-icon {
  color: var(--color-text-light);
  justify-content: center;
  align-items: center;
  display: flex;
}

.porteur-name-cell {
  font-size: .9rem;
}

.logo-url-cell {
  color: var(--color-text-secondary);
  word-break: break-all;
  font-size: .8rem;
}

.logo-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s;
}

.logo-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.no-logo-text {
  color: var(--color-text-light);
  font-style: italic;
}

.large-modal {
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
}

.large-modal .modal-body {
  overflow-y: auto;
}

@media (width <= 768px) {
  .porteur-stats {
    flex-direction: column;
  }

  .stat-card {
    min-width: 100%;
  }

  .porteur-table {
    font-size: .8rem;
  }

  .porteur-table th, .porteur-table td {
    padding: .5rem;
  }

  .porteur-preview-logo {
    height: 24px;
  }
}

.footer-logo-button {
  border: 1px solid var(--color-chart-1);
  color: var(--color-chart-1);
  cursor: pointer;
  background: none;
  border-radius: 6px;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  font-family: inherit;
  font-size: .85rem;
  transition: all .2s;
  display: flex;
}

.footer-logo-button:hover {
  background: var(--color-chart-1);
  color: #4a4a4a;
  transform: translateY(-1px);
}

.footer-logo-button svg {
  color: inherit !important;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}
