/* =================================================================
   CLIN — Section Actualités
   Design : magazine éditorial sombre, typographie condensée percutante
   Palette : vert #66bb6a / charbon #18181a / crème #f6f3ee / or #c9a96e
   Fonts : Barlow Condensed (display) + Lora (corps)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,700;0,900;1,700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --cg: #66bb6a;
  --cg-dk: #43a047;
  --cg-lt: #e8f5e9;
  --cd: #18181a;
  --cc: #2c2c2f;
  --cr: #f6f3ee;
  --cw: #e0d9cf;
  --ca: #c9a96e;
  --ct: #2a2a2a;
  --cm: #7a7a82;
  --ff-d: 'Barlow Condensed', sans-serif;
  --ff-b: 'Lora', Georgia, serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ─── Wrapper ─── */
.actu-mag {
  background: var(--cr);
  min-height: 100vh;
}

/* ─── Masthead ─── */
.actu-mast {
  position: relative;
  height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.actu-mast__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 10s var(--ease);
}

.actu-mast:hover .actu-mast__bg {
  transform: scale(1.0);
}

.actu-mast__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(18,18,20,0.88) 0%, rgba(18,18,20,0.6) 60%, rgba(18,18,20,0.2) 100%),
    linear-gradient(to top, rgba(18,18,20,0.95) 0%, transparent 60%);
}

.actu-mast__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 15px 52px;
  max-width: 1140px;
  margin: 0 auto;
}

.actu-mast__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.actu-mast__tag {
  font-family: var(--ff-b);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ca);
}

.actu-mast__line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--ca);
  opacity: 0.5;
}

.actu-mast__h1 {
  font-family: var(--ff-d);
  font-weight: 900;
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.85;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  animation: mastIn .7s var(--ease) both;
}

.actu-mast__h1 em {
  font-style: normal;
  color: var(--cg);
  -webkit-text-stroke: 0;
}

.actu-mast__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-b);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.actu-mast__count {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.actu-mast__sep { opacity: .35; }

.actu-mast__crumb,
.actu-mast__crumb:hover {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color .2s;
}
.actu-mast__crumb:hover { color: var(--cg); }

/* ─── Grid layout ─── */
.actu-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 15px 90px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 900px) {
  .actu-grid {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
}

/* ─── Card base ─── */
.actu-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.actu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.13);
}

.actu-card__thumb {
  overflow: hidden;
  background: var(--cd);
}

.actu-card__thumb img {
  width: 100%;
  display: block;
  transition: transform .5s var(--ease), opacity .35s;
  opacity: .92;
}

.actu-card:hover .actu-card__thumb img {
  transform: scale(1.07);
  opacity: 1;
}

/* ─── Featured card ─── */
.actu-card--hero .actu-card__thumb {
  height: 340px;
}

.actu-card--hero .actu-card__thumb img {
  height: 100%;
  object-fit: cover;
}

.actu-card--hero .actu-card__body {
  padding: 32px 36px 36px;
  border-top: 3px solid var(--cg);
}

.actu-card--hero .actu-card__cat {
  font-family: var(--ff-b);
  font-size: 0.7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cg-dk);
  margin-bottom: 10px;
  display: block;
}

.actu-card--hero .actu-card__title {
  font-family: var(--ff-d);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--cd);
  margin: 0 0 14px;
}

.actu-card--hero .actu-card__excerpt {
  font-family: var(--ff-b);
  font-size: 0.92rem;
  line-height: 1.75;
  color: #555;
  margin: 0 0 24px;
}

.actu-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.actu-card__date {
  font-family: var(--ff-b);
  font-size: 0.72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cm);
  font-style: normal;
}

.actu-card__cta {
  font-family: var(--ff-d);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cg-dk);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.actu-card:hover .actu-card__cta { gap: 10px; }

.actu-card__arrow {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--cg-dk);
  position: relative;
  transition: width .2s;
}

.actu-card__arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid var(--cg-dk);
}

.actu-card:hover .actu-card__arrow { width: 28px; }

