/* ============================================================
   PAGE BLOG - L'Actu Boreal Architecture
   ============================================================ */

:root {
  --actu-ivory: #f6f1ea;
  --actu-ivory-light: #faf7f2;
  --actu-teal: #307276;
  --actu-dark: #042825;
  --actu-gold: #d9a33e;
  --actu-grey: #666666;
}

/* ── Lien flèche dorée (composant récurrent de la maquette) ── */

.actu-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--actu-dark);
  font-family: var(--font-heading-secondary);
  font-size: var(--text-lg);
  text-decoration: none;
  width: fit-content;
  cursor: pointer;
}

.actu-arrow-link .arrow {
  position: relative;
  width: 65px;
  height: 1px;
  background: var(--actu-gold);
  transition: width 0.3s ease;
  flex-shrink: 0;
}

.actu-arrow-link .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--actu-gold);
  border-right: 1px solid var(--actu-gold);
  transform: rotate(45deg);
}

.actu-arrow-link:hover .arrow {
  width: 90px;
}

/* ── Hero ───────────────────────────────────────────────────── */

.actu-hero {
  position: relative;
  /* La ligne mur/sol est à 54.5% de l'image : la même valeur en position-y
     l'aligne sur le centre du globe (54.5% de la hauteur du hero) */
  background: #fdfdfd url("../img/images/actu/mur-blanc-hero.jpg") center 54.5% /
    cover no-repeat;
  overflow: hidden;
  padding: 70px 40px 60px;
}

.actu-hero-inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.actu-hero-text {
  flex: 1 1 480px;
  max-width: 560px;
  transform: translateY(-30px);
}

.actu-hero h1 {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.actu-hero-subtitle {
  color: var(--actu-grey);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: 40px;
}

/* ── Visuel orbital (rotation lente "mouvement de la terre") ── */

.actu-hero-visual {
  position: relative;
  flex: 0 0 420px;
  height: 420px;
}

.actu-hero-orbit {
  position: absolute;
  inset: 40px;
  animation: actu-orbit 140s linear infinite;
}

.orbit-item {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(4, 40, 37, 0.18);
  animation: actu-orbit-reverse 140s linear infinite;
}

.orbit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orbit-item-1 {
  width: 150px;
  height: 150px;
  top: 5%;
  right: 8%;
}

.orbit-item-2 {
  width: 130px;
  height: 130px;
  top: 38%;
  left: 4%;
}

.orbit-item-3 {
  width: 140px;
  height: 140px;
  bottom: 4%;
  right: 18%;
}

@keyframes actu-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes actu-orbit-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Coordonnées géographiques statiques sur l'arc droit (seuls les cercles tournent) */
.actu-hero-coords-ring {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
}

.actu-hero-coords-ring text {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1.5px;
  fill: rgba(102, 102, 102, 0.55);
}


/* Logo calé dans le coin bas droit du bandeau hero */
.actu-hero-logo {
  position: absolute;
  bottom: 20px;
  right: 11px;
  width: 90px;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .actu-hero-orbit,
  .orbit-item,
  .actu-hero-coords-ring {
    animation: none;
  }
}

/* ── Sections génériques ─────────────────────────────────── */

.actu-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 55px 20px;
}

.actu-section-title {
  text-align: left;
  font-family: var(--font-heading-secondary);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 35px;
  -webkit-text-stroke: 0.5px currentcolor;
}

/* ── À la une ───────────────────────────────────────────── */

.actu-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.featured-card {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.featured-card-image {
  flex: 0 0 42%;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--actu-ivory);
  z-index: 1;
  box-shadow: 0 6px 18px rgba(4, 40, 37, 0.12);
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.04);
}

.featured-card-body {
  flex: 1;
  background: var(--actu-ivory);
  border-radius: 0 16px 16px 0;
  margin-left: -12px;
  padding: 28px 28px 28px 40px;
  display: flex;
  flex-direction: column;
}

.featured-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: var(--text-sm);
  color: var(--actu-grey);
  margin-bottom: 14px;
}

.featured-card-title {
  font-family: var(--font-heading-secondary);
  font-size: var(--text-xl);
  color: var(--actu-dark);
  margin: 0 0 12px;
  -webkit-text-stroke: 0.5px currentcolor;
}

.featured-card-summary {
  color: var(--actu-grey);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Barre filtres + recherche ──────────────────────────── */

.actu-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 45px;
}

