/*
Theme Name: IT Bonne Nouvelle
Theme URI: https://restaurant-italien-paris.com/
Description: Le journal de l'IT Trattoria Bonne Nouvelle. Reprend la feuille de style du site servi à la racine du domaine.
Author: IT Trattoria Bonne Nouvelle
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ittrat
*/

/* Le gros de la mise en forme vient de /theme/style.css (le site statique).
   Ici, uniquement ce qui est propre aux articles. */

.article-head { max-width: 62ch; }
.article-head h1 { font-size: var(--step-3); margin-block: .6rem 1rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  font-size: .8rem; color: var(--night-mute);
  align-items: center;
}
.article-meta a { text-decoration: none; }
.article-meta a:hover { color: var(--night-text); }

.article-photo { aspect-ratio: 16 / 9; margin-block: clamp(1.75rem, 4vw, 3rem); }

/* corps de texte : une seule colonne, lisible */
.article {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.06rem;
  line-height: 1.72;
}
.article > * + * { margin-top: 1.35em; }
.article h2 {
  font-size: var(--step-2);
  margin-top: 2.4em;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.article h3 { font-size: var(--step-1); margin-top: 2em; }
.article ul, .article ol { padding-left: 1.25em; }
.article li + li { margin-top: .5em; }
.article a { text-decoration-color: var(--chili); text-underline-offset: 3px; }
.article a:hover { color: var(--chili); }
.article strong { font-weight: 700; }
.article blockquote {
  margin-inline: 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 3px solid var(--chili);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.article figure { margin-block: 2rem; }
.article figcaption {
  font-size: .82rem; color: var(--text-mute);
  padding-top: .5rem; text-align: center;
}
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article th, .article td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); }
.article :where(pre, table) { overflow-x: auto; display: block; }

/* l'encart d'appel posé au milieu de l'article */
.cta-encart {
  margin: 2.8rem 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--chili);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: center;
  display: grid;
  gap: .55rem;
  justify-items: center;
}
.cta-encart .cta-titre {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: var(--step-1);
  letter-spacing: -.02em; line-height: 1.1;
  max-width: 24ch;
}
.cta-encart .cta-sub { font-size: .92rem; color: var(--text-soft); max-width: 46ch; }
.cta-encart .cta-row { margin-top: .7rem; }

/* pagination et navigation entre articles */
.pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding-inline: .6rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.pagination .page-numbers:hover { border-color: var(--chili); }
.pagination .current { background: var(--chili); border-color: var(--chili); color: #fff; }

.suite { display: grid; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.suite a { text-decoration: none; font-weight: 600; }
.suite a:hover { color: var(--chili); }
.suite small { font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); display: block; }

.vide { max-width: 52ch; }
