/* Almaviva — CPT Actualités v1.0.0 */
:root {
    --almv-actu-b: #004899;
    --almv-actu-o: #EE7203;
    --almv-actu-ink: var(--alm-gray-900);
    --almv-actu-mute: #646970;
    --almv-actu-gray: var(--alm-gray-200);
    --almv-actu-gray-l: var(--alm-bg-soft);
    --almv-actu-ft: 'Jost', 'Century Gothic', sans-serif;
    --almv-actu-fb: 'Barlow', 'DIN', sans-serif;
    --almv-actu-ease: cubic-bezier(.16,1,.3,1);
}

.almaviva-actu-archive,
.almaviva-actu-single {
    background: #fff;
    color: var(--almv-actu-ink);
    font-family: var(--almv-actu-fb);
    padding: 0 0 80px;
}
/* V6.5-fix-22 : aligne le container archive actu sur le reste du portail
   (.alm-container = var(--container) = 1400px, padding via var(--gutter)).
   Fallback en dur si actualites.css est chargé hors portail. */
.almaviva-actu-container {
    max-width: var(--container, 1400px);
    margin: 0 auto;
    padding: 0 var(--gutter, clamp(16px, 4vw, 32px));
}

/* ============================================
   ARCHIVE — header + grille 3 colonnes
   ============================================ */
.almaviva-actu-archive__head {
    background: linear-gradient(135deg, var(--almv-actu-b) 0%, #003674 100%);
    color: #fff;
    padding: 70px 0 50px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.almaviva-actu-archive__head::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(238,114,3,.15) 0%, transparent 70%);
    pointer-events: none;
}
.almaviva-actu-archive__kicker {
    display: inline-block;
    font-family: var(--almv-actu-ft);
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: 14px;
    font-weight: 500;
}
.almaviva-actu-archive__title {
    font-family: var(--almv-actu-ft);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    margin: 0 0 14px;
    line-height: 1.15;
    color: #fff;
}
.almaviva-actu-archive__sub {
    font-size: 16px;
    line-height: 1.55;
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.88);
}

.almaviva-actu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0 0 56px;
}
@media (max-width: 980px) { .almaviva-actu-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px) { .almaviva-actu-grid { grid-template-columns: 1fr; } }

.almaviva-actu-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,72,153,.08);
    transition: transform .25s var(--almv-actu-ease), box-shadow .25s var(--almv-actu-ease);
}
.almaviva-actu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,72,153,.14);
}
.almaviva-actu-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.almaviva-actu-card__media {
    aspect-ratio: 16 / 9;
    background: var(--almv-actu-gray-l);
    overflow: hidden;
    position: relative;
}
.almaviva-actu-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s var(--almv-actu-ease);
}
.almaviva-actu-card:hover .almaviva-actu-card__media img { transform: scale(1.04); }
.almaviva-actu-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,72,153,.18);
}
.almaviva-actu-card__placeholder svg { width: 56px; height: 56px; }
.almaviva-actu-card__body {
    padding: 22px 22px 24px;
}
.almaviva-actu-card__date {
    font-family: var(--almv-actu-ft);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--almv-actu-o);
    display: block;
    margin-bottom: 8px;
}
.almaviva-actu-card__title {
    font-family: var(--almv-actu-ft);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--almv-actu-b);
    margin: 0 0 10px;
}
.almaviva-actu-card__excerpt {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--almv-actu-ink);
    margin: 0 0 14px;
}
.almaviva-actu-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--almv-actu-ft);
    font-size: 13px;
    font-weight: 600;
    color: var(--almv-actu-o);
    letter-spacing: .3px;
}

.almaviva-actu-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--almv-actu-mute);
    background: var(--almv-actu-gray-l);
    border-radius: 6px;
}

