/* ==========================================================================
   QUÉBEC HD — pages/alain-blanchard.css
   Styles spécifiques à la page « Alain Blanchard » (slug « alain-blanchard »),
   profil de l'auteur du blog. Une feuille par page, jamais par section.

   Namespace : .qhd-author-* (section sections/auteur-profil.php).
   Même construction que la version simplifiée de la page DMCA : bandeau de
   titre, puis colonne de lecture. Fond uni sombre, aucune animation, aucun
   décor.
   ========================================================================== */

.qhd-author {
  inline-size: 100vw;
  max-inline-size: 100vw;
  margin-inline: calc(50% - 50vw);
  /* Le bandeau suit directement l'en-tête : espacement haut de .qhd-section annulé. */
  padding-block-start: 0;
  padding-block-end: clamp(3.5rem, 2rem + 3.5vw, 6rem);
  background-color: #06070b;
}

/* Pleine largeur : 100vw inclut la barre de défilement ; le surplus est coupé. */
body.qhd-theme {
  overflow-x: clip;
}

/* --- Bandeau --------------------------------------------------------------- */

.qhd-author__banner {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  border-block-end: 1px solid rgb(30 120 210 / 25%);
  background-color: #0b0c12;
}

/* Même largeur que la colonne de lecture : bords gauches alignés. */
.qhd-author__banner-inner {
  width: min(100% - (var(--qhd-gutter) * 2), 860px);
}

.qhd-author__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.qhd-author__breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #dde2ea;
}

/* Séparateur « › » dessiné, non lu par les lecteurs d'écran. */
.qhd-author__breadcrumb li + li::before {
  content: "›";
  color: #6f7c96;
}

.qhd-author .qhd-author__breadcrumb a {
  color: #c7ced8;
  text-decoration: none;
}

.qhd-author .qhd-author__breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.qhd-author__role {
  margin: 22px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qhd-cyan);
}

.qhd-author__title {
  margin: 10px 0 0;
  font-family: var(--qhd-font-title);
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); /* 34 → 56 px */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f7f7f8;
}

.qhd-author__intro {
  max-inline-size: 720px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); /* 16 → 18 px */
  line-height: 1.65;
  color: #cbd1db;
}

/* --- Colonne de lecture ---------------------------------------------------- */

.qhd-author__body {
  width: min(100% - (var(--qhd-gutter) * 2), 860px);
  padding-block-start: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem); /* 16 → 17 px */
  line-height: 1.8;
  color: #c8cfd9;
}

.qhd-author__body p {
  margin: 0 0 1.1em;
}

.qhd-author__heading {
  margin: 2em 0 0.7em;
  font-family: var(--qhd-font-title);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); /* 22 → 28 px */
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* --- Sujets : pastilles, une colonne puis deux ----------------------------- */

.qhd-author__topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.qhd-author__topics li {
  margin: 0;
}

.qhd-author .qhd-author__topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-block-size: 48px;
  padding: 10px 16px;
  border: 1px solid rgb(30 120 210 / 40%);
  border-radius: 12px;
  background-color: rgb(5 20 34 / 88%);
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.qhd-author__topic-name {
  font-weight: 700;
  color: #ffffff;
}

.qhd-author__topic-count {
  flex: 0 0 auto;
  font-size: 0.875rem;
  color: #aeb8c9;
}

.qhd-author .qhd-author__topic:hover {
  border-color: var(--qhd-cyan);
  background-color: rgb(10 35 60 / 90%);
}

/* --- Derniers articles ----------------------------------------------------- */

.qhd-author__posts {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.qhd-author__post {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-block: 14px;
  border-block-end: 1px solid rgb(30 120 210 / 18%);
}

.qhd-author__post:first-child {
  padding-block-start: 0;
}

.qhd-author .qhd-author__post-link {
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  text-decoration: none;
}

.qhd-author .qhd-author__post-link:hover {
  color: var(--qhd-cyan);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.qhd-author__post-date {
  font-size: 0.875rem;
  color: #aeb8c9;
}

/* --- Liens et focus -------------------------------------------------------- */

.qhd-author .qhd-author__link {
  color: #4fb0ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.qhd-author .qhd-author__link:hover {
  color: #ffffff;
}

.qhd-author .qhd-author__breadcrumb a:focus-visible,
.qhd-author .qhd-author__topic:focus-visible,
.qhd-author .qhd-author__post-link:focus-visible,
.qhd-author .qhd-author__link:focus-visible {
  outline: 3px solid var(--qhd-cyan);
  outline-offset: 2px;
  box-shadow: none;
}

/* --- 600 px : sujets sur deux colonnes ------------------------------------- */

@media (min-width: 600px) {
  .qhd-author__topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .qhd-author .qhd-author__topic {
    transition: none;
  }
}
