/*
 * ===========================================================================
 * ORIQ IA : ACTUALITES. Feuille d'appoint chargee APRES /guides/guides.css
 * (qui fournit tokens, header, footer, colonne de lecture .guide, hub, CTA).
 * Ici : composants propres au module Le 8 heures IA : cartes d'actu, exergue,
 * mot du fondateur, encadre sources, partage, formulaires newsletter.
 * ===========================================================================
 */

/* --- Couverture d'article (illustration generee, ratio OG 1200x630) --- */
.actu-cover {
  width: 100%; aspect-ratio: 1200 / 630; object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0.4rem 0 1.7rem;
  border: 1px solid var(--line);
}

/* --- Exergue : la phrase qui se partage --- */
.guide blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--brand);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.55rem);
  font-weight: 600; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.guide blockquote p { margin: 0; }

/* --- À lire ensuite : garder l'audience en fin d'article --- */
.actu-related {
  margin: 2.8rem 0 0;
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--line);
}
.actu-related h2, .guide .actu-related h2 {
  border-top: 0; padding-top: 0; margin: 0 0 1.2rem;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em;
}
.actu-related ul {
  list-style: none; margin: 0 0 1.2rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.actu-related__card { margin: 0; }
.actu-related__card a {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.actu-related__card a:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.actu-related__card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.actu-related__cat {
  display: block; padding: 0.7rem 0.9rem 0;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}
.actu-related__title {
  display: block; padding: 0.2rem 0.9rem 0.9rem;
  font-size: 0.94rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
}
.actu-related__all { display: inline-block; font-weight: 700; color: var(--brand); text-decoration: none; font-size: 0.95rem; }
.actu-related__all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .actu-related ul { grid-template-columns: 1fr; gap: 0.8rem; }
  .actu-related__card a { flex-direction: row; align-items: stretch; }
  .actu-related__card img { width: 40%; aspect-ratio: 1 / 1; }
  .actu-related__card > a > span { padding-right: 0.9rem; }
}

/* --- Chiffre cle : la respiration visuelle du corps d'article --- */
.actu-stat {
  display: flex; flex-direction: column; gap: 0.15rem;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.06), rgba(0, 102, 255, 0.02));
  border: 1px solid rgba(0, 102, 255, 0.16);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}
.actu-stat__val {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--brand);
}
.actu-stat__caption { font-size: 1rem; font-weight: 600; color: var(--text); }
.actu-stat__source { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }

/* --- Encadre sources : nommees, datees, sans lien (volontaire) ---
   Boite fournie par .g-card (guides.css) ; ici seulement le contenu. */
.actu-sources {
  margin: 2.2rem 0 0;
  font-size: 0.92rem; color: var(--text-soft);
}
.actu-sources h2, .guide .actu-sources h2 {
  border-top: 0; padding-top: 0; margin: 0 0 0.5rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
}
.actu-sources ul { list-style: none; margin: 0; padding: 0; }
.actu-sources li { margin: 0 0 0.3rem; padding-left: 1rem; position: relative; }
.actu-sources li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

/* --- Mot du fondateur : photo ronde + note signee --- */
.founder-note {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  margin: 2.2rem 0 0;
}
.founder-note__photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  flex: none;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand), 0 8px 20px -8px rgba(0, 102, 255, 0.45);
}
.founder-note__body { min-width: 0; }
.founder-note__kicker {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand);
  margin: 0 0 0.35rem;
}
.founder-note__text { color: var(--text-soft); font-size: 0.98rem; margin: 0 0 0.5rem; }
.founder-note__sign { font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 0; }
.founder-note__sign span { font-weight: 500; color: var(--text-muted); }

/* --- Partage --- */
.actu-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin: 2rem 0 0;
}
.actu-share__label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-right: 0.2rem; }
.actu-share a, .actu-share button {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: inherit; font-size: 0.88rem; font-weight: 700;
  color: var(--text); text-decoration: none; cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--line-strong);
  padding: 0.5rem 0.95rem; border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.actu-share a:hover, .actu-share button:hover { border-color: var(--brand); color: var(--brand); }
