/* =========================================================
   Portail Alu Prestige — liste du blog (/blog, /blog/<catégorie>, /blog/authors/<auteur>)
   D'après la maquette maquettes/blog.html (validée le 2026-11-09).
   Gabarit : modules/ph_simpleblog/views/templates/front/1.7/list.tpl (thème enfant).
   Chargée uniquement sur ces pages par templates/_partials/stylesheets.tpl :
   après une modification, augmenter le ?v= du lien dans ce fichier.
   Images de couverture en 16:9 affichées en 16:9 : rien n'est recadré.
   ========================================================= */

body#module-ph_simpleblog-list,
body#module-ph_simpleblog-category,
body#module-ph_simpleblog-page,
body#module-ph_simpleblog-categorypage,
body#module-ph_simpleblog-author,
body#module-ph_simpleblog-authorpage {
  --pap-shadow-sm: 0 1px 2px rgba(6, 20, 48, .06), 0 2px 8px rgba(6, 20, 48, .04);
  --pap-alu-500: #8A93A3;
  background: var(--pap-stone-50);
}

/* ---------- Bandeau ---------- */
.pap-blog-hero { position: relative; overflow: hidden; padding: 0 0 128px; background: var(--pap-navy-800); color: #AEB8CC; }
.pap-blog-hero::before { content: ""; position: absolute; left: -180px; bottom: -260px; width: 520px; height: 520px; border: 2px solid rgba(255, 255, 255, .06); border-radius: 50%; }
.pap-blog-hero::after { content: ""; position: absolute; right: -140px; top: -160px; width: 440px; height: 440px; border: 2px solid rgba(255, 119, 0, .3); border-radius: 50%; }
.pap-blog-hero > * { position: relative; z-index: 1; }
.pap-blog-hero .breadcrumb__wrapper { margin: 0; background: transparent; }
.pap-blog-hero .breadcrumb { --bs-breadcrumb-divider-color: #5F6E8C; --bs-breadcrumb-item-active-color: #8E9AB3; color: #8E9AB3; }
.pap-blog-hero .breadcrumb-link { color: #AEB8CC; text-decoration: none; }
.pap-blog-hero .breadcrumb-link:hover { color: #fff; }
.pap-blog-hero__text { display: grid; gap: 14px; max-width: 760px; padding-top: 14px; }
.pap-blog-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--pap-f-display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--pap-orange); }
.pap-blog-hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--pap-orange); }
.pap-blog-hero__title { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.12; color: #fff; text-wrap: balance; }
.pap-blog-hero__lead { max-width: 62ch; margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: #AEB8CC; }

/* Pastilles : liens vers les catégories du blog */
.pap-blog-cats ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.pap-blog-chip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 999px;
  font-family: var(--pap-f-display); font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.pap-blog-chip:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .05); color: #fff; }
.pap-blog-chip[aria-current="page"] { border-color: var(--pap-orange); background: var(--pap-orange); color: #fff; }

/* ---------- Mise en page ---------- */
.pap-blog { position: relative; z-index: 2; margin-top: -84px; padding-bottom: 8px; }
.pap-blog--plain { margin-top: 0; padding-top: clamp(40px, 5vw, 56px); }
.pap-blog__content { margin: 0; padding: 0; }
body[id^="module-ph_simpleblog"] #notifications .container:empty { display: none; }
/* Sans article à la une (catégorie, page 2…) : la grille commence sous le bandeau */
.pap-blog-hero--plain { padding-bottom: clamp(48px, 6vw, 72px); }

/* ---------- Article à la une ---------- */
.pap-blog-feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch;
  overflow: hidden; background: #fff; border: 1px solid var(--pap-stone-200); border-radius: var(--pap-r-lg); box-shadow: var(--pap-shadow-lg);
}
.pap-blog-feature__media { display: grid; align-items: center; background: var(--pap-navy-900); }
.pap-blog-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pap-blog-feature__body { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3.4vw, 48px); }
.pap-blog-feature__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pap-blog-une { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pap-f-display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pap-orange-600); }
.pap-blog-une::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pap-orange); box-shadow: 0 0 0 4px var(--pap-orange-50); }
.pap-blog-feature__title { margin: 0; font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; line-height: 1.15; color: var(--pap-navy-800); text-wrap: balance; }
.pap-blog-feature__title a { color: inherit; text-decoration: none; transition: color .2s; }
.pap-blog-feature__title a::after { content: ""; position: absolute; inset: 0; }
.pap-blog-feature:hover .pap-blog-feature__title a { color: var(--pap-navy-600); }
.pap-blog-feature__excerpt { margin: 0; font-size: 16px; line-height: 1.6; color: var(--pap-ink-2); }
.pap-blog-feature__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--pap-stone-100); }
.pap-blog-author { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; color: var(--pap-ink-3); }
.pap-blog-author i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pap-navy-800); font: 700 13px var(--pap-f-display); font-style: normal; color: #fff; }
.pap-blog-author b { display: block; font-weight: 600; color: var(--pap-navy-800); }
.pap-blog-feature__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; pointer-events: none; }
.pap-blog-feature__btn svg { width: 18px; height: 18px; transition: transform .2s; }
.pap-blog-feature:hover .pap-blog-feature__btn { background: var(--pap-orange-600); border-color: var(--pap-orange-600); }
.pap-blog-feature:hover .pap-blog-feature__btn svg { transform: translateX(3px); }

