/* ============================================================
   La Poste — Aide en ligne (replica)
   ============================================================ */
:root {
  --yellow: #ffcb05;
  --yellow-bar: #ffc905;
  --blue: #003da5;
  --neutral-bluegrey-97: #f6f6f9;
  --cat-hover-bg: #eef0ff;
  --cat-hover-border: #b8c3ff;
  --focus: #0f62fe;
  --magenta: #a71680;
  --net-blue: #0000ff;

  --panel-blue-bg: #f5f8ff;
  --panel-blue-line: #ccdeff;
  --grey-text: #393939;
  --light-grey-text: #636363;
  --dark: #353535;
  --faq-text: #3c3c3c;
  --contact-btn: #505050;
  --announce-bg: #e8f6fc;
  --announce-title: #09699e;
  --announce-icon: #33b0f6;
  --panel-bg: #f6f6f9;
  --page-bg-mobile: #f6f6f9;
  --promo-bg: #ebf0f8;
  --footer-links-bg: #f7f7f7;
  --border: #e1e1e1;
  --divider: #c6c6c6;
  --skiplinks-bg: #f6f6f6;
  --shadow-card: 0 2px 2px 0 rgba(103, 110, 144, 0.2), 0 2px 4px 0 rgba(103, 110, 144, 0.16);
  --shadow-header: 0 16px 40px 1px rgba(103, 110, 144, 0.15), 0 8px 8px 0 rgba(103, 110, 144, 0.05),
    0 4px 4px 0 rgba(103, 110, 144, 0.08), 0 2px 2px 0 rgba(103, 110, 144, 0.05), 0 1px 2px 0 rgba(103, 110, 144, 0.1);
  --font-brand: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Verdana, sans-serif;
  --maxw-hero: 1440px; /* → 1376px content, matches original hero cap */
  --maxw-content: 1920px; /* → 1856px content, matches original content cap */
  --color-status-content-error: #d91414;
  --color-content-default: #282828;

  /* usage definitions */
  --article-background: var(--neutral-bluegrey-97);

  /* Brand accents that differ between the laposte.net KBs; css/utilisateur.css and css/expediteur.css override them. */
  --brand-band: var(--yellow-bar);
  --brand-hero-bg: var(--net-blue);
  --brand-hero-title: #fff;
  --brand-accent: var(--yellow);
  --brand-footer-bg: var(--yellow);
  --brand-hero-btn-bg: #fff;
  --brand-hero-btn-bg-hover: var(--cat-hover-bg);
  --brand-hero-btn-color: var(--blue);
  --logo-header: url('../img/logo-laposte-net.svg');
  --logo-header-size: 177px 29px;
  --logo-header-mobile: url('../img/logo-laposte-net-mobile.svg');
  --logo-header-mobile-size: 34px 24px;
  --logo-footer: url('../img/logo-laposte-net.svg');
  --logo-footer-size: 177px 29px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-text);
  background: #fff;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------------- Skip links ---------------- */
.lp-skiplinks ul {
  display: flex;
}
.lp-skiplinks__link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--skiplinks-bg);
  color: var(--blue);
  padding: 16px;
  font-size: 14px;
  z-index: 2147483000;
}
.lp-skiplinks__link:focus {
  left: 0;
}

/* ---------------- Header ---------------- */
.lp-header {
  background: #fff;
  border-top: 8px solid var(--brand-band);
  box-shadow: var(--shadow-header);
  position: relative;
  z-index: 10;
}
.lp-header__inner {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 0 32px;
  gap: 40px;
}
.lp-header__home {
  flex: 0 0 auto;
  width: 180px;
  height: 80px;
  border: 0;
  background: #fff var(--logo-header) no-repeat center / var(--logo-header-size);
  padding: 13px 0;
}
.lp-header__titles {
  flex: 1 1 auto;
  min-width: 0;
}
.lp-header__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #000;
}
.lp-header__subtitle {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: #000;
}

/* ---------------- Header: KB type picker ("Je suis : …") ---------------- */
.lp-kbtype__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: var(--cat-hover-bg);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--faq-text);
  white-space: nowrap;
  transition: background 0.2s;
}
.lp-kbtype__toggle:hover,
.lp-kbtype__toggle:focus-visible {
  background: #e2e6ff;
}
.lp-kbtype__toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lp-kbtype__prefix {
  font-weight: 400;
  line-height: 24px;
  color: var(--light-grey-text);
}
.lp-kbtype__current {
  font-weight: 700;
  line-height: 18px;
}
.lp-kbtype__arrow {
  width: 16px;
  height: 16px;
  background: url('../img/chevron-select.svg') no-repeat center / contain;
  transition: transform 0.2s;
}
.lp-kbtype__toggle[aria-expanded='true'] .lp-kbtype__arrow {
  transform: rotate(180deg);
}
/* Closed panel collapses through a 0fr grid row so the page below slides
   instead of jumping; visibility keeps it out of the tab order while closed. */
.lp-kbtype__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  background: var(--panel-blue-bg);
  transition: grid-template-rows 0.25s ease, visibility 0s 0.25s;
}
.lp-kbtype__panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.25s ease, visibility 0s;
}
.lp-kbtype__inner {
  min-height: 0;
  overflow: hidden;
}
.lp-kbtype__inner::after {
  content: '';
  display: block;
  width: 375px;
  max-width: 100%;
  height: 1px;
  margin: 0 auto;
  background: var(--panel-blue-line);
}
.lp-kbtype__cards {
  display: flex;
  gap: 16px;
  max-width: 910px;
  margin: 0 auto;
  padding: 16px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.25s ease;
}
.lp-kbtype__panel.is-open .lp-kbtype__cards {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .lp-kbtype__panel,
  .lp-kbtype__cards,
  .lp-kbtype__arrow {
    transition-duration: 0s;
  }
}
.lp-kbtype__cards li {
  flex: 1 1 0;
  min-width: 0;
}
.lp-kbtype__card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 134px;
  padding: 8px 24px 12px 8px;
  color: var(--net-blue);
  background: #fff;
  border: 1px solid #e2e2e9;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.lp-kbtype__card:hover {
  background-color: var(--cat-hover-bg);
  border-color: var(--cat-hover-border);
  box-shadow: 0 12px 15px 0 rgba(103, 110, 144, 0.04), 0 8px 8px 0 rgba(103, 110, 144, 0.1),
    0 4px 4px 0 rgba(103, 110, 144, 0.1), 0 2px 2px 0 rgba(103, 110, 144, 0.08), 0 1px 2px 0 rgba(103, 110, 144, 0.22);
}
.lp-kbtype__card[aria-current='page'] {
  border-color: currentColor;
}
.lp-kbtype__card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lp-kbtype__logo {
  display: block;
  flex: 0 0 159px;
  height: 116px;
  background-repeat: no-repeat;
  background-position: center;
}
.lp-kbtype__label {
  flex: 1 1 auto;
}
.lp-kbtype__logo--utilisateur {
  background-image: url('../img/kbtype/utilisateur.png');
  background-size: auto 86px;
}
.lp-kbtype__logo--expediteur {
  background-image: url('../img/kbtype/expediteur.svg');
  background-size: 111px 111px;
}