/* ─── Side stack ─── */
.actu-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.actu-card--sm {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.actu-card--sm .actu-card__thumb {
  height: 100%;
  min-height: 96px;
}

.actu-card--sm .actu-card__thumb img {
  height: 100%;
  object-fit: cover;
}

.actu-card--sm .actu-card__body {
  padding: 14px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.actu-card--sm .actu-card__title {
  font-family: var(--ff-d);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--cd);
  margin: 0 0 auto;
  padding-bottom: 8px;
}

.actu-card--sm .actu-card__date {
  font-size: 0.68rem;
  color: var(--cm);
  margin-bottom: 0;
}

/* Numéro ordinal dans le coin */
.actu-card--sm {
  position: relative;
}

.actu-card--sm::before {
  content: attr(data-num);
  position: absolute;
  top: -8px;
  left: 110px;
  width: 24px;
  height: 24px;
  background: var(--cg);
  color: #fff;
  font-family: var(--ff-d);
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}

/* ─── Empty state ─── */
.actu-empty {
  text-align: center;
  padding: 100px 20px;
  font-family: var(--ff-b);
  color: var(--cm);
}

.actu-empty p { font-size: 1.1rem; margin: 0; }

/* ─── Vue détail ─── */
.actu-detail {
  background: var(--cr);
}

.actu-detail__hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.actu-detail__hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(.55) saturate(.9);
}

.actu-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,20,0.97) 0%, rgba(18,18,20,.3) 70%);
}

.actu-detail__hero-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 0 20px 48px;
  max-width: 860px;
  margin: 0 auto;
}

.actu-detail__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.actu-detail__tag {
  font-family: var(--ff-b);
  font-size: 0.7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ca);
}

.actu-detail__bar {
  width: 48px;
  height: 1px;
  background: var(--ca);
  opacity: .6;
}

.actu-detail__h1 {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.01em;
  margin: 0;
  animation: mastIn .6s var(--ease) both;
}

/* ─── Article body ─── */
.actu-detail__article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 90px;
}

.actu-detail__byline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--cw);
}

.actu-detail__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-d);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.actu-detail__author-name {
  font-family: var(--ff-d);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cd);
  display: block;
}

.actu-detail__author-date {
  font-family: var(--ff-b);
  font-size: 0.72rem;
  color: var(--cm);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.actu-detail__body {
  font-family: var(--ff-b);
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--ct);
}

.actu-detail__body p:first-child::first-letter {
  font-family: var(--ff-d);
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 0.75;
  float: left;
  margin: 8px 12px 0 0;
  color: var(--cg);
}

/* ─── Back link ─── */
.actu-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-d);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cg-dk);
  text-decoration: none;
  margin-bottom: 40px;
  transition: gap .2s;
}

.actu-back:hover { gap: 14px; color: var(--cg-dk); }

.actu-back__arrow {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--cg-dk);
  position: relative;
  transform: rotate(180deg);
}

.actu-back__arrow::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid var(--cg-dk);
}

/* ─── Animation ─── */
@keyframes mastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.actu-card--hero { animation: slideUp .6s var(--ease) .05s both; }
.actu-stack .actu-card:nth-child(1) { animation: slideUp .5s var(--ease) .12s both; }
.actu-stack .actu-card:nth-child(2) { animation: slideUp .5s var(--ease) .22s both; }
.actu-stack .actu-card:nth-child(3) { animation: slideUp .5s var(--ease) .32s both; }
.actu-stack .actu-card:nth-child(4) { animation: slideUp .5s var(--ease) .42s both; }
.actu-stack .actu-card:nth-child(5) { animation: slideUp .5s var(--ease) .52s both; }

/* ─── Responsive ─── */
@media (max-width: 767px) {
  .actu-mast { height: 380px; }
  .actu-card--hero .actu-card__body { padding: 22px 20px 24px; }
  .actu-card--sm { grid-template-columns: 90px 1fr; }
  .actu-card--sm .actu-card__thumb { min-height: 80px; }
  .actu-card--sm::before { left: 90px; }
}