.almaviva-actu-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 40px 0 0;
    flex-wrap: wrap;
}
.almaviva-actu-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--almv-actu-gray);
    color: var(--almv-actu-b);
    text-decoration: none;
    font-family: var(--almv-actu-ft);
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s var(--almv-actu-ease);
}
.almaviva-actu-pagination .page-numbers:hover { background: var(--almv-actu-b); color: #fff; border-color: var(--almv-actu-b); }
.almaviva-actu-pagination .page-numbers.current { background: var(--almv-actu-o); color: #fff; border-color: var(--almv-actu-o); }
.almaviva-actu-pagination .page-numbers.dots { background: transparent; border: 0; }

/* ============================================
   SINGLE — article + sidebar
   ============================================ */
.almaviva-actu-single .almaviva-actu-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    padding-top: 50px;
}
@media (max-width: 900px) {
    .almaviva-actu-single .almaviva-actu-container { grid-template-columns: 1fr; gap: 36px; }
}

.almaviva-actu-article {
    background: #fff;
}
.almaviva-actu-article__head { margin-bottom: 28px; }
.almaviva-actu-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--almv-actu-ft);
    font-size: 13px;
    color: var(--almv-actu-b);
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
    transition: color .15s var(--almv-actu-ease);
}
.almaviva-actu-back:hover { color: var(--almv-actu-o); }
.almaviva-actu-date {
    font-family: var(--almv-actu-ft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--almv-actu-o);
    display: block;
    margin-bottom: 12px;
}
.almaviva-actu-article__title {
    font-family: var(--almv-actu-ft);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.18;
    color: var(--almv-actu-b);
    margin: 0 0 14px;
}
.almaviva-actu-article__meta {
    font-size: 14px;
    color: var(--almv-actu-mute);
    margin: 0;
}
.almaviva-actu-article__media {
    margin: 0 0 32px;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--almv-actu-gray-l);
}
.almaviva-actu-article__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.almaviva-actu-article__body {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--almv-actu-ink);
}
.almaviva-actu-article__body h2,
.almaviva-actu-article__body h3 {
    font-family: var(--almv-actu-ft);
    color: var(--almv-actu-b);
    font-weight: 600;
    margin: 32px 0 14px;
    line-height: 1.3;
}
.almaviva-actu-article__body h2 { font-size: 26px; }
.almaviva-actu-article__body h3 { font-size: 21px; }
.almaviva-actu-article__body p { margin: 0 0 18px; }
.almaviva-actu-article__body a { color: var(--almv-actu-b); text-decoration: underline; }
.almaviva-actu-article__body a:hover { color: var(--almv-actu-o); }
.almaviva-actu-article__body img { max-width: 100%; height: auto; border-radius: 4px; margin: 24px 0; }
.almaviva-actu-article__body blockquote {
    border-left: 4px solid var(--almv-actu-o);
    padding: 8px 0 8px 22px;
    margin: 24px 0;
    font-style: italic;
    color: var(--almv-actu-mute);
}
.almaviva-actu-article__body ul,
.almaviva-actu-article__body ol { margin: 0 0 18px 22px; }
.almaviva-actu-article__body li { margin-bottom: 6px; }

.almaviva-actu-article__foot {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--almv-actu-gray);
}
.almaviva-actu-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.almaviva-actu-share__lbl {
    font-family: var(--almv-actu-ft);
    font-size: 13px;
    font-weight: 500;
    color: var(--almv-actu-mute);
    margin-right: 4px;
}
.almaviva-actu-share__btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 4px;
    background: var(--almv-actu-gray-l);
    border: 1px solid var(--almv-actu-gray);
    color: var(--almv-actu-b);
    text-decoration: none;
    font-family: var(--almv-actu-ft);
    font-size: 12.5px;
    font-weight: 500;
    transition: all .15s var(--almv-actu-ease);
}
.almaviva-actu-share__btn:hover { background: var(--almv-actu-b); color: #fff; border-color: var(--almv-actu-b); }

/* Sidebar */
.almaviva-actu-sidebar {
    background: var(--almv-actu-gray-l);
    border-radius: 6px;
    padding: 26px 22px;
    align-self: start;
    position: sticky;
    top: 30px;
}
.almaviva-actu-sidebar__title {
    font-family: var(--almv-actu-ft);
    font-size: 14px;
    font-weight: 600;
    color: var(--almv-actu-b);
    margin: 0 0 18px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.almaviva-actu-sidebar__list { list-style: none; padding: 0; margin: 0; }
.almaviva-actu-sidebar__item { margin-bottom: 16px; }
.almaviva-actu-sidebar__item:last-child { margin-bottom: 0; }
.almaviva-actu-sidebar__item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--almv-actu-ink);
    align-items: flex-start;
}
.almaviva-actu-sidebar__img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.almaviva-actu-sidebar__date {
    display: block;
    font-family: var(--almv-actu-ft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--almv-actu-o);
    margin-bottom: 4px;
}
.almaviva-actu-sidebar__t {
    display: block;
    font-family: var(--almv-actu-ft);
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--almv-actu-b);
    font-weight: 500;
    transition: color .15s var(--almv-actu-ease);
}
.almaviva-actu-sidebar__item a:hover .almaviva-actu-sidebar__t { color: var(--almv-actu-o); }
.almaviva-actu-sidebar__empty { font-size: 13px; color: var(--almv-actu-mute); margin: 0; }