.actu-share__hint { flex-basis: 100%; font-size: 0.82rem; color: var(--brand); font-weight: 600; margin-top: 0.1rem; }

/* --- Newsletter : Le 8 heures IA ---
   Panneau sombre fourni par .g-final (guides.css) ; ici les ajustements. */
.nl-card { margin: 2.4rem 0 0; }
.nl-card h2, .guide .nl-card h2 { margin-bottom: 0.4rem; font-size: 1.35rem; }
.nl-card h2 b { color: #7AB0FF; }
.nl-card > p { margin-bottom: 1.1rem; font-size: 0.98rem; }
.nl-card .nl-hint { font-size: 0.82rem; color: #8791a9; margin: 0.7rem 0 0; }

.nl-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nl-form input[type="email"] {
  flex: 1 1 15rem; min-width: 0;
  font-family: inherit; font-size: 0.98rem; color: var(--text);
  background: #fff; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 0.85rem 1.05rem;
}
.nl-form input[type="email"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nl-form .btn { flex: none; }
.nl-form .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-msg { flex-basis: 100%; font-size: 0.9rem; font-weight: 600; margin: 0.2rem 0 0; display: none; }
.nl-msg[data-state="ok"] { display: block; color: #7ee2a8; }
.nl-msg[data-state="err"] { display: block; color: #ffb3a7; }

/* Variante inline claire. S'emploie sur le conteneur <aside> (milieu
   d'article) OU directement sur le <form> (hero de l'index). */
.nl-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.16);
  border-radius: var(--radius);
  padding: 0.95rem 1.2rem;
  margin: 2rem 0;
}
.nl-inline p { flex: 1 1 16rem; margin: 0; font-size: 0.93rem; color: var(--text-soft); }
.nl-inline p b { color: var(--text); }
.nl-inline .nl-form { flex: 1 1 18rem; }
.nl-inline input[type="email"] { border-color: var(--line-strong); padding: 0.6rem 0.9rem; font-size: 0.92rem; }
.nl-inline .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.nl-inline .nl-msg[data-state="ok"] { color: #027A48; }
.nl-inline .nl-msg[data-state="err"] { color: #B42318; }

/* ======================= HUB /actualites/ ======================= */

/* A la une */
.actu-hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.actu-hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.actu-hero__media img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.actu-hero__body .guide-kicker { margin-bottom: 0.5rem; }
.actu-hero__body h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  margin: 0 0 0.7rem; text-wrap: balance;
}
.actu-hero__body h2 a { color: var(--text); text-decoration: none; }
.actu-hero__body h2 a:hover { color: var(--brand); }
.actu-hero__body p { color: var(--text-soft); margin: 0 0 0.9rem; }
.actu-date { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
@media (max-width: 760px) { .actu-hero { grid-template-columns: 1fr; } }

/* Filtres par theme */
.actu-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.actu-filters button {
  font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  color: var(--text-soft); background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 0.42rem 1rem;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.actu-filters button:hover { border-color: var(--brand); color: var(--brand); }
.actu-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Grille chronologique */
.actu-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.1rem;
}
.actu-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.actu-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.actu-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.actu-card__body { padding: 1.05rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.actu-card .guide-kicker { margin: 0; font-size: 0.7rem; }
.actu-card h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.actu-card h3 a { color: var(--text); text-decoration: none; }
.actu-card h3 a::after { content: ""; position: absolute; inset: 0; }
.actu-card h3 a:hover { color: var(--brand); }
.actu-card p { color: var(--text-soft); font-size: 0.9rem; margin: 0; }
.actu-card[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .actu-card, .actu-share a, .actu-share button, .actu-filters button { transition: none; }
}