.actu-filter-tabs {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.actu-filter-tab {
  border: none;
  background: transparent;
  color: #9b8f7d;
  padding: 4px 2px 8px;
  font-family: var(--font-heading-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.actu-filter-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--actu-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.actu-filter-tab:hover {
  color: var(--actu-teal);
}

.actu-filter-tab.is-active {
  color: var(--actu-teal);
}

.actu-filter-tab.is-active::after {
  transform: scaleX(1);
}

.actu-search {
  position: relative;
  min-width: 280px;
}

.actu-search input {
  width: 100%;
  padding: 8px 4px;
  border: none;
  border-bottom: 1px solid #9db4c0;
  background: transparent;
  font-family: var(--font-heading-secondary);
  font-size: var(--text-base);
  color: var(--actu-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.actu-search input::placeholder {
  color: #c4bcae;
  font-style: italic;
}

.actu-search input:focus {
  border-color: var(--actu-teal);
}

/* ── Grille d'articles ──────────────────────────────────── */

.actu-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px 30px;
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card-image {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--actu-ivory);
  margin-bottom: 18px;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-no-image {
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--actu-ivory), #e2dace);
  margin-bottom: 18px;
}

.article-card-title {
  font-family: var(--font-heading-secondary);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--actu-dark);
  margin: 0 0 14px;
  -webkit-text-stroke: 0.4px currentcolor;
  line-height: var(--leading-snug);
  flex-grow: 1;
}

.article-card .actu-arrow-link {
  font-size: var(--text-sm);
}

.article-card:hover .actu-arrow-link .arrow {
  width: 90px;
}

.actu-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999999;
  grid-column: 1 / -1;
}

/* ── Barre de liens utiles ──────────────────────────────── */

.actu-links-bar {
  position: relative;
  background: var(--actu-ivory);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 25px;
  padding: 50px 40px;
  overflow: hidden;
  /* Rogne la tache aquarelle aux bords du rectangle */
}

.actu-link-item {
  position: relative;
  font-family: var(--font-heading-secondary);
  font-size: var(--text-lg);
  color: #5c6b64;
  text-decoration: none;
  text-align: center;
  max-width: 220px;
  padding-bottom: 10px;
  transition: color 0.25s ease;
}

.actu-link-item::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 80%;
  height: 2px;
  border-radius: 2px;
  background: var(--actu-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.actu-link-item:hover {
  color: var(--actu-gold);
}

.actu-link-item:hover::after {
  transform: scaleX(1);
}

/* Tache aquarelle collée au bord gauche du rectangle */
.actu-link-aquarelle {
  position: absolute;
  top: 50%;
  left: -25px;
  transform: translateY(-50%);
  width: 210px;
  pointer-events: none;
}

/* ── Newsletter ─────────────────────────────────────────── */

.actu-newsletter {
  max-width: 1300px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.actu-newsletter-inner {
  background: var(--actu-ivory);
  border-radius: 20px;
  padding: 45px 50px;
}

.actu-newsletter h2 {
  font-family: var(--font-heading-secondary);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 30px;
  -webkit-text-stroke: 0.5px currentcolor;
}

.actu-newsletter-row {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
}

.actu-newsletter-icon {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.actu-newsletter-text {
  flex: 1 1 260px;
  color: var(--actu-dark);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.actu-newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1 1 340px;
}

.actu-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 190px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: #e7e2d9;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--actu-dark);
  outline: none;
}

.actu-newsletter-form input[type="email"]::placeholder {
  color: #a89e8d;
}

.actu-newsletter-form button {
  background: #7a98a8;
  color: #ffffff;
  border: none;
  padding: 12px 34px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.actu-newsletter-form button:hover {
  background: #64828f;
}

.actu-newsletter-badges {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-shrink: 0;
}

.actu-newsletter-badges img {
  height: 75px;
  width: auto;
  display: block;
}

.actu-newsletter-message {
  margin-top: 16px;
  font-size: var(--text-sm);
}

.actu-newsletter-message.is-success {
  color: #2f7350;
}

.actu-newsletter-message.is-error {
  color: #b04a4a;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1100px) {
  .actu-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .actu-hero-visual {
    flex: 0 0 340px;
    height: 340px;
  }
}

@media (max-width: 900px) {
  .actu-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .actu-hero {
    padding: 50px 25px;
  }

  .actu-hero-inner {
    flex-direction: column;
  }

  .actu-hero h1 {
    letter-spacing: 0.2em;
  }

  .actu-hero-visual {
    flex: none;
    width: 300px;
    height: 300px;
  }

  .orbit-item-1 {
    width: 110px;
    height: 110px;
  }

  .orbit-item-2 {
    width: 95px;
    height: 95px;
  }

  .orbit-item-3 {
    width: 100px;
    height: 100px;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-card-image {
    flex: none;
  }

  .featured-card-image img {
    min-height: 200px;
  }

  .featured-card-body {
    margin-left: 0;
    margin-top: -14px;
    border-radius: 0 0 16px 16px;
    padding: 30px 24px 24px;
  }

  .actu-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .actu-articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card-image,
  .article-card-no-image {
    height: 200px;
  }

  .actu-links-bar {
    flex-direction: column;
    padding: 40px 25px;
  }

  .actu-newsletter-inner {
    padding: 35px 25px;
  }

  .actu-newsletter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .actu-newsletter-badges {
    align-self: center;
  }
}
