/* Charte graphique et mise en page reprises du thème WordPress
   Twenty Twenty utilisé par le site d'origine (couleurs du customizer
   incluses). Les tailles reprennent celles du thème (1rem thème = 10px). */

:root {
  --accent: #cd2653;
  --text: #000000;
  --muted: #6d6d6d;
  --border: #dcd7ca;
  --bg: #f5efe0;
  --header-bg: #ffffff;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "Hoefler Text", Garamond, "Times New Roman", serif;
  --content-width: 580px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

a {
  color: var(--accent);
}

/* ---- En-tête ---- */

.site-header {
  background: var(--header-bg);
}

.header-inner {
  max-width: 1680px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 31.5px 0;
  text-align: center;
}

.site-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.site-description {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

.primary-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 24px;
  padding: 0;
  margin: 12px 0 0;
}

.primary-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.primary-menu a:hover,
.primary-menu a.current {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- Bandeau de titre de page ---- */

.entry-header {
  text-align: center;
  padding: 60px 20px;
}

.entry-header-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.entry-categories {
  margin-bottom: 20px;
}

.entry-categories a {
  border-bottom: 1.5px solid currentColor;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.036666667em;
  text-decoration: none;
  text-transform: uppercase;
}

h1.entry-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.0415625em;
  line-height: 1.138888889;
  margin: 0;
}

.post-meta {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  margin: 20px 0 0;
}

/* ---- Contenu ---- */

.post-inner {
  padding-top: 50px;
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.entry-content {
  font-family: var(--font-serif);
  letter-spacing: normal;
  font-size: 18px;
  line-height: 1.5;
}

.entry-content h2 {
  font-family: var(--font-sans);
  letter-spacing: -0.0415625em;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 35px auto 20px;
}

.has-text-align-center {
  text-align: center;
}

/* ---- Boutons (blocs WordPress : alignés à gauche) ---- */

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 1.1em 1.44em;
  text-decoration: none;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.0333em;
  line-height: 1.25;
  text-transform: uppercase;
  transition: opacity 0.15s linear;
}

.button:hover {
  opacity: 0.85;
}

/* ---- Liste des dernières publications ---- */

.publications {
  list-style: none;
  padding: 0;
  color: var(--muted);
}

.publications li {
  padding: 4px 0;
}

.publications a {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-decoration: none;
}

.publications a:hover {
  text-decoration: underline;
}

/* ---- PDF ---- */

.pdf-embed {
  margin: 40px 0;
  text-align: center;
}

.pdf-embed embed,
.pdf-embed iframe {
  width: 100%;
  height: 85vh;
  border: 1px solid var(--border);
  background: #fff;
}

.fallback {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

/* ---- Encadrés ---- */

.notice {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px 20px;
  color: var(--muted);
}

.intro {
  font-style: italic;
}

/* ---- Séparateur ---- */

hr.styled-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ---- Commentaires ---- */

.comments {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.comments-header h2 {
  font-family: var(--font-sans);
  letter-spacing: -0.0415625em;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 30px;
}

.comment {
  margin-bottom: 32px;
}

.comment-meta {
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.comment-meta .author {
  color: var(--text);
  font-weight: 700;
}

.comment.reply {
  margin-left: 40px;
}

/* ---- Contact ---- */

.contact-email {
  text-align: center;
  margin: 40px 0;
}

.contact-email .button {
  margin: 0 auto;
}

/* ---- Pied de page ---- */

.site-footer {
  background: var(--header-bg);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .footer-inner {
  max-width: 1680px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.footer-copyright {
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.to-the-top {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
}

.to-the-top:hover {
  text-decoration: underline;
}

/* ---- Écrans larges (comme le thème : bascule à 1000px) ---- */

@media (min-width: 1000px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    text-align: left;
  }

  .header-titles {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 24px;
    max-width: 50%;
    margin-right: 40px;
  }

  .site-title {
    font-size: 24px;
    font-weight: 700;
  }

  .primary-menu {
    justify-content: flex-end;
    margin: 0;
  }

  .primary-menu a {
    font-size: 17px;
  }

  .entry-header {
    padding: 80px 20px;
  }

  h1.entry-title {
    font-size: 64px;
  }

  .post-meta {
    margin-top: 30px;
    font-size: 16px;
  }

  .post-inner {
    padding-top: 80px;
  }

  .entry-content {
    font-size: 21px;
  }

  .entry-content h2 {
    font-size: 48px;
    margin: 60px auto 30px;
  }

  .site-footer .footer-inner {
    padding: 44px 0;
  }
}
