/* =========================================================
   JuristeFiscaliste.com — Refonte éditoriale
   Esprit : revue savante, plume d'auteur, retenue.
   ========================================================= */

:root {
  /* Encres et papier */
  --ink: #1A1F2E;
  --ink-soft: #2C2C2C;
  --navy: #1F2D4A;
  --navy-deep: #15203A;

  /* Or-feuille (antique, sans saturation) */
  --gold: #8B6F3A;
  --gold-soft: #A4884D;
  --gold-faint: rgba(139, 111, 58, 0.18);

  /* Papier */
  --paper: #F7F2E8;
  --paper-warm: #EFE9DC;
  --paper-edge: #E5DDC8;
  --cream: #FAF6EC;

  /* Gris chauds */
  --warm-grey: #6E6557;
  --warm-grey-light: #9B9080;
  --rule: rgba(26, 31, 46, 0.12);

  /* Mise en page */
  --max: 1180px;
  --max-narrow: 760px;

  /* Typographies */
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-faint);
  transition: border-color .25s ease, color .25s ease;
}
a:hover { border-color: var(--gold); color: var(--navy); }

/* === Conteneurs === */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }

/* === Typographie éditoriale === */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 500; margin-bottom: 0.6em; }
h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: 0.5em; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1.1em; }

.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1.5em;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-title { font-family: var(--serif); }

.rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 0 28px 0;
}

.rule-centered { margin: 0 auto 28px; }

/* Drop cap pour paragraphes éditoriaux */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4.6em;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--navy);
  font-weight: 500;
}

/* === Navigation === */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  backdrop-filter: blur(6px);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  border: none;
  letter-spacing: 0.01em;
}

.logo .accent {
  font-style: italic;
  color: var(--navy);
}

.logo:hover { color: var(--navy); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: uppercase;
  border: none;
  padding: 4px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
}

/* === Boutons (très sobres) === */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: all .25s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-filled {
  background: var(--ink);
  color: var(--paper);
}
.btn-filled:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-text {
  border: none;
  background: transparent;
  color: var(--navy);
  padding: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
}

.btn-text:hover { color: var(--ink); border-color: var(--ink); }

/* === Hero === */
.hero {
  background: var(--paper);
  padding: 90px 0 110px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.hero-left .kicker {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-left .kicker::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--navy);
}

.hero .lede {
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--warm-grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Portrait à droite du hero */
.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(0.95) saturate(0.92);
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.hero-portrait-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--warm-grey);
  margin-top: 14px;
  text-align: center;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--gold);
  background: var(--navy-deep);
  font-style: italic;
}

/* === Sections === */
section {
  padding: 110px 0;
}

.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-warm  { background: var(--paper-warm); }
.section-ink {
  background: var(--navy-deep);
  color: var(--paper);
}
.section-ink h2, .section-ink h3, .section-ink h4 { color: var(--paper); }
.section-ink .kicker { color: var(--gold-soft); }
.section-ink a { color: var(--paper); border-color: rgba(164, 136, 77, 0.4); }
.section-ink a:hover { color: var(--gold-soft); }

.section-head { margin-bottom: 64px; }
.section-head-center { text-align: center; }
.section-head-center .rule { margin: 0 auto 28px; }

/* === À propos / L'auteur === */
.author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.author-portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.author-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(0.97) saturate(0.95);
}

.author-text { padding-top: 8px; }
.author-text h2 { margin-bottom: 8px; }
.author-text .author-credentials {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.author-credentials li {
  display: grid;
  grid-template-columns: 60px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.author-credentials .label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding-top: 4px;
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 28px;
}

/* === Études et chroniques === */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}

.featured-article .article-visual {
  aspect-ratio: 4/3;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.featured-article .article-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(31, 45, 74, 0.85), rgba(21, 32, 58, 0.95));
}

.featured-article .article-visual-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 8rem;
  color: var(--gold-soft);
  z-index: 2;
}

.featured-article .article-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 16px;
}

.featured-article h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.featured-article p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

/* Liste d'articles */
.article-list { list-style: none; }