/* ---------------- Announcement ---------------- */
.lp-announce {
  background: var(--announce-bg);
}
.lp-announce__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-announce__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 32px 16px 40px;
}
/* Several announcements stack; a thin line separates them. */
.lp-announce__item + .lp-announce__item {
  border-top: 1px solid rgba(9, 105, 158, 0.15);
}
.lp-announce__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--announce-icon);
  color: var(--announce-icon);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}
.lp-announce__body {
  flex: 1 1 auto;
}
.lp-announce__title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  color: var(--announce-title);
}
.lp-announce__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: #000;
}
.lp-announce__more {
  color: var(--announce-title);
  font-weight: 700;
}
.lp-announce__close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  background: url('../img/close.svg') no-repeat center;
  opacity: 0.7;
}
.lp-announce__close:hover {
  opacity: 1;
}

/* ---------------- Hero ---------------- */
.lp-hero {
  background: var(--brand-hero-bg) url('../img/hero-bg-net.svg') no-repeat;
  background-size: 1995px 770px;
  background-position: center top -191px;
  padding: 32px 0 40px;
}
.lp-hero__inner {
  max-width: var(--maxw-hero);
  margin: 0 auto;
  padding: 0 32px;
}
.lp-hero__heads {
  text-align: center;
  margin-bottom: 24px;
}
.lp-hero__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 56px;
  line-height: 70px;
  color: var(--brand-hero-title);
}

/* ---------------- Search ---------------- */
.lp-search {
  position: relative;
  max-width: 912px;
  margin: 0 auto;
}
.lp-search__field {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 64px;
  padding: 0;
  border: 1px solid #282828;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  text-align: left;
}
.lp-search__placeholder,
.lp-search__input {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: #6b6b6b;
  background: #fff;
  border: 0;
}
.lp-search__input {
  color: var(--dark);
  outline: none;
}
.lp-search__submit {
  flex: 0 0 auto;
  width: 64px;
  height: 100%;
  border: 0;
  background: var(--blue) url('../img/search-white.svg') no-repeat center / 24px 24px;
  border-radius: 0 8px 8px 0;
  transition: background-color 0.2s;
}
.lp-search__submit:hover {
  background-color: #002f80;
}
.lp-search__label {
  display: none;
}
/* ---------------- Search dropdown ---------------- */
.lp-searchmodal[hidden] {
  display: none;
}
.lp-searchmodal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1400;
}
.lp-searchmodal__dialog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1500;
  background: var(--skiplinks-bg);
  border-radius: 8px;
  text-align: left;
}
.lp-searchmodal__container {
  overflow: scroll;
  max-height: 430px;
  border: 1px solid var(--divider);
  border-radius: 0 0 8px 8px;
}
.lp-searchmodal__bar {
  display: flex;
  height: 62px;
  margin: 0;
}
.lp-searchmodal__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 8px 0 0 0;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  background: #fff;
  outline: none;
}
.lp-searchmodal__submit {
  flex: 0 0 auto;
  width: 62px;
  border: 0;
  border-radius: 0 7px 0 0;
  background: var(--blue) url('../img/search-white.svg') no-repeat center / 24px 24px;
}
.lp-searchmodal__submit:hover {
  background-color: #002f80;
}
/* Empty query submitted: red ring around the whole bar and a message under it. */
.lp-searchmodal__bar.is-invalid {
  outline: 1px solid var(--color-status-content-error);
  outline-offset: -1px;
  border-radius: 8px 8px 0 0;
}
.lp-searchmodal__error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 96px 0 16px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--color-status-content-error);
}
.lp-searchmodal__error[hidden] {
  display: none;
}
.lp-searchmodal__error::before {
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: url('../img/alert.svg') no-repeat center / contain;
}
.lp-searchmodal__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
  color: var(--light-grey-text);
}
.lp-searchmodal__close {
  position: absolute;
  top: 78px;
  right: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--focus);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 21px;
}
.lp-searchmodal__close:hover {
  text-decoration: underline;
}
.lp-searchmodal__section--cats {
  padding: 0 16px 48px;
}
.lp-searchmodal__section--cats .lp-searchmodal__title {
  margin: 24px 0 0;
}
.lp-searchmodal__cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0 0 16px;
}
.lp-catpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #d2d2d1;
  border-radius: 200px;
  background: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--grey-text);
  transition: background 0.15s, border-color 0.15s;
}
.lp-catpill:hover {
  background: var(--cat-hover-bg);
  border-color: var(--cat-hover-border);
}
.lp-catpill img {
  width: 24px;
  height: 24px;
}
.lp-searchmodal__all:hover {
  text-decoration: none;
}
.lp-catpill-item--extra {
  display: none;
}
.lp-searchmodal__cats.is-all .lp-catpill-item--extra {
  display: block;
}
.lp-searchmodal__cats.is-all .lp-catpill-item--all {
  display: none;
}
.lp-searchmodal__title--faqs {
  padding: 0 16px 8px;
}
.lp-searchmodal__faqs li {
  border-bottom: 1px solid var(--divider);
}
.lp-searchmodal__faq {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--faq-text);
  text-decoration: none;
}
.lp-searchmodal__faq:hover {
  background-color: #f1f1f1;
}
.lp-searchmodal__faq::before {
  content: '';
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: url('../img/zoom.svg') no-repeat center / contain;
}

/* Announcement banner repeated at the bottom of the modal */
.lp-searchmodal__push {
  margin-bottom: 2px;
  background: var(--announce-bg);
}

/* ---------------- Categories ---------------- */
.lp-categories {
  margin-top: 24px;
}
.lp-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.lp-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  min-height: 155px;
  justify-content: flex-start;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.lp-category:hover {
  background-color: var(--cat-hover-bg);
  border-color: var(--cat-hover-border);
  box-shadow: 0 12px 15px 0 rgba(103, 110, 144, 0.04), 0 8px 8px 0 rgba(103, 110, 144, 0.1),
    0 4px 4px 0 rgba(103, 110, 144, 0.1), 0 2px 2px 0 rgba(103, 110, 144, 0.08), 0 1px 2px 0 rgba(103, 110, 144, 0.22);
}
.lp-category:active {
  background-color: white;
}
.lp-category:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}
.lp-category__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-category__icon img {
  width: 48px;
  height: 48px;
}
.lp-category__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 18.75px;
  color: var(--grey-text);
  margin-bottom: 4px;
}
.lp-category__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 21px;
  color: var(--grey-text);
}
.lp-category-item--extra {
  display: none;
}
.lp-categories.is-expanded .lp-category-item--extra {
  display: block;
}

.lp-categories__more {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px auto 0;
  padding: 12px 16px;
  background: var(--brand-hero-btn-bg);
  color: var(--brand-hero-btn-color);
  border: 0;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  transition: background 0.2s;
}
.lp-categories__more:hover {
  background: var(--brand-hero-btn-bg-hover);
}

