/* Opinions & Tribunes (maquette 11, 949 px) — category-opinions.php. Cote CSS = cote de la maquette ÷ 0,678. */

.tpl-opinions { background: #fcfcfc; }

/* ---------- Bandeau : titre à gauche, citation à droite ---------- */
.tpl-opinions .page-hero__media::after { background: linear-gradient(90deg, rgb(10 12 16 / .93) 0%, rgb(10 12 16 / .82) 38%, rgb(10 12 16 / .3) 62%, rgb(10 12 16 / .55) 100%); }
.tpl-opinions .page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 40px; row-gap: 0; align-content: start; min-height: 243px; padding-block: 24px 28px; }
.tpl-opinions .page-hero__inner > * { grid-column: 1; }
.tpl-opinions .page-hero .breadcrumb { margin-bottom: 28px; }
.tpl-opinions .page-hero .breadcrumb ol { font-size: 14.5px; }
.tpl-opinions .page-hero__title { margin-top: 5px; font-size: 61px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.tpl-opinions .page-hero__subtitle { margin-top: 7px; max-width: 630px; font-size: 19.5px; line-height: 28px; }
.op-hero__quote { grid-column: 2 !important; grid-row: 1 / span 3; align-self: start; margin-top: 0; }
.op-hero__mark { display: block; height: 62px; margin-left: -4px; color: var(--red); font: 700 90px/1.17 Georgia, serif; } /* guillemet « 66 » arrondi de la maquette (celui de Roboto Slab est droit) */
.op-hero__text { margin: 0; font-size: 18.5px; line-height: 29px; color: var(--white); text-wrap: pretty; }
.op-hero__text::after { content: ""; display: inline-block; width: 50px; height: 3px; margin-left: 15px; vertical-align: middle; background: var(--red); }

/* ---------- Grille : colonne principale + barre latérale, pagination pleine largeur ---------- */
.op-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 19px; }
.op-main { min-width: 0; }
.op-body > .pagination { grid-column: 1 / -1; }

/* Pastilles de filtre carrées grises */
.op-chips { gap: 12px; margin-bottom: 25px; }
.op-chips .chip { min-height: 45px; padding: 0 23px; border: 0; border-radius: 5px; background: #f6f5f6; font-size: 13.5px; font-weight: 600; color: #1a1a1a; }
.op-chips .chip:hover { background: var(--red-soft); color: var(--red); }
.op-chips .chip.is-active { min-width: 98px; justify-content: center; background: #d8020f; color: var(--white); }

/* En-têtes de section */
.op-section .section-header { margin-bottom: 13px; }
.op-section .section-header__title { font-size: 18.5px; }
.op-section .section-header__link { font-size: 14.5px; }
.op-section .section-header__link .icon { font-size: 16px; }
.op-section { margin-top: 28px; }

/* ---------- Une : grande carte (hauteur fixe) + 3 cartes portrait ---------- */
.op-une { display: grid; grid-template-columns: 59fr 41fr; gap: 16px; }
.op-lead { position: relative; align-self: start; display: flex; min-height: 457px; overflow: hidden; border-radius: 6px; background: #111; color: var(--white); isolation: isolate; }
.op-lead__media { position: absolute; inset: 0; z-index: -1; }
.op-lead__media img, .op-lead__media .img-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.op-lead:hover .op-lead__media img { transform: scale(1.03); }
.op-lead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .78) 60%, rgb(0 0 0 / .95) 100%); }
.op-lead__body { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 18px 15px 16px; }
.op-lead__label { padding: 6px 9px; font-size: 12.5px; border-radius: 4px; }
.op-lead__title { color: var(--white); font: 600 26.5px/32px var(--serif); }
.op-lead__title a:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.op-lead__excerpt { margin: 0; font-size: 14.5px; line-height: 20px; color: rgb(255 255 255 / .9); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.op-lead__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding-right: 44px; font-size: 13px; color: rgb(255 255 255 / .92); }
.op-lead__meta span { display: inline-flex; align-items: center; gap: 7px; }
.op-lead__meta .icon { font-size: 15px; }
.op-lead__go { position: absolute; right: 15px; bottom: 11px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 18px; transition: transform .2s var(--ease); }
.op-lead:hover .op-lead__go { transform: translateX(3px); }
.op-une__side { display: grid; grid-auto-rows: 1fr; gap: 13px; }

