/* ═══════════════════════════════════════════════
   DESIGN SYSTEM · Scènes de travail en 2030
   Palette : #FAFAFA fond · #2452C8 accent · Lora + Inter
═══════════════════════════════════════════════ */

:root {
  --bg:            #FAFAFA;
  --white:         #FFFFFF;
  --text:          #1A1A1A;
  --text-secondary:#6B6B6B;
  --accent:        #2452C8;
  --accent-hover:  #1A3FA3;
  --border:        #E0E0E0;
  --section-alt:   #F2F2F0;
  --footer-bg:     #1A1A1A;
  --footer-text:   #AAAAAA;
  --shadow:        0 2px 20px rgba(0,0,0,0.07);
  --shadow-hover:  0 6px 32px rgba(0,0,0,0.13);

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius: 4px;
  --transition: 200ms ease;

  --container: 1100px;
  --container-narrow: 680px;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: disc; padding-left: 1.4em; }
ul li { margin-bottom: .4em; }

/* ── Layout ──────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Typographie ─────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}
h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}
h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
}

/* ── Boutons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(36,82,200,0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover {
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  padding: 120px 0 104px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero .label { margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   ÉDITO
══════════════════════════════════════════════ */
.edito {
  padding: 96px 40px;
  text-align: center;
}
.edito h2 { margin-bottom: 28px; }
.edito p {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-style: italic;
}
.edito p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   GALERIE
══════════════════════════════════════════════ */
.galerie {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* Grille 3 colonnes */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Carte illustration */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.card:not(.card--placeholder):hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card--placeholder { cursor: default; }

/* Image wrapper : ratio 4:5 strict */
.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #F0EEE8;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.card:not(.card--placeholder):hover .card-image img {
  transform: scale(1.03);
}

/* Overlay hover sur les cartes actives */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:not(.card--placeholder):hover .card-overlay { opacity: 1; }
.card-overlay-icon {
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

/* Placeholder (épisodes à paraître) */
.card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EBEBEA;
}
.placeholder-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  color: #CCCCCC;   /* decoratif : le numero est repete en texte dans .card-num */
  letter-spacing: -1px;
  line-height: 1;
}
.card--tbd .card-image--placeholder { background: #F4F4F3; }
.card--tbd .placeholder-num { font-size: 36px; }

/* Corps de la carte */
.card-body {
  padding: 16px 20px 20px;
}
.card-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
}
.card-question {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.card--placeholder .card-title,
.card--placeholder .card-question { color: #767676; }   /* contraste 4.5:1 sur blanc */

/* ══════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════ */
.newsletter {
  background: var(--section-alt);
  padding: 96px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.newsletter h2 { margin-bottom: 16px; }
.newsletter-intro {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 17px;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  flex: 1;
  min-width: 140px;
}
.form-field--email { flex: 1.6; }
.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-field input {
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36,82,200,0.1);
}
.form-field input::placeholder { color: #BBBBBB; }

#btn-subscribe { align-self: flex-end; height: 48px; }

.form-feedback {
  font-size: 14px;
  min-height: 20px;
  margin-bottom: 4px;
}
.form-feedback.success { color: #1A7A4A; }
.form-feedback.error   { color: #C0392B; }

.form-note {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}
.form-note a { color: var(--text-secondary); text-decoration: underline; }
.form-note a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   RÉFLEXES : encart anti-dette cognitive
══════════════════════════════════════════════ */
.reflexes {
  padding: 96px 0 64px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.reflexes .rx-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--border);
  opacity: 0.6;
  margin: 0 auto 32px;
}
.rx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.rx-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rx-num {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
}
.rx-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.rx-text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.rx-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 160ms ease;
}
.rx-text a:hover { color: var(--accent-hover); }
.rx-outro {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   AUTEUR
══════════════════════════════════════════════ */
.auteur { padding: 72px 0 96px; }
.auteur-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 680px;
  margin: 0 auto;
}
.auteur-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.auteur-bio h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}
.auteur-bio p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
.linkedin-link:hover { color: var(--accent-hover); text-decoration: none; }

/* ══════════════════════════════════════════════
   PROMO BD
══════════════════════════════════════════════ */
.promo-bd {
  background: var(--section-alt);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promo-bd-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 900px;
  margin: 0 auto;
}
.promo-bd-cover {
  flex-shrink: 0;
}
.promo-bd-cover img {
  width: 220px;
  border-radius: var(--radius);
  box-shadow: 0 10px 48px rgba(0,0,0,0.2);
  display: block;
}
.promo-bd-content .label { margin-bottom: 16px; }
.promo-bd-content h2 { margin-bottom: 20px; }
.promo-bd-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}
.promo-bd-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin-bottom: 28px;
}
.promo-bd-ctas .btn { justify-content: center; }
.promo-bd-extrait {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 0;
  transition: color var(--transition);
}
.promo-bd-extrait:hover { color: var(--accent); }
.extrait-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--footer-bg);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: var(--footer-text);
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: #FFFFFF; text-decoration: none; }