.article-list li {
  display: grid;
  grid-template-columns: 180px 100px 1fr 140px;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}

/* Vignette photo de l'article */
.article-thumb-list {
  aspect-ratio: 4/3;
  background: var(--paper-warm);
  overflow: hidden;
  border: 1px solid var(--rule);
  position: relative;
}

.article-thumb-list img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(0.97) saturate(0.92);
  display: block;
}

/* Repli si pas de photo (ou erreur de chargement) */
.article-thumb-empty {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold-soft);
}

.article-list li:last-child { border-bottom: 1px solid var(--rule); }

.article-list .date-stamp {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-grey);
  padding-top: 4px;
}

.article-list .article-main h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color .2s ease;
}

.article-list .article-main h3 a {
  border: none;
  color: inherit;
}

.article-list li:hover .article-main h3 { color: var(--navy); }

.article-list .article-excerpt {
  font-size: 0.97rem;
  color: var(--warm-grey);
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
}

.article-list .article-category {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
  padding-top: 4px;
}

/* === Liste compacte d'articles (notes courtes) === */
.news-list { list-style: none; }

.news-list li {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.news-list li:last-child { border-bottom: 1px solid var(--rule); }

.news-list .news-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-grey);
  font-weight: 500;
}

.news-list .news-content h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
  color: var(--ink);
}

.news-list .news-content h4 a {
  border: none;
  color: inherit;
}

.news-list li:hover .news-content h4 { color: var(--navy); }

.news-list .news-content p {
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--warm-grey);
  margin: 0;
  line-height: 1.5;
}

.news-list .news-type {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
  font-weight: 600;
  padding-top: 2px;
}

@media (max-width: 768px) {
  .news-list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .news-list .news-type { text-align: left; }
}

/* === Prose éditoriale (sections en noir) === */
.prose-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.prose-block p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--paper);
  margin-bottom: 1.4em;
}

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gold-soft);
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  margin: 40px 0;
}

.pull-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-grey-light);
  margin-top: 16px;
  font-family: var(--sans);
}

/* === Vidéos === */
.video-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.video-item {
  cursor: pointer;
}

.video-frame {
  aspect-ratio: 16/9;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}

.video-frame::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 18px solid var(--gold-soft);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  opacity: 0.85;
  transition: all .25s ease;
}

.video-item:hover .video-frame::after {
  border-left-color: var(--gold);
  transform: translate(-45%, -50%) scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
}

.video-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.video-item h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}

/* === Cours (formations) === */
.cours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cours-item {
  padding: 50px 38px;
  border-right: 1px solid var(--rule);
  transition: background .3s ease;
}

.cours-item:last-child { border-right: none; }
.cours-item:hover { background: var(--cream); }

.cours-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}

.cours-item h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.25;
}

.cours-item .cours-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--warm-grey);
  margin-bottom: 22px;
  line-height: 1.5;
}

.cours-meta {
  list-style: none;
  margin-bottom: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.cours-meta li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cours-meta li span:first-child {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.cours-tarif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--warm-grey);
  margin-bottom: 20px;
}

.cours-tarif strong {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 500;
  margin-right: 6px;
}

/* === Ouvrages (e-books) === */
.ouvrages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
}

.ouvrage {
  cursor: pointer;
}

.ouvrage-cover {
  aspect-ratio: 2/3;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 24px;
  color: var(--paper);
  text-align: left;
  margin-bottom: 20px;
  transition: transform .3s ease;
  box-shadow: 8px 8px 0 var(--paper-edge);
}

.ouvrage:hover .ouvrage-cover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--paper-edge);
}

.ouvrage-cover::before {
  content: '';
  position: absolute;
  left: 6px; top: 24px; bottom: 24px;
  width: 1px;
  background: var(--gold-soft);
  opacity: 0.6;
}

.ouvrage-cover .ouvrage-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-soft);
  letter-spacing: 0.05em;
}

.ouvrage-cover .ouvrage-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--paper);
  margin-top: auto;
}

.ouvrage-cover .ouvrage-author-cover {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 16px;
}

.ouvrage-info {
  text-align: left;
}