/* Catégorie (pastille) et méta */
.pap-blog-cat { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--pap-orange-50); font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--pap-orange-600); text-decoration: none; transition: background .2s, color .2s; }
.pap-blog-cat:hover { background: var(--pap-orange); color: #fff; }
.pap-blog-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--pap-ink-3); }
.pap-blog-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pap-blog-meta svg { width: 15px; height: 15px; color: var(--pap-alu-500); }

/* ---------- Grille ---------- */
.pap-blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: clamp(48px, 6vw, 72px) 0 28px; }
.pap-blog--plain .pap-blog-head { margin-top: 0; }
.pap-blog-head h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--pap-navy-800); }
.pap-blog-head p { margin: 0; font-size: 14px; color: var(--pap-ink-3); }
.pap-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.pap-blog-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--pap-stone-200); border-radius: var(--pap-r-lg); transition: box-shadow .25s, transform .25s, border-color .25s; }
.pap-blog-card:hover { border-color: transparent; box-shadow: var(--pap-shadow); transform: translateY(-3px); }
.pap-blog-card__media { display: block; background: var(--pap-navy-900); border-bottom: 1px solid var(--pap-stone-100); }
.pap-blog-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pap-blog-noimg { display: grid; place-items: center; aspect-ratio: 16 / 9; font-family: var(--pap-f-display); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.pap-blog-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 24px; }
.pap-blog-card__title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--pap-navy-800); text-wrap: balance; }
.pap-blog-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.pap-blog-card__title a::after { content: ""; position: absolute; inset: 0; }
.pap-blog-card:hover .pap-blog-card__title a { color: var(--pap-navy-600); }
.pap-blog-card__excerpt { display: -webkit-box; margin: 0; overflow: hidden; font-size: 15px; line-height: 1.6; color: var(--pap-ink-2); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pap-blog-card__foot { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pap-stone-100); }
.pap-blog-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pap-f-display); font-size: 14px; font-weight: 700; color: var(--pap-navy-700); white-space: nowrap; transition: color .2s; }
.pap-blog-card__more::after { content: "→"; transition: transform .2s; }
.pap-blog-card:hover .pap-blog-card__more { color: var(--pap-orange-600); }
.pap-blog-card:hover .pap-blog-card__more::after { transform: translateX(4px); }

/* Carte « Guides pratiques » */
.pap-blog-guides { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; border-radius: var(--pap-r-lg); background: var(--pap-navy-800); color: #AEB8CC; }
.pap-blog-guides::after { content: ""; position: absolute; right: -150px; bottom: -190px; width: 280px; height: 280px; border: 2px solid rgba(255, 119, 0, .3); border-radius: 50%; }
.pap-blog-guides__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--pap-f-display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--pap-orange); }
.pap-blog-guides__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--pap-orange); }
.pap-blog-guides h3 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.2; color: #fff; }
.pap-blog-guides > p { margin: 0; font-size: 15px; line-height: 1.6; }
.pap-blog-guides ul { position: relative; z-index: 1; display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.pap-blog-guides li + li { border-top: 1px solid rgba(255, 255, 255, .09); }
.pap-blog-guides li a { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 14.5px; font-weight: 600; color: #fff; text-decoration: none; }
.pap-blog-guides li a svg { width: 20px; height: 20px; flex: none; color: var(--pap-orange); }
.pap-blog-guides li a::after { content: "→"; margin-left: auto; color: #8E9AB3; transition: transform .2s, color .2s; }
.pap-blog-guides li a:hover { color: #fff; }
.pap-blog-guides li a:hover::after { color: var(--pap-orange); transform: translateX(4px); }

/* ---------- Pagination ---------- */
.pap-blog-pages { display: grid; justify-items: center; gap: 14px; margin-top: 28px; }
.pap-blog-pages p { margin: 0; font-size: 13px; color: var(--pap-ink-3); }
.pap-blog-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pap-blog-pages a, .pap-blog-pages__current, .pap-blog-pages__gap { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; font-family: var(--pap-f-display); font-size: 14px; font-weight: 700; text-decoration: none; }
.pap-blog-pages a { border: 1.5px solid var(--pap-stone-200); background: #fff; color: var(--pap-navy-800); }
.pap-blog-pages a:hover { border-color: var(--pap-navy-800); color: var(--pap-navy-800); }
.pap-blog-pages__current { background: var(--pap-navy-800); color: #fff; }
.pap-blog-pages__gap { color: var(--pap-ink-3); }

.pap-blog-empty { display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 48px); background: #fff; border: 1px solid var(--pap-stone-200); border-radius: var(--pap-r-lg); box-shadow: var(--pap-shadow-sm); }
.pap-blog-empty h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--pap-navy-800); }
.pap-blog-empty p { margin: 0; color: var(--pap-ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pap-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pap-blog-feature { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .pap-blog-hero { padding-bottom: 104px; }
  .pap-blog-hero--plain { padding-bottom: 48px; }
  .pap-blog { margin-top: -64px; }
  .pap-blog--plain { margin-top: 0; }
  .pap-blog-cats { margin-right: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5); }
  .pap-blog-cats ul { flex-wrap: nowrap; overflow-x: auto; padding-right: 16px; scrollbar-width: none; }
  .pap-blog-cats ul::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .pap-blog-hero::before { display: none; }
  .pap-blog-hero::after { width: 240px; height: 240px; right: -150px; top: -110px; }
  .pap-blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .pap-blog-card__body { padding: 20px; }
  .pap-blog-feature__btn { width: 100%; justify-content: center; }
  .pap-blog-chip { height: 40px; padding: 0 14px; font-size: 13px; }
}
