/* Paceshot · pages « Actualités » (paceshot.com/actualites), rendues par Next dans le design des
   pages statiques : en plus de landing.css. Préfixe ac-. Couleurs : jetons des deux thèmes. */

/* En-tête court sur photo (comme /fonctionnalites) */
.fhero { position: relative; isolation: isolate; padding: 150px 0 84px; text-align: center; }
.fhero-frame { position: absolute; z-index: -1; inset: var(--hero-inset) var(--hero-inset) 0; border-radius: var(--hero-r); overflow: hidden; background: #14161b url("/assets/landing-v2/img/cretes.webp") center 55% / cover no-repeat; }
.fhero-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 45%, rgba(var(--veil-rgb), .55), transparent 80%), linear-gradient(180deg, rgba(var(--veil-rgb), .82), rgba(var(--veil-rgb), .55) 55%, rgba(var(--veil-rgb), .78)); }
.fhero h1 { font-size: min(clamp(40px, 6.2vw, 92px), calc((100vw - 32px) / 8.6)); text-transform: uppercase; line-height: .95; margin: 22px auto 22px; text-shadow: 0 10px 60px rgba(0, 0, 0, .45); }
.fhero .lead { color: var(--photo-muted); margin-bottom: 0; }
.ac-rss { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px; color: var(--photo-ink); font-weight: 600; font-size: 15px; text-decoration: none; opacity: .9; }
.ac-rss:hover { opacity: 1; text-decoration: underline; }
.ac-rss svg { width: 18px; height: 18px; }

/* Liste */
.ac-list { padding: 80px 0 110px; }
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.ac-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); transition: transform .25s, border-color .25s; }
.ac-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .5); }
.ac-card .ac-img { aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.ac-card .ac-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-card .ac-img.ph { display: grid; place-items: center; background: #14161b url("/assets/landing-v2/img/sancy-876.webp") center / cover; }
.ac-card .ac-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.ac-card h2 { font-size: 22px; line-height: 1.15; text-transform: none; letter-spacing: 0; word-spacing: normal; }
.ac-card h2 a { text-decoration: none; }
.ac-card h2 a::after { content: ""; position: absolute; inset: 0; }
.ac-card h2 a:focus-visible { outline: none; }
.ac-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.ac-card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--dim); font-size: 13.5px; }
.ac-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.ac-tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); font-size: 12.5px; font-weight: 700; }
.ac-card.ac-first { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ac-card.ac-first .ac-img { aspect-ratio: auto; min-height: 320px; }
.ac-card.ac-first .ac-body { justify-content: center; padding: 36px; }
.ac-card.ac-first h2 { font-size: clamp(26px, 2.6vw, 36px); }
.ac-empty { max-width: 640px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 18px; }
.ac-empty a { color: var(--accent-ink); font-weight: 600; }
.ac-pages { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 48px; }
.ac-pages a, .ac-pages span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; font-weight: 600; }
.ac-pages [aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 1023px) { .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ac-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ac-card.ac-first { display: flex; }
  .ac-card.ac-first .ac-img { min-height: 0; aspect-ratio: 16 / 9; }
  .ac-card.ac-first .ac-body { padding: 22px 22px 24px; }
  .fhero { padding: 124px 0 64px; }
  .ac-list { padding: 56px 0 80px; }
}

/* Article */
.ac-article { padding: 116px 0 40px; }
.ac-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.ac-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 26px; padding: 0; list-style: none; color: var(--dim); font-size: 14px; }
.ac-crumbs li + li::before { content: "›"; margin-right: 6px; }
.ac-crumbs a { color: var(--muted); text-decoration: none; }
.ac-crumbs a:hover { color: var(--text); text-decoration: underline; }
.ac-crumbs [aria-current] { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.ac-article h1 { font-size: min(clamp(34px, 4.6vw, 60px), calc((100vw - 32px) / 7.4)); line-height: 1.02; letter-spacing: -.015em; word-spacing: normal; }
.ac-chapo { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.ac-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.ac-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.ac-byline b { color: var(--text); }
.ac-byline a { color: inherit; text-decoration: none; }
.ac-byline a:hover b { color: var(--accent-ink); }
.ac-cover { width: min(1100px, 100% - 32px); margin: 40px auto 0; }
.ac-cover img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--frame-shadow); }
.ac-cover figcaption { margin-top: 10px; text-align: center; color: var(--dim); font-size: 13.5px; }

/* Texte de l'article (HTML assaini de l'éditeur) */
.ac-prose { margin-top: 44px; font-size: 18px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.ac-prose > * + * { margin-top: 1.1em; }
.ac-prose p { color: var(--text); }
.ac-prose h2 { margin-top: 1.9em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.01em; word-spacing: normal; }
.ac-prose h3 { margin-top: 1.6em; font-size: clamp(21px, 2vw, 25px); line-height: 1.2; word-spacing: normal; }
.ac-prose h4 { margin: 1.4em 0 0; font-size: 18px; }
.ac-prose a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }
.ac-prose strong { font-weight: 700; }
.ac-prose em { font-style: italic; color: inherit; }
.ac-prose ul, .ac-prose ol { padding-left: 1.3em; }
.ac-prose li + li { margin-top: .45em; }
.ac-prose li::marker { color: var(--accent); }
.ac-prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 19px; }
.ac-prose img { border-radius: 16px; margin-inline: auto; }
.ac-prose figure { margin-left: 0; margin-right: 0; }
.ac-prose figcaption { margin-top: 8px; text-align: center; color: var(--dim); font-size: 14px; }
.ac-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.ac-prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface2); font-size: .9em; }
.ac-prose pre { padding: 16px 18px; border-radius: 14px; background: var(--surface2); overflow-x: auto; font-size: 15px; line-height: 1.55; }
.ac-prose pre code { padding: 0; background: none; }
.ac-article .ac-tags { margin-top: 36px; }

/* Encadré auteur */
.ac-author { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 56px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); }
.ac-author img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.ac-author h2 { font-size: 21px; text-transform: none; letter-spacing: 0; word-spacing: normal; }
.ac-author p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ac-author a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 520px) { .ac-author { grid-template-columns: minmax(0, 1fr); text-align: left; } .ac-author img { width: 72px; height: 72px; } }

/* Articles liés */
.ac-related { padding: 80px 0 100px; border-top: 1px solid var(--line); margin-top: 72px; }
.ac-related h2 { font-size: min(clamp(28px, 3.4vw, 46px), calc((100vw - 32px) / 9)); text-transform: uppercase; margin-bottom: 34px; }
@media (max-width: 760px) { .ac-article { padding-top: 100px; } .ac-prose { font-size: 17px; } }

/* Aperçu (back-office) */
.ac-preview { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: #4a2a9e; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); max-width: calc(100% - 32px); }
.ac-preview a { color: #fff; }