/* ============================================================
   PORTAIL — Pages actualités (.alm-actu-*)
   Réutilise les variables du design system portail.css (--alm-blue, --alm-orange, etc.)
   ============================================================ */

/* Filtres pills (archive) */
.alm-actu-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 36px; }
.alm-actu-pill {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--alm-gray-100);
  color: var(--alm-gray-700);
  font-family: var(--font-title, 'Century Gothic', sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  border: 1px solid transparent;
}
.alm-actu-pill:hover { background: #eaf2fd; color: #004899; }
.alm-actu-pill.is-active { background: #004899; color: #fff; }

.alm-page-hero { padding: 28px 0 4px; }
.alm-page-hero .alm-portail-eyebrow { margin-bottom: 6px; }
.alm-page-hero .alm-portail-h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
}
.alm-page-hero .alm-portail-lead { margin: 0; max-width: 68ch; }

/* Grid + cards (archive) */
.alm-actu-archive { padding: 24px 0 80px; background: #fff; }
.alm-actu-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 980px) { .alm-actu-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px) { .alm-actu-grid { grid-template-columns: 1fr; } }

.alm-actu-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,72,153,.08);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.alm-actu-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,72,153,.14); }
.alm-actu-card__link { display: flex; flex-direction: column; flex: 1 1 auto; text-decoration: none; color: inherit; }
.alm-actu-card__media {
  aspect-ratio: 16 / 9;
  background: var(--alm-gray-100);
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}
.alm-actu-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.alm-actu-card:hover .alm-actu-card__media img { transform: scale(1.04); }
.alm-actu-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(0,72,153,.18);
}
.alm-actu-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.alm-actu-card__pill {
  display: inline-block;
  background: #fff4ea;
  color: #EE7203;
  padding: 3px 10px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-title, 'Century Gothic', sans-serif);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}
.alm-actu-card__date {
  display: block;
  font-size: 12px;
  color: var(--alm-gray-700);
  margin: 0 0 8px;
  font-family: var(--font-title, 'Century Gothic', sans-serif);
  letter-spacing: .4px;
}
.alm-actu-card__title {
  font-family: var(--font-title, 'Century Gothic', sans-serif);
  font-size: 18px;
  line-height: 1.35;
  color: #004899;
  margin: 0 0 10px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.alm-actu-card__excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--alm-gray-700);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.alm-actu-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-title, 'Century Gothic', sans-serif);
  font-size: 13px; font-weight: 600;
  color: var(--cta-bg);
  letter-spacing: .3px;
  margin-top: auto;
  align-self: flex-start;
}

.alm-actu-empty {
  padding: 60px 20px; text-align: center; color: var(--alm-gray-500);
  background: var(--alm-gray-100); border-radius: 8px;
}