/* ---------------- Content: FAQ + help ---------------- */
.lp-content {
  background: #fff;
  padding: 32px 0;
}
.lp-content__inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.lp-faq {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 24px;
}
.lp-faq__heading {
  margin: 0 0 16px;
  padding: 0 8px 8px;
  font-family: var(--font-brand);
  color: var(--dark);
}
.lp-faq__heading-main {
  display: block;
  font-weight: 700;
  font-size: 28px;
  line-height: 35px;
}
.lp-faq__heading-sub {
  display: block;
  font-weight: 500;
  font-size: 28px;
  line-height: 35px;
}
.lp-accordion {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 8px;
  overflow: hidden;
}
.lp-accordion__item {
  border-bottom: 1px solid var(--divider);
}
.lp-accordion__item:last-child {
  border-bottom: 0;
}
.lp-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 32px 16px;
  background: #fff;
  border: 0;
  border-left: 8px solid transparent;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: var(--faq-text);
}
.lp-accordion__label {
  flex: 1 1 auto;
}
/* Item without a description: the whole row is a link and the arrow points right. */
.lp-accordion__trigger--link {
  text-decoration: none;
  color: var(--faq-text);
}
.lp-accordion__trigger--link .lp-accordion__chevron {
  transform: rotate(-90deg);
}
.lp-accordion__trigger--link:hover {
  background: var(--panel-bg);
}
/* Original has no hover state on FAQ items — only a keyboard focus outline. */
.lp-accordion__trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.lp-accordion__chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 8px;
  background: url('../img/chevron-down.svg') no-repeat center / contain;
  transition: transform 0.3s ease-in-out;
}
.lp-accordion__item.is-open .lp-accordion__chevron {
  transform: rotate(180deg);
}
.lp-accordion__item.is-open .lp-accordion__trigger {
  border-left-color: var(--brand-accent);
}
.lp-accordion__panel {
  display: none;
  border-left: 8px solid transparent;
  padding: 8px 16px 20px;
}
.lp-accordion__item.is-open .lp-accordion__panel {
  display: block;
  border-left-color: var(--brand-accent);
}
.lp-accordion__answer {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 21px;
  color: #3d3f43;
}
.lp-accordion__answer a {
  color: var(--focus);
  text-decoration: underline;
}
.lp-accordion__answer a:hover {
  color: var(--blue);
}
.lp-accordion__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--faq-text);
  text-decoration: underline;
  margin-top: 24px;
}
.lp-accordion__more::after {
  content: '';
  width: 8px;
  height: 12px;
  background: url('../img/arrow-breadcrumb.svg') no-repeat center / contain;
  text-decoration: none;
}
.lp-accordion__more:hover::after {
  transform: translateX(4px);
}
.lp-accordion__rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.lp-accordion__rating-q {
  font-family: var(--font-body);
  font-size: 13px;
  color: #6b6b6b;
}
.lp-accordion__rating-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--divider);
  border-radius: 20px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--faq-text);
}
.lp-accordion__rating-btn:hover {
  background: #f2f2f2;
}
.lp-accordion__rating-btn svg {
  width: 16px;
  height: 16px;
}

.lp-help {
  flex: 0 0 32.9%;
  max-width: 448px;
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 24px;
}
.lp-help__title {
  margin: 0 0 32px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 35px;
  color: var(--dark);
}
.lp-help__text {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--light-grey-text);
}
.lp-help__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 24px;
  background: var(--contact-btn);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  transition: background 0.2s;
}

@media screen and (min-width: 769px) {
  .lp-help__btn {
    width: fit-content;
    padding-left: 56px;
    padding-right: 56px;
  }
}

.lp-catpage__aside {
  .lp-help__btn {
    width: 100%;
  }
}

.lp-help__btn:hover {
  background: #3c3c3c;
}

/* ---------------- Home side column (help + promo card) ---------------- */
.lp-side {
  flex: 0 0 32.9%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lp-side .lp-help {
  flex: 1 1 auto;
  max-width: none;
}
.lp-promocard {
  display: flex;
  align-items: center;
  min-height: 164px;
  padding: 16px;
  background: var(--yellow) url('../img/promo-bg.svg') no-repeat right 16px top 19px / 290px 129px;
  border-radius: 8px;
}
.lp-promocard__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 350px;
}
.lp-promocard__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--color-content-default);
}
.lp-promocard__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-content-default);
}
.lp-promocard__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-content-default);
  text-decoration: underline;
}
.lp-promocard__link img {
  width: 16px;
  height: 16px;
}

/* Grey "Boucle de rétroaction" card (Expéditeur KB only). */
.lp-feedbackcard {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 24px 32px;
  background: var(--panel-bg);
  border-radius: 8px;
}
.lp-feedbackcard__title {
  margin: 0 0 32px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 35px;
  color: var(--dark);

  @media (max-width: 768px) {
    .lp-help__title {
      margin-bottom: 16px;
      font-size: 18px;
      line-height: 22.5px;
    }
  }
}
.lp-feedbackcard__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--light-grey-text);
}
.lp-feedbackcard__btn {
  padding: 12px 56px;
  background: #fff;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: var(--color-content-default);
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.lp-feedbackcard__btn:hover {
  background: var(--cat-hover-bg);
}

/* ---------------- Footer ---------------- */
.lp-footer__links {
  background: var(--footer-links-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
}
.lp-footer__links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.lp-footer__links a {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 16px;
  color: var(--faq-text);
  text-decoration: underline;
}
.lp-footer__bar {
  background: var(--brand-footer-bg);
}
.lp-footer__bar-inner {
  position: relative;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.lp-footer__top {
  position: absolute;
  top: -20px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff url('../img/arrow.svg') no-repeat center / 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.lp-footer__logo {
  flex: 0 0 auto;
  display: block;
  width: 215px;
  height: 32px;
  background: var(--logo-footer) no-repeat left center / var(--logo-footer-size);
}
.lp-footer__legal {
  flex: 1 1 auto;
}
.lp-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 0;
}
.lp-footer__legal li:not(:last-child)::after {
  content: '|';
  margin: 0 10px;
  color: var(--faq-text);
}
.lp-footer__legal a {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--faq-text);
  text-decoration: none;
}
.lp-footer__legal a:hover {
  text-decoration: underline;
}

/* ============================================================
   Category page
   ============================================================ */
/* Search + category navigation band (white) */
.lp-catnav {
  background: #fff;
}
.lp-catnav__inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
/* search + pills occupy the same column width as the left content below */
.lp-catnav__col {
  flex: 1 1 auto;
  min-width: 0;
}
.lp-search--full {
  max-width: 910px;
  margin: 0;
}
.lp-catnav__nav {
  margin-top: 24px;
}
.lp-catnav__cats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lp-catnav__mobile {
  display: none;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 14px 16px;
  border: 1px solid #747474;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #353535;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lp-catnav__mobile-icon {
  flex: 0 0 auto;
  width: 11px;
  height: 7px;
  background: url('../img/chevron-down.svg') no-repeat center / 11px 7px;
  transition: transform 0.2s;
}
.lp-catnav__mobile.is-open {
  background: #f1f1f1;
  border-color: #282828;
  color: #282828;
}
.lp-catnav__mobile.is-open .lp-catnav__mobile-icon {
  transform: rotate(180deg);
}
.lp-catnav__mobile:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lp-catnav__cats.is-all .lp-catpill-item--extra {
  display: block;
}
.lp-catnav__cats.is-all .lp-catpill-item--all {
  display: none;
}
/* "Afficher toutes les catégories": a filled chip at the end of the pill row (band and search modal). */
.lp-catnav__showall,
.lp-searchmodal__all {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #d2d2d1;
  border-radius: 200px;
  background: var(--cat-hover-bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-text);
  transition: border-color 0.15s;
}
.lp-catnav__showall:hover,
.lp-searchmodal__all:hover {
  border-color: var(--cat-hover-border);
}
.lp-catnav__showall:hover {
  text-decoration: none;
}

.lp-catpage {
  background: #fff;
  padding: 24px 0 56px;
}
/* Folder and search pages sit 40px under the category band and 32px above the breadcrumb strip. */
.lp-catpage--hub {
  padding: 40px 0 32px;
}
.lp-catpage__inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumb: grey strip between the page content and the footer. */
.lp-breadcrumb {
  padding: 12px 32px 12px;
  background: var(--footer-links-bg);
}
.lp-breadcrumb ol {
  margin: 0;
  padding: 0;
  display: inline;
}
.lp-breadcrumb li {
  display: inline;
  list-style: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--light-grey-text);
}
.lp-breadcrumb li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  background: url('../img/arrow-breadcrumb.svg') no-repeat center / 6px 11px;
}
.lp-breadcrumb a {
  color: #282828;
  text-decoration: underline;
}
.lp-breadcrumb a:hover {
  text-decoration: none;
}

