/* ============================================================
   blocs/publications.css — bloc additionnel "publications"
   Section 3 cartes éditoriales (mode sombre par défaut).
   Extrait fidèlement de la maquette 2026-06-10 (style.css).
   ============================================================ */

/* ============================================================
   SECTION 08 PUBLICATIONS — 3 articles éditoriaux horizontaux
   ============================================================ */
/* La section 07 Gouvernance se termine par un .section-statement et
   transmet déjà l'air via son padding-bottom (--statement-gap). Comme
   .publications partage le même fond cream, on annule le padding-top ici
   pour éviter le double-air entre l'outro et le titre 08. */
/* === Bloc Publications par défaut en MODE SOMBRE ===
   Modif user 2026-05-11 : sur toutes les pages où ce partial est inclus en
   bas (home + mission + process + expertises + contact + membres), le bloc
   Publications est sur fond bleu nuit. Seule la page dédiée publications.html
   l'override en mode beige (en-tête de page → cf. body.page-publications). */
.publications {
  padding: clamp(48px, 8vh, 120px) 0 var(--pad-section);
  background: var(--c-bg-deep);
  color: #fff;
}
.publications__title { color: #fff; }
.publications__lead { color: rgba(255, 255, 255, 0.78); }
.publications .section-num { color: var(--c-copper); }
.article-card {
  border-top-color: rgba(255, 255, 255, 0.18);
  /* État initial — reveal au scroll (modif user 2026-05-11 Phase B).
     Chaque card remonte du bas en fade-up avec stagger aléatoire. */
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) {
  .article-card { opacity: 1; transform: none; }
}
.article-card:hover { border-color: var(--c-copper); }
.article-card__title { color: #fff; }
.article-card:hover .article-card__title { color: var(--c-copper); }
.article-card__excerpt { color: rgba(255, 255, 255, 0.7); }
.article-card__meta { color: rgba(255, 255, 255, 0.5); }
.article-card__cat { color: var(--c-copper); }
.publications .section-statement--light { color: #fff; }
.publications .section-statement--light .section-statement__intro {
  color: rgba(255, 255, 255, 0.78);
}
.publications .section-statement--light .section-statement__sep {
  color: rgba(255, 255, 255, 0.78);
}

/* === Override pour la page Publications dédiée (publications.html) :
   fond BEIGE + textes bleu marine (header de page). === */
body.page-publications .publications {
  background: var(--c-bg-cream);
  color: var(--c-text);
}
body.page-publications .publications__title { color: var(--c-blue); }
body.page-publications .publications__lead { color: var(--c-text); }
body.page-publications .article-card {
  border-top-color: rgba(142, 117, 71, 0.25);
}
body.page-publications .article-card__title { color: var(--c-blue); }
body.page-publications .article-card__excerpt { color: var(--c-muted); }
body.page-publications .article-card__meta { color: var(--c-muted); }
body.page-publications .publications .section-statement--light { color: var(--c-text); }
body.page-publications .publications .section-statement--light .section-statement__intro {
  color: rgba(0, 57, 77, 0.78);
}
body.page-publications .publications .section-statement--light .section-statement__sep {
  color: rgba(0, 57, 77, 0.78);
}
/* Sur la page Publications dédiée, on cache :
   - le CTA "Voir les publications" (on est déjà sur la page)
   - le .publications__head du partial (titre + lead) car la page utilise
     déjà un .page-hero unifié au-dessus → évite le doublon (modif user 2026-05-11). */
body.page-publications .publications__cta-wrap { display: none; }
body.page-publications .publications__head { display: none; }
.publications__head {
  margin-bottom: clamp(60px, 8vh, 100px);
}
.publications__head .section-num {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: clamp(20px, 3vh, 40px);
}
/* Color des titres/lead : voir la règle .publications par défaut (mode sombre)
   et l'override body.page-publications .publications (mode beige). */
.publications__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(16px, 2vh, 28px);
}
.publications__lead {
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}
/* Publications — 3 news côte-à-côte en grid 3 colonnes (modif client 2026-05-11).
   Avant : flex column avec layout horizontal 35/65 par card. Maintenant :
   grid 3 colonnes, chaque card verticale (image en haut + contenu en bas). */
.publications__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.article-card {
  border-top: 1px solid rgba(142, 117, 71, 0.25);
  transition: border-color 0.4s cubic-bezier(0.24, 0.43, 0.15, 0.97);
}
/* L'ancienne règle :last-child border-bottom n'a plus de sens en grid
   (les 3 cards sont au même niveau, plus de pile verticale). */
.article-card:hover { border-color: var(--c-copper); }
.article-card__link {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 24px);
  padding: clamp(20px, 2.5vh, 32px) 0;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.article-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-top-left-radius: clamp(24px, 3vw, 48px);
  border-bottom-right-radius: clamp(24px, 3vw, 48px);
}
.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.24, 0.43, 0.15, 0.97), filter 0.4s;
  filter: saturate(0.9);
}
.article-card:hover .article-card__media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.article-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vh, 14px);
}
.article-card__cat {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
}
.article-card__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  /* Couleur définie par la règle .publications (mode sombre par défaut, blanc)
     et override body.page-publications .article-card__title (mode beige, bleu). */
  transition: color 0.4s cubic-bezier(0.24, 0.43, 0.15, 0.97);
}
.article-card:hover .article-card__title { color: var(--c-copper); }
.article-card__excerpt {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 55ch;
}
.article-card__meta {
  margin: clamp(4px, 0.5vh, 8px) 0 0;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(0, 57, 77, 0.5);
}
/* Bouton "En savoir plus" dans la carte (modif client 2026-05-21 F1).
   C'est un <span> stylé en bouton (la carte entière est déjà un <a>, pas de
   lien imbriqué). Forme signature Scale, ghost cuivre, flèche animée au hover
   de la carte. */
.article-card__more {
  align-self: flex-start;
  margin-top: clamp(10px, 1.4vh, 18px);
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.5vw, 10px);
  padding: clamp(9px, 0.8vw, 14px) clamp(16px, 1.5vw, 26px);
  border-radius: 0 999px 0 999px;
  border: 1px solid var(--c-copper);
  background: transparent;
  color: var(--c-copper);
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.article-card__more .arrow {
  transition: transform 0.4s var(--ease);
}
.article-card:hover .article-card__more {
  background: var(--c-copper);
  color: #fff;
}
.article-card:hover .article-card__more .arrow {
  transform: translateX(4px);
}
.publications__cta-wrap {
  margin-top: clamp(40px, 5vh, 60px);
  display: flex;
  justify-content: center;
}
/* Le bouton "Voir toutes les publications" utilise .btn .btn--primary .btn-shape — pas de styles spécifiques */

/* ----- Responsive (< 1024px) ----- */
@media (max-width: 1024px) {
  .publications__list { grid-template-columns: 1fr; }
}