/* Pagination */
.alm-actu-pagination { display: flex; justify-content: center; gap: 4px; margin: 32px 0 0; flex-wrap: wrap; }
.alm-actu-pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 4px;
  background: #fff; border: 1px solid var(--alm-gray-200); color: #004899; text-decoration: none;
  font-family: var(--font-title, 'Century Gothic', sans-serif); font-size: 14px; font-weight: 500;
  transition: all .15s cubic-bezier(.4,0,.2,1);
}
.alm-actu-pagination a:hover { background: #004899; color: #fff; border-color: #004899; }
.alm-actu-pagination a.is-current { background: #EE7203; color: #fff; border-color: #EE7203; }

/* === SINGLE === */
.alm-actu-single { background: #fff; }
.alm-actu-hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  background-color: #004899;
  color: #fff;
  padding: 80px 0 50px;
}
.alm-actu-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,72,153,.5) 0%, rgba(0,54,112,.9) 100%);
}
.alm-actu-hero > * { position: relative; z-index: 2; }
.alm-actu-hero__pill { background: rgba(255,255,255,.95); color: #EE7203; margin: 12px 0; }
.alm-actu-single__title {
  font-family: var(--font-title, 'Century Gothic', sans-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 12px 0 16px;
  line-height: 1.15;
  color: #fff;
  max-width: 800px;
}
.alm-actu-single__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
  font-family: var(--font-title, 'Century Gothic', sans-serif);
}

.alm-actu-single__body { max-width: 760px; margin: 0 auto; padding: 50px 24px; }
.alm-actu-content { font-size: 17px; line-height: 1.75; color: var(--alm-gray-900); }
.alm-actu-content h2 { font-family: var(--font-title, 'Century Gothic', sans-serif); color: #004899; font-size: clamp(22px, 2.8vw, 28px); margin: 36px 0 16px; font-weight: 600; }
.alm-actu-content h3 { font-family: var(--font-title, 'Century Gothic', sans-serif); color: #004899; font-size: 22px; margin: 28px 0 14px; font-weight: 600; }
.alm-actu-content p { margin: 0 0 18px; }
.alm-actu-content a { color: #004899; text-decoration: underline; }
.alm-actu-content a:hover { color: #EE7203; }
.alm-actu-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 24px 0; }
.alm-actu-content blockquote {
  border-left: 4px solid #EE7203;
  padding: 12px 0 12px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--alm-gray-700);
  font-size: 18px;
}
.alm-actu-content ul, .alm-actu-content ol { margin: 0 0 18px 24px; }
.alm-actu-content li { margin-bottom: 8px; }

.alm-actu-share {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--alm-gray-200);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.alm-actu-share__lbl { font-family: var(--font-title, 'Century Gothic', sans-serif); font-size: 13px; font-weight: 500; color: var(--alm-gray-500); }
.alm-actu-share a {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: 4px; background: var(--alm-gray-100); border: 1px solid var(--alm-gray-200);
  color: #004899; text-decoration: none;
  font-family: var(--font-title, 'Century Gothic', sans-serif); font-size: 13px; font-weight: 500;
  transition: all .15s cubic-bezier(.4,0,.2,1);
}
.alm-actu-share a:hover { background: #004899; color: #fff; border-color: #004899; }

.alm-actu-related { background: var(--alm-gray-100); padding: 60px 0 80px; }
.alm-actu-related .alm-portail-h2 { text-align: center; margin-bottom: 36px; }

/* Articles relayés portail dans archives sous-sites — badge */
.almaviva-actu-card--portail { position: relative; }
.almaviva-actu-card--portail::before {
  content: '📌 ' attr(data-source);
  position: absolute; top: 12px; left: 12px;
  background: #EE7203; color: #fff;
  padding: 4px 10px; border-radius: 11px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 5;
}

/* Breadcrumb portail (réutilisé) */
.alm-breadcrumb { font-size: 13px; color: rgba(255,255,255,.8); padding: 8px 0 16px; }
.alm-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.alm-breadcrumb li + li::before { content: '\203A'; margin-right: 8px; color: rgba(255,255,255,.4); }
.alm-breadcrumb a { color: rgba(255,255,255,.8); }
.alm-breadcrumb a:hover { color: #fff; }
.alm-breadcrumb [aria-current="page"] { color: #fff; font-weight: 500; }