/* Category title */
.lp-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: #282828;
}
.lp-cat-title__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-cat-title__icon img {
  width: 40px;
  height: 40px;
}
.lp-cat-subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--light-grey-text);
}

/* Two-column layout */
.lp-catpage__cols {
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.lp-catpage__left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Link rows stacked into one bordered group (subfolders, related guides). */
.lp-folders__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-folders__list li + li {
  margin-top: -1px;
}
.lp-folder {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--divider);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.lp-folders__list li:first-child .lp-folder {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.lp-folders__list li:last-child .lp-folder {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.lp-folder__title {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #282828;
}
.lp-folder__arrow {
  flex: 0 0 auto;
  width: 8px;
  height: 12px;
  background: url('../img/arrow-breadcrumb.svg') no-repeat center / contain;
}
.lp-folder:hover {
  position: relative;
  z-index: 1;
  background: var(--cat-hover-bg);
  border-color: var(--cat-hover-border);
}
.lp-folder:active {
  background: #dce1ff;
  border-color: transparent;
}
.lp-folder:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Solutions ("Ceci peut vous aider") */
.lp-solutions__arrows {
  display: flex;
  gap: 16px;
}
.lp-solutions__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  background: #fff;
  position: relative;
  cursor: pointer;
}
.lp-solutions__arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 11px;
  transform: translate(-50%, -50%);
  background: url('../img/arrow-breadcrumb.svg') no-repeat center / contain;
}
.lp-solutions__arrow--prev::after {
  transform: translate(-50%, -50%) rotate(180deg);
}
.lp-solutions__arrow[disabled] {
  background: #e2e2e2;
  border-color: #e2e2e2;
  cursor: default;
}
.lp-solutions__arrow[disabled]::after {
  opacity: 0.4;
}
/* One scrollable row with snap; js/carousel.js adds the dots and arrows under it. */
.lp-solutions__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lp-solutions__list::-webkit-scrollbar {
  display: none;
}
.lp-solution {
  display: flex;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.lp-solution a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 148px;
  height: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.lp-carousel__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
}
.lp-carousel__dots {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  overflow: hidden;
}
.lp-carousel__dot {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 21px;
  background: rgba(99, 99, 99, 0.5);
  transition: width 0.2s, background 0.2s;
}
/* 24px hit area around the 12px dot. */
.lp-carousel__dot::before {
  content: '';
  position: absolute;
  inset: -6px;
}
.lp-carousel__dot.is-active {
  width: 30px;
  background: #636363;
}
.lp-carousel__arrows {
  flex: 0 0 auto;
  display: flex;
  gap: 16px;
}
.lp-carousel__arrow {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent url('../img/arrow-breadcrumb.svg') no-repeat center / 8px 14px;
  transition: background-color 0.2s;
}
.lp-carousel__arrow--prev {
  transform: rotate(180deg);
}
.lp-carousel__arrow:hover:not(:disabled) {
  background-color: #f1f1f1;
}
.lp-carousel__arrow:disabled {
  opacity: 0.5;
  cursor: default;
}
.lp-carousel__dot:focus-visible,
.lp-carousel__arrow:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* Same hover as the category tiles; a shadow would be clipped by the scrolling list. */
.lp-solution a:hover {
  background-color: var(--cat-hover-bg);
  border-color: var(--cat-hover-border);
}
.lp-solution a img {
  width: 88px;
  height: 80px;
}
.lp-solution__text {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 21px;
  color: var(--faq-text);
}

.lp-faqlist__subtitle {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 21px;
  color: var(--light-grey-text);
}
.lp-faqlist__subtitle[hidden] {
  display: none;
}

/* FAQ list: 5 shown, rest revealed by "see more" */
.lp-accordion__item--extra {
  display: none;
}
.lp-accordion.is-all .lp-accordion__item--extra {
  display: block;
}

/* Secondary (outlined) button: "Voir les N FAQs supplémentaires", "Retourner à l'accueil de l'aide". */
.lp-outline-btn,
.lp-seemore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  text-decoration: none;
  transition: background 0.2s;
}
.lp-outline-btn:hover,
.lp-seemore:hover {
  background: var(--cat-hover-bg);
}
.lp-outline-btn:focus-visible,
.lp-seemore:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lp-seemore {
  display: flex;
  margin: 24px auto 0;
}

/* ---- Content (article) page ---- */
.lp-cat-title--content {
  display: block;
}

.lp-article {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  background: var(--article-background);
  /*border-top: 8px solid var(--yellow);*/
  border-radius: 8px;
  overflow: hidden;
}
.lp-article__header {
  padding: 32px 16px 8px;
}
.lp-article__header .lp-cat-title {
  margin-bottom: 0;
}
.lp-article__content {
  padding: 32px 24px 24px;
  padding-top: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-text);
}
.lp-article__content h3 {
  margin: 24px 0 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #282828;
}
.lp-article__content li h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