.ouvrage-info .ouvrage-cat {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.ouvrage-info h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
}

.ouvrage-info .ouvrage-pages {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--warm-grey);
  margin-bottom: 14px;
}

.ouvrage-info .ouvrage-tarif {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}

.ouvrage-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
}

.ouvrage-link:hover { color: var(--ink); border-color: var(--ink); }

/* === Paiements (très sobre) === */
.payments-note {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  color: var(--warm-grey);
  font-size: 0.98rem;
}

.payments-note strong {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

/* === Contact / Correspondance === */
.correspondance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.correspondance-text .lede {
  font-size: 1.25rem;
  color: var(--paper);
  margin-bottom: 36px;
}

.correspondance-channels {
  list-style: none;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 242, 232, 0.18);
}

.correspondance-channels li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 242, 232, 0.12);
  font-size: 0.98rem;
  color: var(--paper);
  word-break: break-word;
}

.correspondance-channels li a {
  color: var(--paper);
  border-bottom: 1px solid rgba(164, 136, 77, 0.4);
  transition: border-color .25s ease;
}

.correspondance-channels li a:hover { border-color: var(--gold); }

.correspondance-channels .label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
  padding-top: 2px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247, 242, 232, 0.3);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.98rem;
  margin-bottom: 22px;
  transition: border-color .25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(247, 242, 232, 0.5);
  font-family: var(--serif);
  font-style: italic;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.contact-form select option {
  background: var(--navy-deep);
  color: var(--paper);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--paper);
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
}

.contact-form button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}

/* === Page header (pages internes) === */
.page-head {
  padding: 90px 0 70px;
  background: var(--paper);
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 16px;
}

.page-head .lede {
  font-style: italic;
  color: var(--warm-grey);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

.breadcrumb {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* === Filtres (sobres) === */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.filter-chip {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-grey);
  padding: 4px 0;
  transition: color .2s ease;
  position: relative;
}

.filter-chip:hover { color: var(--ink); }

.filter-chip.active {
  color: var(--navy);
  font-weight: 600;
}

.filter-chip.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -19px;
  height: 1px;
  background: var(--gold);
}

/* === Footer === */
footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding: 70px 0 30px;
  color: var(--warm-grey);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand .logo { color: var(--ink); margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--warm-grey); max-width: 380px; margin-bottom: 22px; }

.footer-social {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-social li { margin: 0; }
.footer-social a {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.footer-social a:hover { color: var(--navy); border-color: var(--navy); }

.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--warm-grey);
  border: none;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--navy); }

.footer-bottom {
  text-align: center;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--warm-grey);
}

/* === Responsive === */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 70px; right: -100%;
    flex-direction: column;
    background: var(--paper);
    width: 80%; max-width: 320px;
    height: calc(100vh - 70px);
    padding: 40px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.06);
    transition: right .3s ease;
    align-items: flex-start;
    gap: 24px;
  }
  .nav-links.active { right: 0; }
  .menu-toggle { display: block; }

  .hero-grid,
  .author-grid,
  .featured-article,
  .correspondance-grid { grid-template-columns: 1fr; gap: 40px; }

  .cours-grid,
  .video-list { grid-template-columns: 1fr; }
  .cours-item { border-right: none; border-bottom: 1px solid var(--rule); }

  .article-list li { grid-template-columns: 1fr; gap: 14px; }
  .article-list .article-category { text-align: left; }
  .article-thumb-list { max-width: 100%; aspect-ratio: 16/9; }

  .ouvrages-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 580px) {
  section { padding: 70px 0; }
  .hero { padding: 60px 0 80px; }
  .ouvrages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Correspondance : empiler étiquette + valeur sur petits écrans */
  .correspondance-channels li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }
  .correspondance-channels .label { padding-top: 0; margin-bottom: 2px; }

  /* Numéro de téléphone visible et facile à taper sur mobile */
  .correspondance-channels li a[href^="tel:"] {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  /* Footer : liens pleinement cliquables */
  .footer-col a[href^="tel:"] {
    display: inline-block;
    padding: 6px 0;
    font-weight: 500;
  }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: all .9s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