/* ---------- Cartes d'opinion ---------- */
.op-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.op-card__media { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--surface); aspect-ratio: 1.94; }
.op-card__media img, .op-card__media .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.op-card__media:hover img { transform: scale(1.04); }
.op-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 8px 0; min-width: 0; }
.op-card .badge { margin-left: -3px; padding: 1px 3px; border-radius: 2px; background: #fdeff1; font-size: 12px; letter-spacing: .02em; }
.op-card__title { font-size: 15.5px; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.op-card__by { margin: 3px 0 0; font-size: 13px; line-height: 19px; color: var(--red); }
.op-card__by .icon { display: none; }
.op-card__by a, .op-card__by span { font-weight: 600; }
.op-card__by a:hover { text-decoration: underline; }
.op-card__meta { display: flex; flex-direction: column; gap: 3px; margin: 2px 0 0; font-size: 13px; line-height: 19px; color: #6f7176; }
.op-card__meta span { display: inline-flex; align-items: center; gap: 7px; }
.op-card__meta .icon { font-size: 14px; }

/* Portrait à gauche (à côté de la une) */
.op-card--row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; }
.op-card--row .op-card__media { aspect-ratio: 1; border-radius: 5px; }
.op-card--row .op-card__body { padding: 1px 0 0; }
.op-card--row .op-card__title { margin-top: 1px; font-size: 14px; line-height: 20px; }
.op-card--row .op-card__by { margin-top: 7px; color: #6f7176; }
.op-card--row .op-card__by .icon { display: inline-block; margin-right: 7px; font-size: 14px; }
.op-card--row .op-card__by a, .op-card--row .op-card__by span { color: inherit; font-weight: 400; }
.op-card--row .op-card__meta { gap: 1.5px; margin-top: 0; }

/* Carte bordée à image panoramique (analyses) */
.op-card--wide { border: 1px solid #ececec; border-radius: 6px; background: var(--white); }
.op-card--wide .op-card__media { aspect-ratio: 3.25; border-radius: 6px 6px 0 0; }
.op-card--wide .op-card__body { gap: 2px; padding: 11px 20px 12px; }
.op-card--wide .op-card__title { font-size: 15px; line-height: 20px; -webkit-line-clamp: 2; }
.op-card--wide .op-card__meta { flex-direction: row; gap: 22px; }

.op-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.op-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }

/* ---------- Nos auteurs ---------- */
.op-authors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.op-author { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ececec; border-radius: 6px; background: var(--white); transition: box-shadow .2s var(--ease); }
.op-author:hover { box-shadow: var(--shadow); }
.op-author__photo { display: grid; place-items: center; aspect-ratio: 1.4; overflow: hidden; background: #eeeff1; color: #b9bbc0; font-size: 48px; }
.op-author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.op-author__body { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 10px 12px; }
.op-author__name { font-size: 14px; line-height: 1.3; font-weight: 800; }
.op-author__name a:hover { color: var(--red); }
.op-author__role { margin: 0; font-size: 13px; color: var(--muted); }
.op-author__topics { margin: 0; font-size: 12px; line-height: 1.45; color: #3c3c3c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-author__count { display: inline-flex; align-items: center; gap: 7px; margin: auto 0 0; padding-top: 4px; font-size: 12.5px; color: var(--muted); }
.op-author__count .icon { font-size: 14px; }
.op-author__photo--logo { background: radial-gradient(120% 120% at 50% 20%, #2a2c33, #101114 70%); }
.op-author__photo--logo .logo-text { color: var(--white); font-size: 24px; }
.op-author.is-placeholder:hover { box-shadow: none; }
@media (max-width: 600px) { .op-author.is-placeholder { display: none; } }
/* Deux colonnes : « Catégories » descend jusqu'au bas des articles */
@media (min-width: 901px) {
	.op-body > .op-sidebar { display: flex; flex-direction: column; align-self: stretch; }
	.op-cats { display: flex; flex-direction: column; flex: 1 0 auto; }
	.op-cats__list { display: grid; flex: 1; }
	.op-cats__link { height: 100%; }
}

/* ---------- Pagination ---------- */
.tpl-opinions .pagination { gap: 7px; margin-top: 2px; }
.op-main > .pagination { margin-top: 28px; }
.tpl-opinions .pagination .page-numbers { min-width: 39px; height: 40px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.tpl-opinions .pagination .page-numbers.current { background: #d8020f; border-color: #d8020f; }
.tpl-opinions .pagination .prev { margin-right: 28px; }
.tpl-opinions .pagination .next { margin-left: 17px; background: #f2f1f2; border-color: #f2f1f2; }
.tpl-opinions .pagination :is(.prev, .next) .icon { font-size: 18px; }
.tpl-opinions .pagination .is-disabled { opacity: 1; color: #6f7176; } /* la maquette montre « ‹ » foncé en page 1 */
.tpl-opinions .pagination .dots { min-width: 54px; }

/* ---------- Barre latérale ---------- */
.op-sidebar { gap: 20px; margin-top: 12px; }
.op-box { border: 1px solid #ececec; border-radius: 6px; background: var(--white); overflow: hidden; }
.op-box .section-header--boxed { margin: 0; padding: 11px 12px; border-radius: 0; background: #faebed; }
.op-box .section-header--boxed .section-header__title { padding-left: 16px; font-size: 16.5px; text-transform: none; }

.op-box .ranked-list { gap: 0; padding: 0 12px 0 10px; }
.op-box .card-ranked { grid-template-columns: 32px 68px minmax(0, 1fr); gap: 13px; padding-block: 10px; border-top: 1px solid #f0f0f0; }
.op-box .card-ranked:first-child { padding-top: 8px; border-top: 0; }
.op-box .card-ranked__rank { width: 32px; height: 32px; font-size: 15px; color: #ff0a15; background: #fde6e8; }
.op-box .card-ranked__media { aspect-ratio: 1; border-radius: 4px; }
.op-box .card-ranked__body { gap: 4px; }
.op-box .card-ranked__title { font-size: 13px; line-height: 20px; }
.op-box .card-ranked .meta { font-size: 12.5px; color: #6f7176; }

/* Appel à contributions */
.op-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 310px; padding: 20px 20px 17px 19px; border-radius: 6px; background: #17191d; color: var(--white); }
.op-cta__media { position: absolute; inset: 0; z-index: -1; }
.op-cta__media img, .op-cta__media .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.op-cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 13 16 / .92) 0%, rgb(12 13 16 / .68) 45%, rgb(12 13 16 / .94) 100%); }
.op-cta__title { color: var(--white); font: 700 25.5px/1.2 var(--serif); }
.op-cta__title span { display: block; margin-bottom: 3px; font: 600 18.5px/1.3 var(--font); }
.op-cta__text { max-width: 264px; margin: auto 0 14px; padding-top: 24px; font-size: 15px; line-height: 21px; color: rgb(255 255 255 / .94); }
.op-cta__btn { min-height: 43px; padding-inline: 29px; border-radius: 4px; background: #d8020f; font-size: 15.5px; }

/* Catégories */
.op-cats__list { padding: 4px 20px 6px; }
.op-cats__list li + li { border-top: 1px solid #f0f0f0; }
.op-cats__link { display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: 14.5px; color: var(--text); }
.op-cats__link:hover, .op-cats__link[aria-current] { color: var(--red); }
.op-cats__icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--red); color: var(--white); font-size: 13px; flex: none; }
.op-cats__name { flex: 1; min-width: 0; }
.op-cats__count { min-width: 45px; padding: 2px 10px; border-radius: 999px; background: #f0f0f0; color: var(--muted); font-size: 13.5px; line-height: 18px; font-weight: 500; text-align: center; }

/* ---------- Newsletter (plus compacte sur la maquette 11) ---------- */
.tpl-opinions .nl-banner { margin-block: 21px 10px; }
@media (min-width: 1025px) {
	.tpl-opinions .nl-banner__inner { padding: 9px 27px 9px 24px; }
	.tpl-opinions .nl-banner .nl-form input, .tpl-opinions .nl-banner .nl-form .btn { min-height: 49px; }
	.tpl-opinions .nl-banner .nl-form .btn { min-width: 164px; font-size: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.op-authors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.op-body { grid-template-columns: minmax(0, 1fr) 300px; }
	.op-une { grid-template-columns: 1fr; }
	.op-une__side { grid-auto-rows: auto; }
	.op-lead { min-height: 420px; }
	.op-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.op-body { grid-template-columns: 1fr; gap: 36px; }
	.op-body > .pagination { grid-row: 2; margin-top: -10px; }
	.tpl-opinions .page-hero__inner { grid-template-columns: 1fr; }
	.op-hero__quote { grid-column: 1 !important; grid-row: auto; margin-top: 20px; max-width: 520px; }
	.op-sidebar { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; margin-top: 0; }
}
@media (max-width: 600px) {
	.tpl-opinions .page-hero__inner { min-height: 0; padding-block: 20px 24px; }
	.tpl-opinions .page-hero .breadcrumb { margin-bottom: 16px; }
	.tpl-opinions .page-hero__title { font-size: 36px; }
	.tpl-opinions .page-hero__subtitle { margin-top: 8px; font-size: 16px; line-height: 1.45; }
	.op-hero__mark { height: 40px; font-size: 80px; }
	.op-hero__text { font-size: 16px; line-height: 1.5; }
	.op-chips { flex-wrap: nowrap; gap: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
	.op-section .section-header { flex-wrap: wrap; gap: 6px 16px; }
	.op-section .section-header__title { font-size: 17px; }
	.op-chips::-webkit-scrollbar { display: none; }
	.op-chips .chip { flex: none; min-height: 38px; padding: 0 16px; }
	.op-chips .chip.is-active { min-width: 0; }
	.op-lead { flex-direction: column; min-height: 0; }
	.op-lead__media { position: relative; aspect-ratio: 16 / 9; }
	.op-lead__media::after { background: linear-gradient(180deg, rgb(0 0 0 / 0) 60%, #111 100%); }
	.op-lead__label { position: absolute; top: 12px; left: 12px; }
	.op-lead__body { align-self: stretch; padding: 4px 16px 18px; }
	.op-lead__title { font-size: 22px; }
	.op-lead__meta { padding-right: 0; }
	.op-lead__go { display: none; }
	.op-card--row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
	.op-grid, .op-grid--3 { grid-template-columns: 1fr; }
	.op-grid .op-card--col { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; }
	.op-grid .op-card--col .op-card__media { aspect-ratio: 4 / 3; }
	.op-grid .op-card--col .op-card__body { padding: 0; }
	.op-authors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.op-sidebar { grid-template-columns: 1fr; }
	.tpl-opinions .pagination .prev { margin-right: 8px; }
	.tpl-opinions .pagination .next { margin-left: 8px; }
}