/* "Acheter un Colissimo en ligne" promo card (in article body) */
.lp-buyoffer {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--cat-hover-bg);
  border-radius: 14px;
}
.lp-buyoffer__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.lp-buyoffer__label {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: #333;
}
.lp-buyoffer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
}
.lp-buyoffer__link:hover {
  color: #0052a3;
}
.lp-buyoffer__link-icon {
  width: 16px;
  height: 16px;
}
.lp-buyoffer__illustration {
  width: 95px;
  height: 95px;
  flex-shrink: 0;
  align-self: center;
  object-fit: contain;
  object-position: right center;
}
.lp-article__content p {
  margin: 0 0 16px;
}
.lp-article__content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}
.lp-article__content li {
  margin-bottom: 12px;
}
.lp-article__content a {
  color: var(--focus);
  text-decoration: underline;
}
.lp-article__content a:hover {
  text-decoration: none;
}
.lp-article__content strong {
  font-weight: 700;
}

.lp-article__rating {
  margin-top: 0px;
  padding: 24px 24px 48px;
  background: var(--panel-bg);
  text-align: left;
}
.lp-article__rating-phrase {
  margin: 0 0 24px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 35px;
  color: var(--dark);
}
.lp-article__rating-buttons {
  display: flex;
  gap: 16px;
}
.lp-article__rating-btn {
  padding: 12px 40px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: #fff;
}
.lp-article__rating-btn--yes {
  background: #007f00;
}
.lp-article__rating-btn--yes:hover:enabled {
  background: #005e00;
}
.lp-article__rating-btn--no {
  background: #d91414;
}
.lp-article__rating-btn--no:hover:enabled {
  background: #a50000;
}
.lp-article__rating-btn:disabled {
  cursor: default;
}
.lp-article__rating-btn:disabled:not(.is-selected) {
  opacity: 0.4;
}
.lp-article__rating-thanks {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--dark);
  margin-top: 24px;
}
.lp-article__rating-thanks[hidden] {
  display: none;
}

/* Rating feedback form (revealed after Oui/Non) */
.lp-article__rating-form {
  max-width: 560px;
  margin: 32px 0 0;
}
.lp-article__rating-form[hidden] {
  display: none;
}
.lp-article__rating-legend {
  margin: 0 0 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--dark);
}
.lp-article__rating-radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.lp-article__rating-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--faq-text);
  cursor: pointer;
}
.lp-article__rating-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.lp-article__rating-suggest {
  display: block;
  margin-bottom: 20px;
}
.lp-article__rating-suggest-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 21px;
  color: var(--light-grey-text);
}
.lp-article__rating-textarea {
  width: 100%;
  height: 120px;
  resize: none;
  padding: 12px 16px;
  border: 1px solid #d2d2d1;
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: var(--faq-text);
}
.lp-article__rating-textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.lp-article__rating-counter {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--light-grey-text);
  text-align: right;
}
.lp-article__rating-submit {
  display: block;
  padding: 12px 40px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
}
.lp-article__rating-submit:hover {
  background: #002f80;
}

/* Right column: solutions + need help stacked */
.lp-catpage__aside {
  flex: 0 0 32.9%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Contact page ---- */
.lp-contacts {
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 32px 24px 64px;
  margin-bottom: 24px;
}
.lp-contacts .lp-cat-title {
  margin-bottom: 10px;
}
.lp-contacts__title {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-text);
}
.lp-contacts__form {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.lp-contacts__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 8px;
}
.lp-contacts__label {
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: #717171;
  pointer-events: none;
}
.lp-contacts__select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 64px;
  padding: 26px 44px 8px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff url('../img/chevron-down.svg') no-repeat right 16px center / 14px 8px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  cursor: pointer;
}
.lp-contacts__select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lp-contacts__submit {
  flex: 0 0 244px;
  height: 64px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
}
.lp-contacts__submit:hover:not(:disabled) {
  background: #003692;
}
.lp-contacts__submit:disabled {
  background: #e1e1e1;
  color: #fff;
  cursor: default;
}

/* Contact index on mobile: the native select is swapped for a picker button that
   opens a bottom sheet listing the motifs (built by js/contact.js). */
.lp-contacts__picker {
  display: none;
}
.lp-motif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.45);
}
.lp-motif {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px 12px 0 0;
}
.lp-motif__header {
  position: relative;
  padding: 16px 64px 0 16px;
  border-bottom: 1px solid #d2d2d1;
}
.lp-motif__title {
  margin: 0;
  padding: 4px 0 12px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--faq-text);
}
.lp-motif__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent url('../img/close.svg') no-repeat center / 24px 24px;
}
.lp-motif__list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 16px;
}
.lp-motif__group {
  padding: 8px 0;
}
.lp-motif__group-label {
  margin: 0;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: var(--light-grey-text);
}
.lp-motif__option {
  display: block;
  width: 100%;
  padding: 8px 16px 8px 24px;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: #505050;
}
.lp-motif__option.is-selected {
  background: var(--cat-hover-bg);
  box-shadow: inset 4px 0 0 var(--blue);
}
.lp-motif__footer {
  padding: 16px;
  background: #fff;
  box-shadow: 0 -1px 2px 0 rgba(103, 110, 144, 0.2), 0 0 2px 0 rgba(103, 110, 144, 0.1);
}
.lp-motif__submit {
  width: 100%;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
}
.lp-motif__submit:disabled {
  background: #e1e1e1;
  cursor: default;
}
.lp-motif__close:focus-visible,
.lp-motif__option:focus-visible,
.lp-motif__submit:focus-visible,
.lp-contacts__picker:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
body.lp-motif-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  .lp-contacts__label,
  .lp-contacts__select,
  .lp-contacts__submit {
    display: none;
  }
  .lp-contacts__picker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 8px 44px 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #fff url('../img/chevron-down.svg') no-repeat right 16px center / 14px 8px;
    text-align: left;
  }
  .lp-contacts__picker-label {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 20px;
    color: #717171;
  }
  .lp-contacts__picker-value {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 20px;
    color: var(--faq-text);
  }
}
.lp-catpage__left > .lp-contacts {
  margin-bottom: 0;
}

/* Popular-FAQs side panel (contact page) */
.lp-poppanel {
  flex: 0 0 32.9%;
  max-width: 448px;
  padding-bottom: 48px;
}
/* Contact page popular FAQs: one-line 24px heading and 16px items. */
.lp-poppanel .lp-faq__heading {
  margin: 0 0 40px;
  padding: 0;
}
.lp-poppanel .lp-faq__heading-main,
.lp-poppanel .lp-faq__heading-sub {
  display: inline;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
}
.lp-poppanel .lp-accordion__trigger,
.lp-nosolution .lp-accordion__trigger {
  padding: 24px 16px;
  font-size: 16px;
  line-height: 24px;
}

