/* Yoopies FR — Home blog : hero + hub sections + sticky nav + search overlay.
 * Design source : Claude Design 2abis / 2b / 2c / 2d / 3a / 3b.
 */

/* ============ COMMON ============ */
.yp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; box-sizing: border-box; }
@media (max-width: 768px) { .yp-wrap { padding: 0 16px; } }

.yp-check {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: #32bfa3; color: #144862; font-size: 11px; font-weight: 800;
}

.yp-link { font-size: 15px; font-weight: 700; color: #144862; text-decoration: none; }
.yp-link:hover { color: #32bfa3; }

.yp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 48px; box-sizing: border-box;
  border: none; border-radius: 6px; font-family: inherit; font-size: 15px; font-weight: 800;
  text-decoration: none; cursor: pointer;
  transition: transform .14s cubic-bezier(.4,0,.2,1), box-shadow .14s;
}
.yp-btn--primary { background: #32bfa3; color: #144862; box-shadow: 0 2px 4px rgba(20,72,98,.12); }
/* Force bg + color sur :hover pour éviter les overrides de WP core (:where(.wp-element-button:hover) applique color-mix() 85% opacity sur le background) */
.yp-btn--primary:hover { background: #32bfa3; color: #144862; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,72,98,.16); }

/* icon-mask helper : chaque élément .yp-*-icon porte --yp-icon:url(...).
 * Exclu : .yp-hub-pill__icon et .yp-home-hub__icon — ce sont des conteneurs
 * (cercle blanc), le mask vit sur leur ::after. */
.yp-service-card__icon,
.yp-search-trigger__icon,
.yp-sticky-nav__search-icon,
.yp-search-overlay__submit-icon,
.yp-search-overlay__close span,
.yp-article-card__thumb-fallback {
  display: block; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--yp-icon) center/contain no-repeat;
          mask: var(--yp-icon) center/contain no-repeat;
}

/* ============ HERO ============ */
.yp-hero { font-family: Nunito, sans-serif; }

.yp-hero__top {
  background: #fef0e6;
  padding: 12px 0 160px;
}
.yp-hero__top-inner { display: flex; flex-direction: column; gap: 40px; }

.yp-hero__brand-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.yp-hero__logo { display: block; width: 123px; height: 32px; }
.yp-hero__baseline { font-size: 15px; font-weight: 700; color: #144862; }

.yp-hero__services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.yp-service-card {
  background: #fff; border-radius: 6px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 4px rgba(102,102,102,.12);
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}
.yp-service-card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(20,72,98,.16); }
.yp-service-card__icon { width: 26px; height: 26px; color: #fa9856; flex-shrink: 0; }
.yp-service-card__label {
  flex: 1; font-size: 13px; font-weight: 800; line-height: 1.3; color: #144862;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.yp-service-card__short { display: none; }
.yp-service-card__arrow { color: #32bfa3; }

.yp-hero__trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  font-size: 15px; color: #144862;
}
.yp-hero__trust li { display: flex; align-items: center; gap: 8px; }
.yp-trust__brand-icon { width: 22px; height: 22px; display: inline-block; margin-left: 2px; }

/* Carte titre en biais */
.yp-hero__card-wrap { position: relative; margin-top: -120px; z-index: 2; }
.yp-hero__card {
  background: #fff;
  -webkit-clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%);
  padding: 88px 64px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}
.yp-hero__card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.yp-hero__title {
  margin: 0; font-size: clamp(36px, 4.5vw, 84px); line-height: 1; font-weight: 800;
  color: #363636; letter-spacing: -.03em;
}
.yp-hero__title span { color: #32bfa3; font-weight: 800; font-style: normal; font-size: 59px; line-height: 59px; }
.yp-hero__tagline { margin: 0; font-size: 24px; font-weight: 600; color: #5b7a8a; }

.yp-hero__card-badge {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.yp-badge-tilt {
  background: #fa9856; color: #363636; font-weight: 800; font-size: 20px;
  padding: 14px 22px; border-radius: 6px; transform: rotate(6deg);
  text-decoration: none;
}
/* Variante lien (home + hub : "Le blog" cliquable → home blog) */
.yp-badge-tilt--link,
.yp-badge-tilt--link:hover,
.yp-badge-tilt--link:focus { color: #363636; }
.yp-badge-tilt--link:hover { background: #f28234; }
.yp-hero__services-link {
  display: inline-block; transform: rotate(6deg);
  font-size: 17px; font-weight: 800; color: #32bfa3; text-decoration: none;
}
.yp-hero__services-link:hover { text-decoration: underline; }

.yp-search-trigger {
  flex: none; align-self: flex-start;
  display: flex; align-items: center; gap: 10px;
  height: 48px; box-sizing: border-box; padding: 0 18px 0 14px;
  border: 2px solid #dbe5ea; border-radius: 999px; background: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #144862;
  cursor: pointer; transition: border-color .14s;
}
.yp-search-trigger:hover { border-color: #9cb2bd; }
.yp-search-trigger__icon { width: 20px; height: 20px; color: #32bfa3; }

/* ============ NAV HUBS (inline + sticky) ============ */
.yp-hub-nav {
  background: #fff;
  border-bottom: 1px solid #dbe5ea;
}
.yp-hub-nav--inline { padding: 10px 0 16px; }
.yp-hub-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 10px; justify-content: center;
}
.yp-hub-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--pill-bg, #f2f4f5);
  font-weight: 700; font-size: 15px; color: #144862; text-decoration: none;
  transition: box-shadow .14s;
}
.yp-hub-pill:hover { box-shadow: 0 4px 12px rgba(20,72,98,.16); }
.yp-hub-pill.is-active,
.yp-hub-pill--current { background: #32bfa3; color: #fff; }
/* Force bg + color sur :hover/:focus pour éviter que la cascade WP/TT5 ne
   repasse le texte en vert (couleur de lien par défaut) sur la pill active */
.yp-hub-pill.is-active:hover,
.yp-hub-pill.is-active:focus-visible,
.yp-hub-pill--current:hover,
.yp-hub-pill--current:focus-visible { background: #32bfa3; color: #fff; }
.yp-hub-pill.is-active .yp-hub-pill__icon,
.yp-hub-pill--current .yp-hub-pill__icon { background: #fff; }
.yp-hub-pill.is-active .yp-hub-pill__icon::after,
.yp-hub-pill--current .yp-hub-pill__icon::after { background-color: #fa9856; }
/* Triangle sous la pill hub courante (indicateur de page active, type onglet) */
.yp-hub-pill--current { position: relative; }
.yp-hub-pill--current::before {
  content: ''; position: absolute; left: 50%; bottom: -9px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 9px solid #32bfa3;
}
.yp-hub-pill__icon {
  display: flex; align-items: center; justify-content: center;
  flex: none; width: 28px; height: 28px; background: #fff; border-radius: 50%;
  color: transparent; position: relative;
}
.yp-hub-pill__icon::after {
  content: ''; display: block; width: 16px; height: 16px;
  background-color: #fa9856;
  -webkit-mask: var(--yp-icon) center/contain no-repeat;
          mask: var(--yp-icon) center/contain no-repeat;
}

/* ============ HUB SECTIONS (home) ============ */
.yp-home-hub { background: #fff; padding: 0; }
.yp-home-hub + .yp-home-hub { margin-top: 16px; }
.yp-home-hub .yp-wrap { display: flex; flex-direction: column; gap: 16px; }
/* wpautop injecte parfois des <p></p> vides autour du shortcode dans la grille cols
 * (→ nouvelle row auto + row-gap + margins par défaut = ~150px d'air invisible). */
.yp-home-hub p:empty { display: none; }

.yp-home-hub__header {
  background: var(--hub-tint, #f2f4f5);
  border-radius: 6px; overflow: hidden;
  display: flex; align-items: stretch; min-height: 190px;
}
.yp-home-hub__photo {
  flex: none; width: 360px; position: relative;
  -webkit-clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
          clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
.yp-home-hub__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: #fff;
}
.yp-home-hub__header-text {
  flex: 1; min-width: 0; padding: 28px 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.yp-home-hub__meta { display: flex; align-items: center; gap: 10px; }
.yp-home-hub__icon {
  display: flex; align-items: center; justify-content: center;
  flex: none; width: 36px; height: 36px; background: #fff; border-radius: 50%;
  color: transparent; position: relative;
}
.yp-home-hub__icon::after {
  content: ''; display: block; width: 20px; height: 20px;
  background-color: #fa9856;
  -webkit-mask: var(--yp-icon) center/contain no-repeat;
          mask: var(--yp-icon) center/contain no-repeat;
}
.yp-home-hub__count { font-size: 14px; font-weight: 800; color: #5b7a8a; }
.yp-home-hub__title { margin: 0; font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.yp-home-hub__title a { color: #363636; text-decoration: none; }
.yp-home-hub__title a:hover { color: #32bfa3; }
.yp-home-hub__title span { color: #32bfa3; }
.yp-home-hub__intro { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.5; color: #363636; }

/* Colonnes CTA + groupes */
.yp-home-hub__cols {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px;
}
.yp-home-hub__cta {
  background: #f2f4f5; border-radius: 6px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  align-self: start;
}
.yp-home-hub__cta-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b7a8a; }
.yp-home-hub__cta-text { margin: 0; font-size: 16px; line-height: 1.5; color: #5b7a8a; }
.yp-home-hub__cta-buttons { display: flex; flex-direction: column; gap: 10px; align-items: stretch; padding-top: 4px; }
.yp-home-hub__cta-buttons .yp-btn { width: 100%; justify-content: space-between; padding: 12px 16px; color: #fff; }

.yp-home-hub__groups { display: flex; flex-direction: column; gap: 16px; }
.yp-home-hub__group-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b7a8a; margin-bottom: 8px; }
.yp-home-hub__group-text { font-size: 18px; line-height: 1.6; font-weight: 600; color: #363636; }
.yp-home-hub__group-text a { color: #144862; font-weight: 800; text-decoration: underline; text-decoration-color: #32bfa3; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.yp-home-hub__group-text p { margin: 0 0 .6em; }
.yp-home-hub__group-text p:last-child { margin-bottom: 0; }

/* Derniers articles */
.yp-home-hub__latest { display: flex; flex-direction: column; gap: 20px; padding-top: 0; border-top: 1px solid #dbe5ea; }
.yp-home-hub__latest-head { display: flex; justify-content: space-between; align-items: baseline; }
.yp-home-hub__latest-head h3 { margin: 0; font-size: 24px; font-weight: 800; color: #363636; }
.yp-home-hub__latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.yp-article-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: transform .14s; }
.yp-article-card:hover { transform: translateY(-4px); }
.yp-article-card__thumb {
  aspect-ratio: 16/10; border-radius: 6px; background: rgba(50,191,163,.12);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.yp-article-card__thumb-fallback { width: 48px; height: 48px; color: #fa9856; }
.yp-article-card__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #5b7a8a; }
.yp-article-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; color: #363636; }

/* Pills sous-cat */
.yp-home-hub__pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.yp-home-hub__pills-label { font-size: 14px; font-weight: 700; color: #5b7a8a; margin-right: 8px; }
.yp-pill-outline {
  padding: 8px 16px; border: 2px solid #dbe5ea; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #144862; text-decoration: none;
  transition: border-color .14s;
}
.yp-pill-outline:hover { border-color: #9cb2bd; }

/* Variante Yoopies : grille sub-hubs */
.yp-home-hub__subs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.yp-subhub-card {
  background: #f2f4f5; border-radius: 6px; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: #144862;
  transition: transform .14s, box-shadow .14s;
}
.yp-subhub-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(20,72,98,.12); }
.yp-subhub-card__name { font-size: 18px; font-weight: 800; color: #363636; }
.yp-subhub-card__count { font-size: 13px; font-weight: 700; color: #5b7a8a; }
.yp-subhub-card__arrow { align-self: flex-end; color: #32bfa3; font-weight: 800; }

/* ============ STICKY NAV ============ */
.yp-sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 8px rgba(20,72,98,.1);
  transform: translateY(-100%); transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.yp-sticky-nav.is-visible { transform: translateY(0); }

.yp-sticky-nav__bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding: 0 48px;
}
.yp-sticky-nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.yp-sticky-nav__brand img { display: block; }
.yp-sticky-nav__divider { width: 2px; height: 28px; background: #dbe5ea; border-radius: 2px; }
.yp-sticky-nav__title { font-size: 20px; font-weight: 800; color: #363636; white-space: nowrap; }

.yp-sticky-nav__actions { display: flex; align-items: center; gap: 24px; }
.yp-sticky-nav__search {
  display: flex; align-items: center; gap: 10px;
  height: 44px; box-sizing: border-box; padding: 0 18px 0 14px;
  border: 2px solid #dbe5ea; border-radius: 999px; background: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #144862;
  cursor: pointer; transition: border-color .14s;
}
.yp-sticky-nav__search:hover { border-color: #9cb2bd; }
.yp-sticky-nav__search-icon { width: 20px; height: 20px; color: #32bfa3; }
.yp-sticky-nav__business { font-size: 15px; font-weight: 800; color: #32bfa3; text-decoration: none; }
.yp-sticky-nav__business:hover { text-decoration: underline; }
.yp-sticky-nav__burger {
  display: none;
  width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.yp-sticky-nav__burger span { display: block; width: 18px; height: 2px; background: #144862; border-radius: 2px; margin: 2px 0; }
.yp-sticky-nav__burger span:last-child { width: 12px; }

.yp-sticky-nav__hubs {
  padding: 0 48px 12px;
  border-top: 1px solid #f2f4f5;
}
.yp-sticky-nav__hubs .yp-hub-nav__list { padding-top: 12px; justify-content: flex-start; }

.yp-sticky-nav__reading { display: none; }

/* ============ SEARCH OVERLAY ============ */
body.yp-search-open { overflow: hidden; }
.yp-search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,72,98,.4);
  overflow-y: auto;
  padding: 40px 0;
}
.yp-search-overlay__inner {
  background: #fff; border-radius: 6px; padding: 24px 32px 32px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 8px 32px rgba(20,72,98,.24);
  max-width: 820px;
}
.yp-search-overlay__form { display: flex; gap: 12px; align-items: center; }
.yp-search-overlay__field { flex: 1; min-width: 0; }
.yp-search-overlay__field input {
  width: 100%; height: 56px; box-sizing: border-box;
  padding: 0 20px; border: 2px solid #dbe5ea; border-radius: 6px;
  font-family: inherit; font-size: 17px; color: #363636;
}
.yp-search-overlay__field input:focus { outline: none; border-color: #32bfa3; }
.yp-search-overlay__submit-icon { width: 20px; height: 20px; color: #fff; }
/* Force texte + icône loupe en blanc sur le bouton Rechercher (override cascade WP + .yp-btn--primary) */
.yp-search-overlay__submit,
.yp-search-overlay__submit:hover,
.yp-search-overlay__submit:focus,
.yp-search-overlay__submit:active { color: #fff; }
.yp-search-overlay__submit * { color: inherit; }
.yp-search-overlay__close {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: #f2f4f5; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.yp-search-overlay__close span { width: 18px; height: 18px; color: #144862; }

.yp-search-overlay__results {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid #dbe5ea; border-radius: 6px; padding: 20px;
}
/* Override attribut [hidden] (même spécificité que la classe → sinon display:flex wins). */
.yp-search-overlay__results[hidden],
.yp-search-overlay__all[hidden],
.yp-search-overlay__empty[hidden] { display: none; }
.yp-search-overlay__results-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b7a8a; }
.yp-search-overlay__list { list-style: none; margin: 0; padding: 0; }
.yp-search-overlay__result {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px;
  align-items: center; padding: 10px; border-radius: 6px;
  text-decoration: none; color: inherit;
  transition: background .14s;
}
.yp-search-overlay__result:hover { background: #f2f4f5; }
.yp-search-overlay__result-thumb { aspect-ratio: 1; border-radius: 6px; background: rgba(50,191,163,.12); }
.yp-search-overlay__result-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #5b7a8a; }
.yp-search-overlay__result-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: #363636; }
.yp-search-overlay__all { align-self: flex-start; padding: 10px 0; font-size: 15px; font-weight: 800; color: #32bfa3; text-decoration: none; }
.yp-search-overlay__all:hover { text-decoration: underline; }
.yp-search-overlay__empty { padding: 20px; text-align: center; color: #5b7a8a; }

/* ============ RESPONSIVE : MOBILE (<= 768px) ============ */
@media (max-width: 768px) {
  .yp-hero__top { padding: 16px 0 72px; }
  .yp-hero__top-inner { gap: 20px; }
  .yp-hero__brand-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .yp-hero__logo { width: 100px; height: 26px; }
  .yp-hero__baseline { font-size: 14px; line-height: 1.3; }
  .yp-hero__services { gap: 6px; }
  .yp-service-card {
    flex-direction: column; padding: 12px 2px 10px; min-height: 76px; gap: 8px;
    border: 2px solid #dbe5ea; border-radius: 12px; box-shadow: none;
  }
  .yp-service-card:hover { transform: none; box-shadow: none; }
  .yp-service-card__icon { width: 26px; height: 26px; }
  .yp-service-card__label { display: none; }
  .yp-service-card__short { display: block; font-size: 12px; font-weight: 700; color: #5b7a8a; text-align: center; line-height: 1.2; }
  .yp-service-card__arrow { display: none; }
  .yp-hero__trust { flex-direction: column; gap: 10px; font-size: 14px; }

  .yp-hero__card-wrap { margin-top: -48px; }
  .yp-hero__card {
    -webkit-clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
    padding: 52px 16px 8px;
    flex-direction: column; align-items: stretch; gap: 10px;
    position: relative;
  }
  .yp-hero__title { font-size: 40px; }
  .yp-hero__tagline { font-size: 17px; line-height: 1.4; }
  .yp-hero__card-badge { display: none; }
  .yp-search-trigger {
    position: absolute; top: 6px; right: 16px;
    width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%;
    gap: 0;
  }
  .yp-search-trigger__label { display: none; }

  .yp-hub-nav--inline { padding: 0; }
  .yp-hub-nav__list {
    gap: 8px; overflow-x: auto; padding: 8px 16px 12px;
    justify-content: flex-start; margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
  }
  .yp-hub-nav__list::-webkit-scrollbar { display: none; }
  .yp-hub-pill { flex: none; padding: 6px 14px 6px 6px; min-height: 44px; font-size: 14px; white-space: nowrap; }
  /* Safety: wpautop peut injecter des <p></p> dans la carte hero (chaînage shortcode). */
  .yp-hero p:empty { display: none; }

  .yp-home-hub .yp-wrap { gap: 14px; }
  .yp-home-hub__header { flex-direction: column; min-height: 0; }
  .yp-home-hub__photo { display: none; }
  .yp-home-hub__header-text { padding: 20px; }
  .yp-home-hub__title { font-size: 28px; }
  /* Mobile : on supprime l'intro du header pour éviter l'air vide sous le titre.
   * Elle reste visible/éditable en desktop + en back-office. */
  .yp-home-hub__intro { display: none; }

  .yp-home-hub__cols { grid-template-columns: 1fr; gap: 22px; }
  .yp-home-hub__cta { padding: 20px; }
  .yp-home-hub__groups { gap: 12px; }
  .yp-home-hub__group-title { font-size: 11px; }
  .yp-home-hub__group-text { font-size: 14px; line-height: 1.55; }

  .yp-home-hub__latest { gap: 14px; padding-top: 0; }
  .yp-home-hub__latest-head h3 { font-size: 20px; }
  .yp-home-hub__latest-list {
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: 260px; overflow-x: auto;
    margin: 0 -16px; padding: 0 16px 6px;
    gap: 14px;
  }
  .yp-home-hub__latest-list::-webkit-scrollbar { display: none; }
  .yp-article-card__title { font-size: 16px; }

  .yp-sticky-nav__bar-inner { height: 60px; padding: 0 8px 0 16px; }
  .yp-sticky-nav__brand img { width: 92px; height: 24px; }
  .yp-sticky-nav__divider { height: 24px; }
  .yp-sticky-nav__title { font-size: 17px; }
  .yp-sticky-nav__business { display: none; }
  .yp-sticky-nav__search {
    width: 44px; height: 44px; padding: 0; border: none; border-radius: 6px; justify-content: center;
  }
  .yp-sticky-nav__search-icon { color: #144862; }
  .yp-sticky-nav__search-label { display: none; }
  .yp-sticky-nav__burger { display: flex; }
  .yp-sticky-nav__hubs { display: none; padding: 12px 16px; }
  .yp-sticky-nav.is-open .yp-sticky-nav__hubs { display: block; }
  .yp-sticky-nav__hubs .yp-hub-nav__list { padding: 0; flex-direction: column; align-items: flex-start; gap: 8px; }

  .yp-sticky-nav__reading--mobile {
    display: block;
    border-top: 1px solid #f2f4f5; padding: 10px 0;
  }
  .yp-sticky-nav__reading-btn {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: none; cursor: pointer; padding: 0;
    font-family: inherit; font-size: 13px; font-weight: 700; color: #5b7a8a;
  }
  .yp-sticky-nav__reading-chevron { color: #144862; transition: transform .14s; }
  .yp-sticky-nav.is-open .yp-sticky-nav__reading-chevron { transform: rotate(180deg); }

  .yp-search-overlay { padding: 16px 0; }
  .yp-search-overlay__inner { margin: 0 16px; padding: 16px; gap: 16px; }
  .yp-search-overlay__form { flex-wrap: wrap; }
  .yp-search-overlay__submit-label { display: none; }
  .yp-search-overlay__submit { padding: 0 16px; min-width: 48px; }
}

@media (min-width: 769px) {
  .yp-sticky-nav__reading { display: none; }
}

/* ============ FOOTER ============
 * Design source : /Users/daniel/Desktop/Footer – Recherches populaires-html
 * Col 1 (brand) : logo + liens Yoopies. Cols 2-4 : services, blog, recherches.
 * Bandeau légal : strip plus foncé en bas.
 */
.yp-footer {
  background: #0e1e28;
  color: #cfd2d4;
  margin-top: 64px;
  font-family: inherit;
}
.yp-footer__inner {
  padding: 60px clamp(20px, 4.6vw, 60px) 60px;
  display: flex; flex-direction: column; gap: 44px;
}
.yp-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}
.yp-footer__col { min-width: 0; }
/* Col brand (dernière, à droite) : logo centré horizontalement + liens centrés
 * sous le logo pour un bloc visuellement cohérent. */
.yp-footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.yp-footer__col--brand .yp-footer__list { align-items: center; }

.yp-footer__brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.yp-footer__logo-svg {
  width: 160px;
  height: auto;
  display: block;
}
.yp-footer__brand:hover .yp-footer__logo-svg,
.yp-footer__brand:focus-visible .yp-footer__logo-svg { opacity: .85; }

.yp-footer__heading {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #ffffff;
}
.yp-footer__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 15px; line-height: 1.6;
}
.yp-footer__link {
  display: inline-block;
  color: #cfd2d4;
  text-decoration: none;
  transition: color .14s;
}
.yp-footer__link:hover,
.yp-footer__link:focus-visible { color: #ffffff; }

/* Bandeau légal : background plus foncé, pleine largeur, séparé du reste. */
.yp-footer__legal {
  margin: 0 calc(-1 * clamp(20px, 4.6vw, 60px)) calc(-60px) calc(-1 * clamp(20px, 4.6vw, 60px));
  background: #0c1a23;
  padding: 24px clamp(20px, 4.6vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}
.yp-footer__legal-link {
  color: #afb8bd;
  text-decoration: none;
  transition: color .14s;
}
.yp-footer__legal-link:hover,
.yp-footer__legal-link:focus-visible { color: #ffffff; }
.yp-footer__copy {
  margin: 0 0 0 auto;
  font-size: 12px;
  color: #6a8392;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .yp-footer__cols { grid-template-columns: 1fr 1fr; gap: 36px; }
  .yp-footer__col--brand { grid-column: 1 / -1; align-items: center; }
}
@media (max-width: 560px) {
  .yp-footer { margin-top: 48px; }
  .yp-footer__inner { padding: 40px 20px 40px; gap: 32px; }
  .yp-footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .yp-footer__col--brand { grid-column: auto; }
  .yp-footer__logo-svg { width: 140px; }
  .yp-footer__heading { margin-bottom: 10px; }
  .yp-footer__legal { margin: 0 -20px -40px -20px; padding: 20px; gap: 8px 0; }
  .yp-footer__copy { margin-left: 0; width: 100%; }
}

/* ============ PAGE 404 ============
 * Design source : /Users/daniel/Downloads/404.dc.html
 * Stack chat 3 messages + alerte Yoopies qui apparaissent en séquence,
 * sur fond "404" orange en watermark. H1 + 2 CTAs en dessous.
 */
.yp-404 {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 16px 80px;
  box-sizing: border-box;
}
.yp-404__watermark {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-size: clamp(200px, 38vw, 520px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fa9856;
  opacity: .16;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.yp-404__stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.yp-404__card {
  background: #fff;
  border: 1px solid #dbe5ea;
  border-radius: 22px;
  padding: 14px 18px;
  box-shadow:
    0 8px 10px 1px rgba(102,102,102,.14),
    0 3px 14px 2px rgba(102,102,102,.12),
    0 5px 5px -3px rgba(102,102,102,.2);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  opacity: 0;
  animation: yp-404-card-in 560ms cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: var(--yp-404-delay, .3s);
}
.yp-404__card--alert {
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 16px 18px;
  align-items: start;
}
.yp-404__card-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.yp-404__card-icon--alert {
  width: 44px; height: 44px;
  background: #fff;
  border: 2px solid #fef0e6;
  box-sizing: border-box;
  overflow: hidden;
}
.yp-404__card-icon-glyph {
  display: block;
  width: 24px; height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--yp-icon) center/contain no-repeat;
          mask: var(--yp-icon) center/contain no-repeat;
}
.yp-404__card-icon-glyph--brand {
  width: 28px; height: 28px;
  color: #32bfa3;
}

.yp-404__card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.yp-404__card-time {
  font-size: 12px;
  font-weight: 700;
  color: #9cb2bd;
}
.yp-404__card-from {
  font-size: 16px;
  font-weight: 800;
  color: #363636;
}
.yp-404__card-text {
  font-size: 15px;
  line-height: 1.35;
  color: #5b7a8a;
  margin-top: 2px;
}

@keyframes yp-404-card-in {
  0%  { transform: translateY(-20px) scale(.88); opacity: 0; }
  60% { transform: translateY(3px) scale(1.03);  opacity: 1; }
  82% { transform: translateY(-1px) scale(.995); opacity: 1; }
  100%{ transform: none;                          opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .yp-404__card { opacity: 1; animation: none; }
}

.yp-404__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 520px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  color: #363636;
  text-align: center;
  text-wrap: balance;
}
.yp-404__title-accent { color: #fa9856; }

.yp-404__ctas {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.yp-404__cta {
  min-width: 180px;
  justify-content: center;
}

/* Bouton outlined (variante du .yp-btn pour le CTA secondaire). */
.yp-btn--outlined {
  background: #fff;
  color: #144862;
  border: 2px solid #dbe5ea;
}
.yp-btn--outlined:hover,
.yp-btn--outlined:focus-visible {
  background: #fff;
  color: #144862;
  border-color: #9cb2bd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20,72,98,.1);
}

@media (max-width: 560px) {
  .yp-404 { padding: 40px 16px 60px; gap: 32px; }
  .yp-404__cta { min-width: 0; width: 100%; }
}


