/* =========================================================
   Home — Parcours
   ========================================================= */

.path-frontpage #main-wrapper {
  margin-top: 0;
}
.path-frontpage #main-wrapper article .node__content {
  margin-top: 0;
}

.path-frontpage #parcours {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 4vw, 4rem);
  padding: 4rem 0;
  display: flex;
  flex-wrap: wrap;
}

.path-frontpage #parcours > .layout__region {
  flex: 1 1 330px;
  min-width: 330px;
}

@media (min-width: 992px) {
    .path-frontpage #parcours {
        flex-wrap: nowrap !important;
    }
    
    .path-frontpage #parcours > .layout__region {
        flex: 1; 
        min-width: 0;
    }
}

.path-frontpage #parcours::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% 25%, rgba(64,87,103,.05), transparent 62%),
    radial-gradient(800px 520px at 85% 30%, rgba(129,142,150,.05), transparent 62%),
    linear-gradient(180deg, rgba(179,184,188,.06), rgba(179,184,188,.02));
  background-size: 140% 140%;
}

.path-frontpage #parcours > .layout__region {
  padding: 0;
}

.path-frontpage #parcours > .layout__region > .block {
  margin: 0;
  padding: 0 .6rem;
  height: 100%;
}

.path-frontpage #parcours .content,
.path-frontpage #parcours .field__item {
  height: 100%;
}

.path-frontpage #parcours .field__item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.path-frontpage #parcours .field__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.12);
}

.path-frontpage #parcours .home-card__icon {
  display: block;
  width: 50px;
  height: 50px;
}

.path-frontpage #parcours .icon-circle {
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 161, 32, 0.08);
}

.path-frontpage #parcours h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--bs-body-color, #212529);
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.path-frontpage #parcours p {
  margin: 0 0 1.5rem;
  line-height: 1.65;
  color: var(--bs-secondary-color, #6c757d);
  flex-grow: 1;
}

.path-frontpage #parcours ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(0,0,0,.08);
  text-align: left;
}

.path-frontpage #parcours ul li + li {
  margin-top: .75rem;
}

.path-frontpage #parcours ul li a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--bs-link-color, #0d6efd);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
}

.path-frontpage #parcours ul li a:hover,
.path-frontpage #parcours ul li a:focus {
  color: var(--bs-link-hover-color, var(--bs-link-color, #0a58ca));
  text-decoration: none;
}

.path-frontpage #parcours ul li a::before {
  content: "→";
  opacity: .55;
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .path-frontpage #parcours {
    padding: 3rem 0;
  }

  .path-frontpage #parcours > .layout__region + .layout__region {
    margin-top: 1rem;
  }

  .path-frontpage #parcours > .layout__region > .block {
    padding: 0;
  }

  .path-frontpage #parcours .field__item {
    padding: 1.5rem 1.25rem;
  }
}

/* =========================================================
   Home — Histoire
   ========================================================= */

.path-frontpage #histoire-1.content-section::before,
.path-frontpage #histoire-2.content-section::before{
  Background: transparent;
  /*background:
    radial-gradient(900px 600px at 15% 25%, rgba(64,87,103,.05), transparent 62%),
    radial-gradient(800px 520px at 85% 30%, rgba(129,142,150,.05), transparent 62%),
    linear-gradient(180deg, rgba(179,184,188,.06), rgba(179,184,188,.02));*/
  background-size: 140% 140%;
}

.path-frontpage #histoire-1 {
    padding-block-start: clamp(2rem, 4vw, 4rem); /* Espace en haut uniquement */
    padding-block-end: 0; 
}

.path-frontpage #histoire-2 {
    padding-block-start: 0;
    padding-block-end: clamp(2rem, 4vw, 4rem); /* Espace en bas uniquement */
}

.path-frontpage #histoire-1 .layout__region {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.path-frontpage #histoire-1 .layout__region > *:last-child {
  margin-bottom: 0;
}