/* ---- Contact channels page (geographic tabs + channel cards) ---- */
.lp-contactcard {
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 32px 24px;
}
.lp-tabs {
  display: flex;
  flex-direction: column;
}
.lp-tabs .lp-cat-title {
  margin-bottom: 10px;
}
.lp-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}
.lp-tab {
  padding: 12px 16px;
  border: 1px solid var(--divider);
  border-radius: 1000px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  color: #282828;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lp-tab:hover,
.lp-tab[aria-selected='true'] {
  background: var(--cat-hover-bg);
  border-color: var(--blue);
  color: var(--blue);
}
.lp-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lp-tabs__panel[hidden] {
  display: none;
}

/* "À propos de :" heading + underline-style tabs (nested contact page) */
.lp-tabs__about {
  margin: 32px 0 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 35px;
  color: var(--dark);
}
.lp-tabs__list--onglets {
  gap: 24px;
  margin: 0;
  flex-wrap: nowrap;
  border-bottom: 1px solid #d2d2d1;
}
.lp-onglet {
  position: relative;
  padding: 16px 0;
  border: 0;
  border-radius: 5px 5px 0 0;
  background: none;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: #282828;
  text-align: left;
  white-space: nowrap;
}
.lp-onglet h3 {
  margin: 0;
  font: inherit;
  color: inherit;
  pointer-events: none;
}
.lp-onglet::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: transparent;
}
.lp-onglet:hover,
.lp-onglet[aria-selected='true'] {
  font-weight: 700;
  color: var(--blue);
}
.lp-onglet:hover::before,
.lp-onglet[aria-selected='true']::before {
  background: var(--blue);
}
.lp-onglet[aria-selected='true'] {
  pointer-events: none;
}
.lp-onglet:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.lp-channels {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lp-channel {
  display: flex;
  flex-direction: column;
  padding: 24px 16px 32px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  box-shadow: 0 12px 15px 0 rgba(103, 110, 144, 0.04), 0 8px 8px 0 rgba(103, 110, 144, 0.05),
    0 4px 4px 0 rgba(103, 110, 144, 0.08), 0 2px 2px 0 rgba(103, 110, 144, 0.05), 0 1px 2px 0 rgba(103, 110, 144, 0.1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.lp-channel:hover {
  background: var(--cat-hover-bg);
  border-color: #b8c3ff;
}
.lp-channel:active {
  background: #dce1ff;
}
/* Messenger is only offered where the app is one tap away: touch-first devices (phones, tablets). */
.lp-channel--mobile-only {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .lp-channel--mobile-only {
    display: flex;
  }
}
.lp-channel__visuel img {
  width: 48px;
  height: auto;
}
.lp-channel__info {
  display: flex;
  flex-direction: column;
}
.lp-channel__title {
  margin: 16px 0 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 22.5px;
  color: var(--faq-text);
}
.lp-channel__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--faq-text);
}
.lp-channel__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--focus);
  text-decoration: none;
  cursor: pointer;
}
.lp-channel__link::after {
  content: '';
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: url('../img/blue-arrow-right.svg') no-repeat center / contain;
}
.lp-channel__link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* Folder and search results pages: one card holding the title, the subfolder
   list, the solutions carousel and the FAQ block, in that order. */
.lp-hub {
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 32px 24px 48px;
}
/* Title block: 10px to its lead line, then 40px to the first content block;
   content blocks are 40px apart, an intro line sits 16px above its tiles. */
.lp-hub .lp-cat-title,
.lp-hub .lp-results-title {
  margin-bottom: 10px;
}
.lp-hub .lp-cat-subtitle + .lp-folders__list {
  margin-top: 40px;
}
.lp-hub__intro {
  margin: 40px 0 16px;
}
.lp-hub .lp-cat-title + .lp-hub__intro,
.lp-hub .lp-results-title + .lp-hub__intro {
  margin-top: 0;
  margin-bottom: 40px;
}
.lp-hub__faqs {
  margin-top: 40px;
}
.lp-hub__faqs .lp-faqlist__subtitle {
  margin-bottom: 4px;
}
.lp-hub__back {
  margin-top: 24px;
}
.lp-hub .lp-cat-subtitle + .lp-cat-subtitle {
  margin-top: 16px;
}

/* Contact sub-pages and guide page: "Vous n'avez pas trouvé de solution ?" card
   (link tiles in one scrollable row, then a compact FAQ). */
.lp-nosolution {
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 24px 24px 48px;
  height: 100%;
}
.lp-nosolution__title {
  margin: 0 0 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 35px;
  color: var(--dark);
}
.lp-nosolution__text {
  margin: 0 0 40px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--light-grey-text);
}
.lp-nosolution .lp-solutions__list + .lp-accordion,
.lp-nosolution .lp-carousel__nav + .lp-accordion {
  margin-top: 24px;
}
/* The help text and button rendered inside the card, whose title already asks the question. */
.lp-help--inline {
  flex: none;
  max-width: none;
  margin-top: 24px;
  padding: 0;
  background: none;
  border-radius: 0;

  &:not(:nth-child(2)) {
    margin-top: 32px;
  }
}
.lp-help--inline .lp-help__text {
  margin-bottom: 32px;
}

/* "Vous souhaitez nous écrire ?" address block under the contact card (no background). */
.lp-writetous {
  margin-top: 32px;
  padding: 16px;
}
.lp-writetous__title {
  margin: 0 0 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 22.5px;
  color: var(--dark);
}
.lp-writetous p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  color: #000;
}

/* ---- Search results page ---- */
.lp-results-title {
  margin: 0 0 8px;
  font-family: var(--font-brand);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #282828;
}
.lp-help--search {
  max-width: none;
}

