/* WKAD — Ajustements des états visuels et engagements, v0.1.2.
   Les quatre étapes sont neutres au repos ; seule la carte survolée est teintée.
   Le focus d'un éventuel lien conserve la même mise en évidence.
   Les cartes purement informatives ne sont pas ajoutées à l'ordre de tabulation. */

.wkad-home .wkad-home-steps-grid > li,
.wkad-home .wkad-home-steps-grid > li:first-child {
  background: #fff;
  border-color: var(--wkad-border, #dce5e4);
}

.wkad-home .wkad-home-steps-grid > li .wkad-home-step-icon,
.wkad-home .wkad-home-steps-grid > li:first-child .wkad-home-step-icon {
  background-color: var(--wkad-pale, #e7f4f2);
}

.wkad-home .wkad-home-steps-grid > li {
  transition: background-color .15s ease, border-color .15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .wkad-home .wkad-home-steps-grid > li:hover {
    background: var(--wkad-pale, #e7f4f2);
    border-color: var(--wkad-teal, #286b73);
  }
  .wkad-home .wkad-home-steps-grid > li:hover .wkad-home-step-icon {
    background-color: var(--wkad-yellow, #ffe36a);
  }
}

.wkad-home .wkad-home-steps-grid > li:focus-within {
  background: var(--wkad-pale, #e7f4f2);
  border-color: var(--wkad-teal, #286b73);
}

.wkad-home .wkad-home-steps-grid > li:focus-within .wkad-home-step-icon {
  background-color: var(--wkad-yellow, #ffe36a);
}

@media (prefers-reduced-motion: reduce) {
  .wkad-home .wkad-home-steps-grid > li { transition: none; }
}

@media (forced-colors: active) {
  .wkad-home .wkad-home-steps-grid > li:focus-within { outline: 2px solid Highlight; }
}

/* Quatre engagements réunis dans une même composition éditoriale.
   Les pictogrammes décoratifs accompagnent les intitulés et leurs textes. */
.wkad-home .wkad-home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #bcced0;
  border-top: 3px solid var(--wkad-violet, #5a267e);
  border-radius: .75rem;
  background: #fff;
  list-style: none;
}

.wkad-home .wkad-home-trust-grid .wkad-home-trust-card {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: .75rem;
  row-gap: .65rem;
  min-width: 0;
  padding: clamp(1.125rem, 2vw, 1.75rem);
  border: 0;
  border-inline-start: 1px solid #d8e3e3;
  border-radius: 0;
  background: #fff;
  color: var(--wkad-navy, #163844);
}
.wkad-home .wkad-home-trust-grid .wkad-home-trust-card:first-child { border-inline-start: 0; }

.wkad-home .wkad-home-trust-grid .wkad-home-trust-card .wkad-home-trust-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-size: 2.25rem;
  background-repeat: no-repeat;
  color: var(--wkad-violet, #5a267e);
  font-size: 0;
  line-height: 0;
}
.wkad-home .wkad-home-trust-grid .wkad-home-trust-card .wkad-home-trust-icon-official { background-image: url('../images/wkad-icon-institution.svg'); }
.wkad-home .wkad-home-trust-grid .wkad-home-trust-card .wkad-home-trust-icon-free { background-image: url('../images/wkad-icon-gratuite.svg'); }
.wkad-home .wkad-home-trust-grid .wkad-home-trust-card .wkad-home-trust-icon-private { background-image: url('../images/wkad-icon-lock.svg'); }
.wkad-home .wkad-home-trust-grid .wkad-home-trust-card .wkad-home-trust-icon-guided { background-image: url('../images/wkad-icon-people.svg'); }

.wkad-home .wkad-home-trust-grid .wkad-home-trust-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--wkad-navy, #163844);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  overflow-wrap: anywhere;
}
.wkad-home .wkad-home-trust-grid .wkad-home-trust-card p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #405d66;
  font-size: .95rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (max-width: 74.99rem) {
  .wkad-home .wkad-home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card:nth-child(odd) { border-inline-start: 0; }
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card:nth-child(n+3) { border-top: 1px solid #d8e3e3; }
}
@media (max-width: 43.99rem) {
  .wkad-home .wkad-home-trust-grid { grid-template-columns: minmax(0, 1fr); }
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card { border-inline-start: 0; }
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card + .wkad-home-trust-card { border-top: 1px solid #d8e3e3; }
}
@media (forced-colors: active) {
  .wkad-home .wkad-home-trust-grid,
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card { border-color: CanvasText; }
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card .wkad-home-trust-icon { background-image: none; }
}
@media print {
  .wkad-home .wkad-home-trust-grid { display: block; }
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card {
    break-inside: avoid;
    border-inline-start: 0;
  }
  .wkad-home .wkad-home-trust-grid .wkad-home-trust-card + .wkad-home-trust-card { border-top: 1px solid #d8e3e3; }
}
