/* /actualite/ — premium layer loaded after actualite.css. Same language as the home / utility pages:
   deep-green hero with drifting light and a "live" dot, featured story with image drift, cards
   with zoom + lift, animated category filters and scroll reveals (assets/actualite-luxe.js).
   Static under prefers-reduced-motion. */

.actu-page-shell {
  --ax-brand: #286153;
  --ax-brand-deep: #1d4c41;
  --ax-ink: #182423;
  --ax-gold: #c6ae78;
  --ax-gold-soft: #e8d9ad;
  --ax-border: #dce6dd;
  --ax-bg-2: #eef3eb;
  --ax-text: #1c302a;
  --ax-text-2: #42584e;
  --ax-muted: #5b7065;
  --ax-spring: cubic-bezier(.2, .95, .25, 1.15);
  --ax-ease: cubic-bezier(.65, 0, .25, 1);
  --ax-heading: "Lexend", "Source Sans 3", system-ui, sans-serif;
  max-width: 1180px;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.actu-page-shell *, .actu-page-shell *::before, .actu-page-shell *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */
.actu-page-shell .actu-hero {
  position: relative;
  max-width: none;
  margin: 8px 0 48px;
  padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 64px) 40px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(198, 174, 120, .32), transparent 60%),
    linear-gradient(135deg, #182423 0%, #1f3833 50%, #286153 100%);
  box-shadow: 0 40px 80px -48px rgba(24, 36, 35, .9);
}
.actu-page-shell .actu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 30%, #000 20%, transparent 75%);
}
.actu-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .5; pointer-events: none; will-change: transform; }
.actu-blob--1 { width: 380px; height: 380px; top: -190px; right: 14%; background: #3f8a74; animation: ax-drift-a 18s ease-in-out infinite alternate; }
.actu-blob--2 { width: 300px; height: 300px; bottom: -200px; left: 32%; background: rgba(198, 174, 120, .75); animation: ax-drift-b 22s ease-in-out infinite alternate; }
.actu-page-shell .actu-hero__kicker {
  margin-bottom: 18px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(232, 217, 173, .3);
  color: var(--ax-gold-soft);
  letter-spacing: .14em;
}
.actu-page-shell .actu-hero h1 {
  max-width: 14ch;
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--ax-heading);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.actu-page-shell .actu-hero__intro { max-width: 60ch; color: rgba(255, 255, 255, .86); font-size: 1.1rem; }
.actu-page-shell .actu-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  font-size: .9rem;
  font-weight: 700;
}
.actu-live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #7fd1a8; animation: ax-pulse 2s ease-out infinite; }

.actu-page-shell .actu-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ax-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -.025em;
}
.actu-page-shell .actu-section-title::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ax-gold), var(--ax-brand)); }

/* ---------- Featured ---------- */
.actu-page-shell .actu-featured {
  position: relative;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 34px 64px -46px rgba(24, 36, 35, .8);
}
.actu-page-shell .actu-featured__media { position: relative; height: 100%; min-height: 420px; aspect-ratio: auto; border-radius: 0; }
.actu-page-shell .actu-featured__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, .2)); }
.actu-page-shell .actu-featured__media img { transition: transform 1600ms var(--ax-ease); }
.actu-page-shell .actu-featured:hover .actu-featured__media img { transform: scale(1.05); }
.actu-page-shell .actu-featured__media::before {
  content: "À la une";
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ax-gold-soft);
  color: var(--ax-ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
}
.actu-page-shell .actu-featured__body { gap: 12px; padding: 36px 38px; }
.actu-page-shell .actu-featured h3 { margin: 0; font-family: var(--ax-heading); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ax-text); }
.actu-page-shell .actu-summary { color: var(--ax-text-2); line-height: 1.65; }
.actu-page-shell .actu-source { color: var(--ax-muted); font-size: .88rem; }
.actu-page-shell .actu-source a { color: var(--ax-brand); font-weight: 700; }
.actu-page-shell .actu-category { padding: 5px 12px; letter-spacing: .06em; }

/* CTA pill */
.actu-page-shell .actu-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ax-brand), var(--ax-brand-deep));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  transition: transform 260ms var(--ax-spring), box-shadow 260ms ease;
}
.actu-page-shell .actu-cta::after { content: "→"; transition: transform 300ms var(--ax-spring); }
.actu-page-shell .actu-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(29, 76, 65, .9); }
.actu-page-shell .actu-cta:hover::after { transform: translateX(4px); }

