@charset "UTF-8";
/* ==================================================
   Key Figures – Linobase
   (CSS only – animation gérée en JS ensuite)
   ================================================== */
/* ============================
   VARIABLES SCSS & CSS
   ============================ */
/* ---- Fonts ---- */
/* ---- Couleurs ---- */
/* ---- Typographie ---- */
/* ---- Espacements ---- */
/* ---- CKEditor / contenu éditorial ---- */
/* --------------------------------------------------
   Section
-------------------------------------------------- */
.c-keyfigures {
  margin-top: calc(1rem * 2);
  padding: calc(1rem * 2.25) 0;
  background-color: rgba(54, 6, 117, 0.04);
}
.c-keyfigures .c-keyfigures__header {
  text-align: center;
  margin-bottom: calc(1rem * 2);
}
.c-keyfigures .c-keyfigures__title {
  margin: 0;
}
.c-keyfigures .c-keyfigures__intro {
  margin-top: calc(1rem * 0.75);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.c-keyfigures__panel {
  background: #fff;
  border-radius: 1.5rem;
  padding: calc(1rem * 2);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 575px) {
  .c-keyfigures {
    margin-top: calc(1rem * 1.5);
  }
}
/* --------------------------------------------------
   Grid
-------------------------------------------------- */
/* Grid sur le wrapper réel Drupal */
.c-keyfigures__grid > .field > .field__items {
  display: grid;
  gap: calc(1rem * 2);
}

.c-keyfigures--cols-2 .c-keyfigures__grid > .field > .field__items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c-keyfigures--cols-3 .c-keyfigures__grid > .field > .field__items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.c-keyfigures--cols-4 .c-keyfigures__grid > .field > .field__items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .c-keyfigures--cols-3 .c-keyfigures__grid > .field > .field__items,
  .c-keyfigures--cols-4 .c-keyfigures__grid > .field > .field__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .c-keyfigures__grid > .field > .field__items {
    grid-template-columns: 1fr;
  }
}
/* Sécurité overflow */
.c-keyfigures__grid > .field > .field__items > .field__item {
  min-width: 0;
}

/* --------------------------------------------------
   Item
-------------------------------------------------- */
.c-keyfigure {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: calc(1rem * 0.75);
}

/* Icône */
.c-keyfigure__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(54, 6, 117, 0.08);
  display: grid;
  place-items: center;
}
.c-keyfigure__icon .field {
  margin: 0;
}
.c-keyfigure__icon svg,
.c-keyfigure__icon img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Valeur */
.c-keyfigure__value-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.25rem;
}

.c-keyfigure__value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: #360675;
}

/* Suffixe (% € + ans…) */
.c-keyfigure__suffix {
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 0.15rem;
  opacity: 0.85;
}

/* Libellé */
.c-keyfigure__label {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Texte optionnel */
.c-keyfigure__text {
  max-width: 32ch;
}
.c-keyfigure__text .field {
  margin: 0;
}
.c-keyfigure__text p {
  margin: 0;
}

/* --------------------------------------------------
   Motion safe (fallback)
-------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .c-keyfigure__value {
    -webkit-transition: none;
    transition: none;
  }
}