/* ---- 404 page ---- */
.lp-errorpage__inner {
  max-width: 1856px;
  margin: 0 auto;
  padding: 0 32px;
}
.lp-error {
  height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.lp-error__logo {
  width: 92px;
  height: 40px;
}
.lp-error h1 {
  margin: 32px 0 24px;
  font-family: var(--font-brand);
  font-size: 48px;
  font-weight: 700;
  line-height: 60px;
  color: var(--faq-text);
  text-align: center;
}
.lp-error p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  color: var(--faq-text);
  text-align: center;
}
.lp-error__links {
  margin-top: 32px;
  display: flex;
  gap: 32px;
}
.lp-error__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  transition: all 0.2s;
}
.lp-error__links a::before {
  content: '';
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
.lp-error__link--aide {
  background: var(--blue);
  color: #fff;
}
.lp-error__link--aide::before {
  background-image: url('../img/homepage.svg');
}
.lp-error__link--aide:hover {
  background: #003692;
}
.lp-error__link--aide:active {
  background: #002276;
}
.lp-error__link--laposte {
  background: transparent;
  border: 1px solid var(--faq-text);
  color: var(--faq-text);
}
.lp-error__link--laposte::before {
  background-image: url('../img/home.svg');
}
.lp-error__link--laposte:hover {
  border-color: #282828;
}
.lp-error__link--laposte:active {
  background: var(--dark);
  color: #fff;
}
.lp-error__links a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .lp-error {
    height: auto;
    margin: 32px 0;
    padding: 0 16px;
    align-items: flex-start;
  }
  .lp-error > div {
    width: 100%;
    text-align: center;
  }
  .lp-error__logo {
    margin: 0 auto;
  }
  .lp-error__links {
    flex-direction: column;
    gap: 16px;
  }
  .lp-error__links a {
    font-size: 14px;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

/* @media (max-width: 1200px) {
  .lp-catpage__cols {
    flex-direction: column;
  }
  .lp-catpage__left {
    width: 100%;
  }
  .lp-help--catpage,
  .lp-poppanel {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    align-self: auto;
  }
  .lp-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-content__inner {
    flex-direction: column;
  }
  .lp-faq,
  .lp-help {
    flex: 1 1 auto;
  }
} */
@media (max-width: 900px) {
  .lp-hero__title {
    font-size: 40px;
    line-height: 48px;
  }
}
@media (max-width: 768px) {
  /* MOVED FROM 1200 */
  .lp-catpage__cols {
    flex-direction: column;
  }
  .lp-catpage__left {
    width: 100%;
  }
  .lp-catpage__aside {
    max-width: 100%;
  }
  .lp-help--catpage,
  .lp-poppanel {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    align-self: auto;
  }
  .lp-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-content__inner {
    flex-direction: column;
  }
  .lp-faq,
  .lp-help,
  .lp-side {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  /* MOVED */

  .lp-catnav__inner {
    padding: 24px 16px 0;
  }
  /* Row: collapsed search icon button + categories toggle side by side. */
  .lp-catnav__row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .lp-catnav__row .lp-search {
    flex: 0 0 48px;
    width: 48px;
    margin: 0;
  }
  .lp-catnav__row .lp-search__field {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 8px;
  }
  /* Icon-only button here, but the text stays in the tree so the button keeps its name. */
  .lp-catnav__row .lp-search__placeholder {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .lp-catnav__row .lp-search__submit {
    width: 48px;
    border-radius: 8px;
  }
  .lp-catnav__mobile {
    display: inline-flex;
  }
  /* With the toggle shrunk to "Masquer" there is room: the search button shows
     its label next to the icon, like the original. */
  .lp-catnav.is-open .lp-catnav__row .lp-search {
    flex: 0 1 auto;
    width: auto;
  }
  .lp-catnav.is-open .lp-catnav__row .lp-search__field {
    width: auto;
    align-items: center;
    gap: 4px;
    padding: 0 16px 0 12px;
    background: var(--blue);
    transition: background-color 0.2s;
  }
  .lp-catnav.is-open .lp-catnav__row .lp-search__field:hover {
    background: #002f80;
  }
  .lp-catnav.is-open .lp-catnav__row .lp-search__submit {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background-color: transparent;
  }
  .lp-catnav.is-open .lp-catnav__row .lp-search__label {
    display: block;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    color: #fff;
    white-space: nowrap;
  }
  .lp-catnav__nav {
    margin-top: 0;
  }
  .lp-catnav__nav .lp-catnav__cats {
    display: none;
  }
  /* Mobile: "Afficher les catégories" unfolds every pill at once, no second "show all" step. */
  .lp-catnav__nav .lp-catpill-item--extra {
    display: block;
  }
  .lp-catnav__nav .lp-catpill-item--all {
    display: none;
  }
  .lp-catnav__nav.is-open .lp-catnav__cats {
    display: flex;
    margin-top: 24px;
  }
  .lp-catpage,
  .lp-catpage--hub {
    padding: 16px 0 48px;
  }
  .lp-catpage__inner {
    padding: 0 16px;
  }
  /* Mobile has no cards: the page itself is grey and only rows, tiles and buttons are white.
     Painted on body and the page wrapper too, so nothing outside our sections shows through white. */
  body,
  .lp-page,
  .lp-catnav,
  .lp-catpage,
  .lp-content,
  .lp-footer__links {
    background: var(--page-bg-mobile);
  }
  .lp-hub,
  .lp-nosolution,
  .lp-contactcard,
  .lp-contacts,
  .lp-help--catpage,
  .lp-poppanel,
  .lp-article {
    padding: 24px 0 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }
  .lp-article {
    padding-top: 16px;
  }
  .lp-writetous {
    margin-top: 24px;
  }
  .lp-catpage__cols {
    gap: 40px;
  }
  /* Tighter rhythm inside the hub on mobile: 8px under the title, 24px between blocks. */
  .lp-hub .lp-cat-title,
  .lp-hub .lp-results-title {
    margin-bottom: 8px;
  }
  .lp-hub .lp-cat-subtitle + .lp-folders__list {
    margin-top: 24px;
  }
  .lp-hub__intro {
    margin: 24px 0;
  }
  .lp-hub .lp-cat-title + .lp-hub__intro,
  .lp-hub .lp-results-title + .lp-hub__intro {
    margin-top: 0;
    margin-bottom: 24px;
  }
  .lp-hub__faqs {
    margin-top: 24px;
  }
  .lp-poppanel .lp-faq__heading {
    margin-bottom: 24px;
  }
  .lp-poppanel .lp-faq__heading-main,
  .lp-poppanel .lp-faq__heading-sub {
    font-size: 18px;
    line-height: 24px;
  }
  .lp-cat-title {
    font-size: 22px;
    line-height: 27.5px;
  }
  .lp-tabs__about {
    font-size: 22px;
    line-height: 27.5px;
  }
  .lp-article__header {
    padding-top: 0;
  }
  .lp-article__header,
  .lp-article__rating,
  .lp-article__content {
    padding-left: 0;
    padding-right: 0;
  }
  .lp-breadcrumb {
    padding: 12px 16px 12px;
  }
  .lp-channels {
    grid-template-columns: 1fr;
  }
  /* 56px row under the 8px band, like the design: 40px logo button, 8px gaps. */
  .lp-header__inner {
    gap: 8px;
    padding: 8px 16px 8px 8px;
    min-height: 0;
  }
  .lp-header__home {
    width: 48px;
    height: 40px;
    padding: 0;
    background-image: var(--logo-header-mobile);
    background-size: var(--logo-header-mobile-size);
  }
  .lp-header__titles {
    flex: 1 1 auto;
  }
  .lp-header__title {
    font-size: 14px;
    line-height: 20px;
  }
  .lp-header__subtitle {
    display: none;
  }
  .lp-kbtype__cards {
    padding: 16px 13px;
  }
  .lp-kbtype__card {
    gap: 8px;
    height: 100%;
    padding: 8px;
    font-size: 12px;
    line-height: 16px;
  }
  .lp-kbtype__logo {
    flex: 0 0 56px;
    height: 56px;
    background-size: contain;
  }
  .lp-announce__item {
    padding: 12px 16px;
  }
  .lp-hero {
    padding: 24px 0 40px;
  }
  .lp-hero__inner {
    padding: 0 16px;
  }
  .lp-hero__title {
    font-size: 28px;
    line-height: 34px;
  }
  .lp-search__field {
    height: 48px;
  }
  .lp-search__submit {
    width: 48px;
  }
  .lp-categories {
    margin-top: 32px;
  }
  .lp-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .lp-category {
    min-height: 149px;
  }
  .lp-content__inner {
    padding: 0 16px;
  }
  .lp-footer__links {
    padding: 24px 16px;
  }
  .lp-footer__links ul {
    gap: 16px 32px;
  }
  .lp-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 16px 24px;
  }
  .lp-footer__legal ul {
    justify-content: flex-start;
  }
  .lp-footer__top {
    right: 16px;
  }
  /* Home sections lose their cards on mobile: centered one-line FAQ heading over a
     full-width list, and the contact block as plain text with a full-width button. */
  .lp-faq {
    padding: 0;
    background: none;
    border-radius: 0;
  }
  .lp-faq__heading {
    margin: 0 0 32px;
    padding: 0;
    text-align: center;
  }
  .lp-faq__heading-main,
  .lp-faq__heading-sub {
    display: inline;
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
  }

  .lp-feedbackcard {
    padding: 0;
    margin-top: 16px;
  }
  .lp-feedbackcard__title {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 22.5px;
  }
  .lp-feedbackcard__btn {
    width: 100%;
  }
  .lp-help {
    padding: 0;
    background: none;
    border-radius: 0;
    margin-top: 16px;
  }
  .lp-help__title {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 22.5px;
  }
  .lp-help__text {
    margin-bottom: 24px;
  }
  .lp-help__btn {
    margin-top: 0;
    padding: 12px 24px;
    text-align: center;
  }
  .lp-accordion__trigger {
    padding: 24px 16px;
    font-size: 16px;
    line-height: 24px;
  }
}

/* ---- Search results pagination (theme addition, styled after .lp-seemore) ---- */
.lp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.lp-pagination__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 28px;
  text-decoration: none;
}
.lp-pagination__link:hover {
  background: #003692;
}
.lp-pagination__status {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-text);
}

/* ---- Live search results in the modal (theme addition) ---- */
/* An author `display` rule (flex/block) overrides the UA's `[hidden]` styling,
   so elements toggled via the hidden attribute would stay visible without this. */
[hidden] {
  display: none !important;
}
.lp-searchmodal__results {
  overflow: auto;
  max-height: 430px;
  border: 1px solid var(--divider);
  border-radius: 0 0 8px 8px;
  background: #fff;
}
.lp-searchmodal__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--grey-text);
}
.lp-searchmodal__status.is-loading::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--divider);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: lp-search-spin 0.8s linear infinite;
}
@keyframes lp-search-spin {
  to {
    transform: rotate(360deg);
  }
}
.lp-searchmodal__faq-context {
  margin-left: auto;
  padding-left: 16px;
  flex: none;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--grey-text);
  opacity: 0.75;
}
.lp-searchmodal__allresults {
  display: block;
  padding: 14px 16px;
  border-top: 1px solid var(--divider);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
}
.lp-searchmodal__allresults:hover {
  text-decoration: underline;
}

