/* ============================================================
   LQS AQUITAINE — actualites.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.ac-hero {
  position: relative;
  padding: 5rem 2.5rem 4rem;
  overflow: hidden;
}

.ac-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 15% 50%, rgba(197,2,2,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 85% 30%, rgba(197,2,2,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0d0d0d 0%, #090909 100%);
  z-index: 0;
}

.ac-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,2,2,0.4) 40%, rgba(255,255,255,0.15) 60%, transparent);
  z-index: 1;
}

.ac-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.ac-hero__text {}

.ac-hero__overline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.ac-hero__overline::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.ac-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.0;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.ac-hero__title span { color: var(--red); }

.ac-hero__divider {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(197,2,2,0.2));
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.ac-hero__sub {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  line-height: 1.75;
}

/* Badge nombre d'articles */
.ac-hero__badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.ac-hero__badge-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ac-hero__badge-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.2em;
}

/* ══════════════════════════════════════════════════════════
   SECTION ARTICLES
   ══════════════════════════════════════════════════════════ */
.ac-section {
  padding: 3rem 2.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ac-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.ac-section-head__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}
.ac-section-head__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}

/* ── Grille ── */
.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

/* ── Carte article ── */
.ac-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  background: rgba(18,18,18,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);

  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);

  opacity: 0;
  transform: translateY(24px);
}

.ac-card.in-view {
  animation: acCardIn 0.55s cubic-bezier(.34,1.1,.64,1) forwards;
}

@keyframes acCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.ac-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197,2,2,0.25);
  box-shadow:
    0 20px 56px rgba(0,0,0,0.45),
    0 0 0 1px rgba(197,2,2,0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Image ── */
.ac-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0d0d0d;
  flex-shrink: 0;
}

.ac-card__img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  filter: brightness(0.85) saturate(90%);
}

.ac-card:hover .ac-card__img-inner {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(110%);
}

/* Dégradé bas de l'image vers la carte */
.ac-card__img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(18,18,18,0.9));
  pointer-events: none;
  z-index: 1;
}

/* Étiquette "Actualité" flottante */
.ac-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(197,2,2,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,100,100,0.3);
  border-radius: 6px;
  padding: 0.28em 0.75em;
}

/* ── Corps ── */
.ac-card__body {
  padding: 1.4rem 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ac-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.ac-card:hover .ac-card__title { color: rgba(255,255,255,0.9); }

.ac-card__desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  flex: 1;
}

/* ── Pied de carte ── */
.ac-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 1rem;
}

/* Bouton like */
.ac-like {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.ac-like:hover {
  background: rgba(197,2,2,0.1);
  color: rgba(255,255,255,0.6);
}

.ac-like i {
  font-size: 0.95rem;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), color var(--transition);
}

.ac-like.liked {
  color: #ff6b6b;
}

.ac-like.liked i {
  color: #ff4444;
  transform: scale(1.3);
  animation: acLikePop 0.4s cubic-bezier(.34,1.56,.64,1);
}

.ac-like__label { pointer-events: none; }

@keyframes acLikePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.55); }
  100% { transform: scale(1.3); }
}

/* Particules like */
.ac-like-particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ff4444;
  pointer-events: none;
  animation: acLikeParticle var(--dur, 0.6s) ease-out forwards;
}
@keyframes acLikeParticle {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx,0px), var(--ty,0px)) scale(0); }
}

/* ── Message "aucun article" ── */
.ac-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.25);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
  .ac-hero { padding: 3.5rem 1.4rem 3rem; }
  .ac-hero__inner { flex-direction: column; align-items: flex-start; }
  .ac-section { padding: 2rem 1.4rem 3.5rem; }
  .ac-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media screen and (max-width: 500px) {
  .ac-grid { grid-template-columns: 1fr; }
}
