/* APFN Catalogue — accueil PrestaShop 0.7.0 */

.apfn-catalog-home {
  --apfn-home-blue: #6a9ae3;
  --apfn-home-blue-dark: #578bd8;
  --apfn-home-ink: #333c4c;
  --apfn-home-text: #626b79;
  --apfn-home-line: #dfe7f3;
  --apfn-home-surface: #f4f7fe;
  color: var(--apfn-home-ink);
}

.apfn-catalog-home h1,
.apfn-catalog-home h2,
.apfn-catalog-home p {
  margin-top: 0;
}

.apfn-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  gap: 32px;
  align-items: stretch;
  margin: 28px 0 58px;
}

.apfn-catalog-hero__content {
  padding: clamp(34px, 5vw, 72px);
  border-radius: 4px;
  background: linear-gradient(130deg, #f4f7fe 0%, #e8f0fc 100%);
}

.apfn-catalog-kicker {
  margin-bottom: 12px;
  color: var(--apfn-home-blue-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.apfn-catalog-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--apfn-home-ink);
  font-size: clamp(2.15rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.apfn-catalog-hero__intro {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--apfn-home-text);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.apfn-catalog-search {
  display: flex;
  max-width: 760px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--apfn-home-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(51, 60, 76, .08);
}

.apfn-catalog-search input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--apfn-home-ink);
  font-size: 1rem;
}

.apfn-catalog-search input:focus {
  outline: 0;
}

.apfn-catalog-search button,
.apfn-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.apfn-catalog-search button,
.apfn-home-button--primary {
  border-color: var(--apfn-home-blue);
  background: var(--apfn-home-blue);
  color: #fff;
}

.apfn-catalog-search button:hover,
.apfn-catalog-search button:focus,
.apfn-home-button--primary:hover,
.apfn-home-button--primary:focus {
  border-color: var(--apfn-home-blue-dark);
  background: var(--apfn-home-blue-dark);
  color: #fff;
}

.apfn-home-button--secondary {
  border-color: var(--apfn-home-blue);
  background: #fff;
  color: var(--apfn-home-blue-dark);
}

.apfn-home-button--secondary:hover,
.apfn-home-button--secondary:focus {
  border-color: var(--apfn-home-blue-dark);
  background: var(--apfn-home-blue-dark);
  color: #fff;
}

.apfn-catalog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apfn-customer-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--apfn-home-line);
  border-top: 5px solid var(--apfn-home-blue);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(51, 60, 76, .07);
}

.apfn-customer-card__eyebrow {
  margin-bottom: 10px;
  color: var(--apfn-home-blue-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.apfn-customer-card h2 {
  margin-bottom: 14px;
  color: var(--apfn-home-ink);
  font-size: 1.55rem;
  line-height: 1.25;
}

.apfn-customer-card p:not(.apfn-customer-card__eyebrow) {
  margin-bottom: 24px;
  color: var(--apfn-home-text);
  line-height: 1.6;
}

.apfn-customer-card .apfn-home-button {
  width: 100%;
}

.apfn-customer-card__link {
  display: block;
  margin-top: 16px;
  color: var(--apfn-home-blue-dark);
  font-weight: 600;
  text-align: center;
}

.apfn-category-section {
  margin-bottom: 58px;
}

.apfn-section-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.apfn-section-heading h2,
.apfn-home-help h2 {
  margin-bottom: 0;
  color: var(--apfn-home-ink);
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  line-height: 1.2;
}

.apfn-section-heading > a {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: var(--apfn-home-blue-dark);
  font-weight: 700;
}

.apfn-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.apfn-category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 24px;
  border: 1px solid var(--apfn-home-line);
  border-radius: 3px;
  background: #fff;
  color: var(--apfn-home-ink);
  box-shadow: 0 8px 24px rgba(51, 60, 76, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.apfn-category-card:hover,
.apfn-category-card:focus {
  border-color: var(--apfn-home-blue);
  color: var(--apfn-home-ink);
  box-shadow: 0 12px 30px rgba(51, 60, 76, .1);
  transform: translateY(-2px);
}

.apfn-category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--apfn-home-surface);
  color: var(--apfn-home-blue-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.apfn-category-card__label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.apfn-category-card__arrow {
  color: var(--apfn-home-blue-dark);
  font-size: 1.35rem;
}

.apfn-category-card--all {
  border-color: var(--apfn-home-blue);
  background: var(--apfn-home-surface);
}

.apfn-home-help {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  padding: clamp(28px, 4vw, 48px);
  border-left: 5px solid var(--apfn-home-blue);
  background: var(--apfn-home-surface);
}

.apfn-home-help > div {
  max-width: 760px;
}

.apfn-home-help h2 {
  margin-bottom: 12px;
}

.apfn-home-help p:last-child {
  margin-bottom: 0;
  color: var(--apfn-home-text);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .apfn-catalog-hero {
    grid-template-columns: 1fr;
  }

  .apfn-customer-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
  }

  .apfn-customer-card > * {
    grid-column: 1;
  }

  .apfn-customer-card .apfn-home-button,
  .apfn-customer-card__link {
    grid-column: 2;
  }

  .apfn-customer-card .apfn-home-button {
    grid-row: 1 / span 2;
    align-self: end;
  }

  .apfn-customer-card__link {
    grid-row: 3;
  }

  .apfn-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .apfn-catalog-hero {
    gap: 18px;
    margin-top: 18px;
    margin-bottom: 42px;
  }

  .apfn-catalog-hero__content,
  .apfn-customer-card {
    padding: 26px 20px;
  }

  .apfn-catalog-search {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .apfn-catalog-search input,
  .apfn-catalog-search button {
    width: 100%;
  }

  .apfn-catalog-search input {
    margin-bottom: 10px;
    border: 1px solid var(--apfn-home-line);
    background: #fff;
  }

  .apfn-catalog-hero__actions,
  .apfn-home-help {
    display: block;
  }

  .apfn-catalog-hero__actions .apfn-home-button {
    width: 100%;
  }

  .apfn-catalog-hero__actions .apfn-home-button + .apfn-home-button {
    margin-top: 10px;
  }

  .apfn-customer-card {
    display: block;
  }

  .apfn-section-heading {
    display: block;
  }

  .apfn-section-heading > a {
    display: inline-block;
    margin-top: 12px;
  }

  .apfn-category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apfn-category-card {
    min-height: 92px;
    padding: 18px;
  }

  .apfn-home-help .apfn-home-button {
    width: 100%;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apfn-catalog-home * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