/* ---------- Filters ---------- */
.actu-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.actu-filters button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ax-border);
  color: var(--ax-text-2);
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease, transform 300ms var(--ax-spring), box-shadow 250ms ease;
}
.actu-filters button:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #b9d3bf; }
.actu-filters button[aria-pressed="true"] { background: linear-gradient(135deg, var(--ax-brand), var(--ax-brand-deep)); color: #fff; box-shadow: 0 10px 20px -12px rgba(29, 76, 65, .9); }
.actu-filters button:focus-visible { outline: 2px solid var(--ax-gold); outline-offset: 3px; }

/* ---------- Cards ---------- */
.actu-page-shell .actu-grid { gap: 22px; }
.actu-page-shell .actu-card {
  position: relative;
  border: 1px solid var(--ax-border);
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 44px -40px rgba(24, 36, 35, .7);
  transition: transform 450ms var(--ax-spring), box-shadow 450ms ease, opacity 350ms ease;
}
.actu-page-shell .actu-card:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -40px rgba(24, 36, 35, .85); }
.actu-page-shell .actu-card__media { overflow: hidden; }
.actu-page-shell .actu-card__media img { transition: transform 1200ms var(--ax-ease); }
.actu-page-shell .actu-card:hover .actu-card__media img { transform: scale(1.07); }
.actu-page-shell .actu-card h3 { font-family: var(--ax-heading); font-size: 1.18rem; line-height: 1.25; letter-spacing: -.015em; color: var(--ax-text); }
.actu-page-shell .actu-card.is-filtered-out { display: none; }
.actu-page-shell .actu-card.is-entering { animation: ax-card-in 520ms var(--ax-spring) both; animation-delay: calc(var(--ax-i, 0) * 60ms); }

/* ---------- Note ---------- */
.actu-page-shell .actu-note {
  position: relative;
  margin-top: 48px;
  padding: 28px 30px 28px 34px;
  border: 1px solid var(--ax-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fbfcf9);
}
.actu-page-shell .actu-note::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--ax-gold), var(--ax-brand)); }
.actu-page-shell .actu-note h2 { font-family: var(--ax-heading); }

/* ---------- Reveal ---------- */
.ax-js .ax-reveal { transform: translateY(28px); transition: transform 900ms var(--ax-spring); transition-delay: calc(var(--ax-i, 0) * 70ms); }
.ax-js .ax-reveal.is-in { transform: none; }
.ax-ready .actu-hero > :is(.actu-hero__kicker, h1, .actu-hero__intro, .actu-updated) { animation: ax-rise 900ms var(--ax-spring) both; }
.ax-ready .actu-hero > h1 { animation-delay: 90ms; }
.ax-ready .actu-hero > .actu-hero__intro { animation-delay: 180ms; }
.ax-ready .actu-hero > .actu-updated { animation-delay: 270ms; }

@media (max-width: 900px) {
  .actu-page-shell .actu-featured { grid-template-columns: 1fr; }
  .actu-page-shell .actu-featured__media { min-height: 260px; }
  .actu-page-shell .actu-featured__body { padding: 26px 22px; }
}
@media (max-width: 640px) {
  .actu-page-shell .actu-hero { border-radius: 26px; }
  .actu-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .actu-filters button { flex: 0 0 auto; }
}

@keyframes ax-drift-a { to { transform: translate(70px, 50px) scale(1.15); } }
@keyframes ax-drift-b { to { transform: translate(-80px, -30px) scale(.9); } }
@keyframes ax-pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 209, 168, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(127, 209, 168, 0); } }
@keyframes ax-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ax-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .actu-page-shell *, .actu-page-shell *::before, .actu-page-shell *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .ax-js .ax-reveal { opacity: 1; transform: none; }
}

/* Hero key figures (right side on desktop) */
.actu-page-shell .actu-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 40px; align-items: start; }
.actu-page-shell .actu-hero > :not(.actu-hero__figures):not(.actu-blob) { grid-column: 1; }
.actu-page-shell .actu-hero > .actu-hero__kicker,
.actu-page-shell .actu-hero > .actu-updated { justify-self: start; }
.actu-hero__figures { grid-column: 2; grid-row: 1 / span 4; align-self: center; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.actu-hero__figures li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 20px 40px -26px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: ax-rise 900ms var(--ax-spring) both, ax-float 7s ease-in-out infinite;
  animation-delay: calc(300ms + var(--ax-f) * 140ms), calc(var(--ax-f) * -2.2s);
}
.actu-hero__figures li:nth-child(2) { margin-left: 28px; }
.actu-hero__figures span { color: rgba(255, 255, 255, .75); font-size: .85rem; font-weight: 600; }
.actu-hero__figures strong { color: var(--ax-gold-soft); font-family: var(--ax-heading); font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
@keyframes ax-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.actu-page-shell .actu-updated { display: inline-block; }
.actu-page-shell .actu-updated .actu-live { display: inline-block; margin-right: 10px; vertical-align: middle; }
.actu-page-shell .actu-updated time { white-space: nowrap; }
.actu-page-shell .actu-featured__media::before { content: "Nouveau"; }
@media (max-width: 900px) {
  .actu-page-shell .actu-hero { grid-template-columns: 1fr; }
  .actu-hero__figures { grid-column: 1; grid-row: auto; margin-top: 26px; }
  .actu-hero__figures li:nth-child(2) { margin-left: 0; }
}