/* Archives texte des épisodes (maillage interne, volontairement discret) */
.footer-archives {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-archives-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8A8A8A;   /* contraste 4.5:1 sur le fond du pied de page */
  margin-bottom: 14px;
}
.footer-archives-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.footer-archives-list li { margin: 0; }
.footer-archives-list a {
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-archives-list a:hover { color: #FFFFFF; text-decoration: none; }

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.88);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
}

/* Conteneur image + texte côte à côte */
.lightbox-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.lightbox-image-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lightbox-img {
  max-height: calc(90vh - 80px);
  max-width: min(90vw, 600px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}

/* Quand le texte est présent : image au-dessus, plafonnée en hauteur */
.lightbox--has-text .lightbox-img {
  max-width: 440px;
  max-height: 56vh;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #FFFFFF;
}

/* Panneau texte : masqué par défaut */
.lightbox-text-side {
  display: none;
  width: 460px;
  max-height: calc(90vh - 40px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.lightbox-text-side::-webkit-scrollbar { width: 4px; }
.lightbox-text-side::-webkit-scrollbar-track { background: transparent; }
.lightbox-text-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 2px; }

/* Texte présent : layout empilé (image + CTA au-dessus, texte large dessous),
   tout le bloc défile, desktop comme mobile */
.lightbox--has-text .lightbox-content {
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2px 10px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.lightbox--has-text .lightbox-content::-webkit-scrollbar { width: 4px; }
.lightbox--has-text .lightbox-content::-webkit-scrollbar-track { background: transparent; }
.lightbox--has-text .lightbox-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 2px; }
.lightbox--has-text .lightbox-text-side {
  display: block;
  width: 100%;
  max-width: 680px;
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

.lightbox-post {
  color: rgba(255,255,255,0.88);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
}
.lightbox-post p { margin-bottom: 16px; }
.lightbox-post p:last-child { margin-bottom: 0; }
.lightbox-post strong { color: #fff; font-weight: 600; }

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ══════════════════════════════════════════════
   MODALS (Mentions légales / Politique)
══════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
  cursor: pointer;
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 48px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 60px rgba(0,0,0,0.25);
}
.modal-box h2 {
  font-size: 26px;
  margin-bottom: 28px;
  padding-right: 40px;
}
.modal-box h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 24px 0 8px;
  font-weight: 600;
}
.modal-box h3:first-of-type { margin-top: 0; }
.modal-box p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.modal-box ul { font-size: 15px; color: var(--text-secondary); padding-left: 1.4em; }
.modal-box a { color: var(--accent); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
  line-height: 0;
}
.modal-close:hover { color: var(--text); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero { padding: 80px 0 72px; }
  .galerie, .newsletter, .auteur, .reflexes { padding-top: 72px; padding-bottom: 72px; }
  .edito { padding: 72px 24px; }
  .container { padding: 0 24px; }

  /* Réflexes : 1 colonne dès la tablette (mobile first) */
  .rx-grid { grid-template-columns: 1fr; gap: 20px; max-width: 540px; }
  /* Espace réflexes → auteur resserré (mobile first) */
  .reflexes { padding-bottom: 44px; }
  .auteur { padding-top: 52px; }
  .rx-outro { margin-top: 32px; font-size: 16px; max-width: 540px; }

  /* Promo BD */
  .promo-bd-inner { gap: 40px; }
  .promo-bd { padding-top: 72px; padding-bottom: 72px; }

  /* Lightbox mobile : .lightbox-inner remplit le container fixe via
     position:absolute inset:0 car height:100% échoue dans un parent flex */
  .lightbox { padding: 0; display: block; }
  .lightbox-inner {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 56px 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .lightbox-content { max-height: none; }
  /* Mobile : le scroll reste sur .lightbox-inner (pas de double-scroll sur .lightbox-content) */
  .lightbox--has-text .lightbox-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-height: none;
    overflow-y: visible;
    padding: 0;
  }
  .lightbox--has-text .lightbox-img {
    max-width: min(88vw, 360px);
    max-height: 50vh;
  }
  .lightbox--has-text .lightbox-text-side {
    max-height: none;
    overflow-y: visible;
    width: min(88vw, 480px);
    max-width: none;
    padding: 0;
  }
  /* Mobile : on conserve la typo actuelle (lecture déjà OK) */
  .lightbox-post { font-size: 14px; line-height: 1.85; }
  .lightbox-post p { margin-bottom: 14px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 64px 0 56px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
  .form-row { flex-direction: column; }
  .form-field, .form-field--email { width: 100%; }
  #btn-subscribe { width: 100%; justify-content: center; }
  .auteur-inner { flex-direction: column; align-items: center; text-align: center; }
  .auteur-bio h3 { text-align: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-archives { text-align: center; }
  .footer-archives-list { flex-direction: column; align-items: center; gap: 10px; }
  .modal-box { padding: 32px 24px; }
  .container { padding: 0 20px; }
  .galerie .container { padding: 0 20px; }
  .newsletter { padding-left: 20px; padding-right: 20px; }

  /* Promo BD mobile : colonne centrée */
  .promo-bd-inner { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
  .promo-bd-cover img { width: 160px; }
  .promo-bd-ctas { max-width: 100%; }
  .promo-bd-extrait { justify-content: center; }

  /* Réflexes mobile : padding cartes resserré */
  .rx-card { padding: 28px 24px; }
  .rx-num { font-size: 36px; margin-bottom: 16px; }
}

/* ══════════════════════════════════════════════
   PAGE ÉPISODE (/episodes/<slug>/)
   Page autonome, indexable, mobile first
══════════════════════════════════════════════ */

/* Barre de retour vers la série */
.ep-back {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.ep-back .container {
  padding-top: 20px;
  padding-bottom: 20px;
}
.ep-back a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.ep-back a:hover { color: var(--accent); text-decoration: none; }

/* Corps de l'article */
.ep-article { padding: 56px 0 72px; }
.ep-header { text-align: center; margin-bottom: 40px; }
.ep-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 16px;
}
.ep-article h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 24px;
}
.ep-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* Illustration */
.ep-figure { margin: 0 0 48px; text-align: center; }
.ep-figure img {
  max-width: min(100%, 520px);
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ep-figure figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
}
.ep-figure figcaption a { text-decoration: underline; text-underline-offset: 2px; }

/* Texte de l'épisode */
.ep-body { max-width: 680px; margin: 0 auto; }
.ep-body p { margin-bottom: 20px; line-height: 1.75; }
.ep-body p:last-child { margin-bottom: 0; }
.ep-body strong { font-weight: 600; }

/* Encadrés (À retenir / Définition / Dirigeants) */
.ep-box {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 32px;
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.ep-box h2 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.ep-box ul { margin: 0; padding-left: 1.2em; }
.ep-box li { margin-bottom: 12px; line-height: 1.65; }
.ep-box li:last-child { margin-bottom: 0; }
.ep-box p { line-height: 1.7; margin-bottom: 0; }
.ep-box--def { background: var(--white); }
.ep-box--def h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 12px;
}

/* Question finale */
.ep-question {
  max-width: 680px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.ep-question p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
}

/* CTA newsletter */
.ep-cta {
  background: var(--section-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.ep-cta h2 { font-family: var(--font-serif); font-size: 28px; margin-bottom: 14px; }
.ep-cta p { color: var(--text-secondary); margin-bottom: 28px; }

/* Maillage interne : épisodes liés */
.ep-related { padding: 64px 0; }
.ep-related h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  text-align: center;
  margin-bottom: 32px;
}
.ep-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 36px;
}
.ep-related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ep-related-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.ep-related-card .ep-num { margin-bottom: 10px; }
.ep-related-card h3 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 6px; }
.ep-related-card p { font-size: 14px; color: var(--text-secondary); font-style: italic; }
.ep-related-all { text-align: center; }

/* ── Page épisode : mobile ─────────────────── */
@media (max-width: 900px) {
  .ep-article { padding: 40px 0 56px; }
  .ep-article h1 { font-size: 30px; }
  .ep-lede { font-size: 17px; }
  .ep-figure { margin-bottom: 36px; }
  .ep-box { padding: 26px 22px; margin-top: 36px; }
  .ep-question { margin-top: 44px; padding-top: 32px; }
  .ep-question p { font-size: 19px; }
  .ep-cta, .ep-related { padding: 48px 0; }
}

@media (max-width: 600px) {
  .ep-article h1 { font-size: 26px; }
  .ep-related-grid { grid-template-columns: 1fr; gap: 16px; }
  .ep-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ══════════════════════════════════════════════
   PAGE PILIER (/ia-travail-capital-cognitif/)
══════════════════════════════════════════════ */
.pilier-toc {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 28px 32px;
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pilier-toc h2 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.pilier-toc ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.6;
}
.pilier-toc li { margin-bottom: 8px; }
.pilier-toc li:last-child { margin-bottom: 0; }

.pilier-q {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
  margin: 48px 0 18px;
  scroll-margin-top: 24px;
}
.pilier-q:first-of-type { margin-top: 0; }

@media (max-width: 900px) {
  .pilier-toc { padding: 22px 20px; margin-bottom: 36px; }
  .pilier-q { font-size: 21px; margin: 36px 0 14px; }
}

/* ══════════════════════════════════════════════
   PAGE À PROPOS (/a-propos/)
══════════════════════════════════════════════ */
.apropos-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  max-width: 160px;
}

/* Lien « En savoir plus » du bloc auteur de l'accueil */
.auteur-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
@media (max-width: 600px) {
  .auteur-links { justify-content: center; }
  .apropos-photo img { width: 132px; height: 132px; max-width: 132px; }
}

/* Mention du prix dans la section BD de l'accueil */
.promo-bd-award {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
/* Photo du trophée sur la page À propos */
.prix-figure { margin: 32px 0 8px; }
.prix-figure img { max-width: min(100%, 420px); }

/* Lightbox : états de chargement et lien vers la page épisode */
.lightbox-loading {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.lightbox-more {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.lightbox-more a {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.lightbox-more a:hover { text-decoration: underline; }

/* Renvoi vers le site professionnel de Luc (maillage entre les deux sites) */
.footer-pro {
  font-size: 13px;
  color: var(--footer-text);
  margin-top: 6px;
}
.footer-pro a {
  color: var(--footer-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
  display: inline-block;
  padding-block: 4px;
  min-height: 24px;
}
.footer-pro a:hover { color: #FFFFFF; }

/* ══════════════════════════════════════════════
   ACCESSIBILITE
══════════════════════════════════════════════ */

/* Un lien au milieu d'une phrase ne doit pas se distinguer par la seule couleur.
   Les listes de navigation (pied de page) ne sont pas concernees. */
p a:not([class]),
li a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.footer-archives-list a:not([class]),
.footer-nav a:not([class]) { text-decoration: none; }

/* Cibles tactiles : 24 px de haut au minimum pour les liens, meme discrets. */
.footer-archives-list a,
.footer-nav a,
.footer-nav .link-modal {
  display: inline-block;
  padding-block: 4px;
  min-height: 24px;
}
.footer-archives-list { gap: 4px 28px; }