/* ---- Header logo popover ("Que souhaitez-vous faire ?", theme addition) ---- */
.lp-header__inner {
  position: relative;
}
.lp-header__home {
  cursor: pointer;
}
.lp-homenav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.45);
}
.lp-homenav {
  position: absolute;
  top: 80px;
  left: 48px;
  z-index: 999999;
  width: 350px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  background: #fff;
  border-radius: 16px;
}
.lp-homenav::before {
  content: url('../img/triangle.svg');
  position: absolute;
  top: -15px;
  left: 24px;
  height: 8px;
  display: block;
}
.lp-homenav:focus-visible {
  outline: none;
}
.lp-homenav__title {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--faq-text);
}
.lp-homenav__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-homenav__home,
.lp-homenav__return,
.lp-homenav__close {
  display: block;
  border-radius: 8px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.lp-header__home:focus-visible,
.lp-homenav__home:focus-visible,
.lp-homenav__return:focus-visible,
.lp-homenav__close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lp-homenav__home {
  padding: 12px;
  background: var(--blue);
  color: #fff;
}
.lp-homenav__home:hover,
.lp-homenav__home:active {
  background: #002276;
}
.lp-homenav__return {
  padding: 12px 7px;
  background: #fff;
  color: var(--faq-text);
  border: 1px solid var(--faq-text);
}
.lp-homenav__return:hover {
  background: #f6f6f6;
  border-color: #282828;
}
.lp-homenav__return:active {
  background: var(--faq-text);
  color: #fff;
}
.lp-homenav__close {
  padding: 12px 24px;
  background: transparent;
  color: var(--faq-text);
  border: 1px solid transparent;
}
.lp-homenav__close:hover {
  border-color: #d2d2d1;
}
.lp-homenav__close:active {
  background: #f1f1f1;
}

/* ---- Search modal, mobile: fullscreen with a back arrow (theme addition) ---- */
.lp-searchmodal__back {
  display: none;
}
@media (max-width: 768px) {
  body.lp-search-open {
    overflow: hidden;
  }
  .lp-searchmodal__overlay {
    display: none;
  }
  .lp-searchmodal__dialog {
    position: fixed;
    inset: 0;
    width: auto;
    height: 100%;
    overflow-y: auto;
    border-radius: 0;
    z-index: 999999;
  }
  .lp-searchmodal__bar {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid var(--divider);
  }
  .lp-searchmodal__back {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    border: 0;
    border-radius: 8px;
    margin: 7px 0 7px 4px;
    background: transparent url('../img/arrow-breadcrumb.svg') no-repeat center / 8px 14px;
    /* The shared chevron points right; flip the (icon-only) button to point back. */
    transform: rotate(180deg);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
  }
  .lp-searchmodal__back:hover {
    background-color: #f1f1f1;
  }
  .lp-searchmodal__back:active {
    background-color: #e1e1e1;
  }
  .lp-searchmodal__back:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
  }
  .lp-searchmodal__input,
  .lp-searchmodal__submit {
    border-radius: 0;
  }
  /* The back arrow replaces the desktop "Fermer" text button. */
  .lp-searchmodal__close {
    display: none;
  }
  .lp-searchmodal__container,
  .lp-searchmodal__results {
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
}

/* ---------------- "Plan du site" page ---------------- */
.lp-sitemap {
  max-width: 912px;
}
.lp-sitemap__section {
  margin-top: 32px;
}
.lp-sitemap__h2 {
  margin: 0 0 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: var(--dark);
}
.lp-sitemap__h3 {
  margin: 24px 0 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--dark);
}
.lp-sitemap__h2 a,
.lp-sitemap__h3 a {
  color: var(--blue);
}
.lp-sitemap__list {
  margin: 0;
  padding-left: 24px;
  list-style: disc;
}
.lp-sitemap__list li {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}
.lp-sitemap__list a {
  color: var(--blue);
}
.lp-sitemap a:hover {
  text-decoration-thickness: 2px;
}
.lp-sitemap a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}


/* ------------- Stonly widget overrides ------------- */
.stonly-banner-content {
  max-width: 1200px;
}
