/* ============================================================
   MAQUETTE, GROUPE ÉDITORIAL (24/09/2026) : blog.php, article.php,
   faq.php, faq-theme.php. Complète assets/style/socle.css
   (variables --rf-*) et l'ancien fichier commun de maquette (fondu dans assets/style/socle.css et les feuilles de page).
   Classes préfixées bd-edi-, plus les classes d'origine des articles
   du blog (key-figure, steps-list, faq-section, summary-box,
   article-sources, article-table, article-note, highlight-cell,
   is-supprime, article-cta, related-*) reprises telles quelles à
   l'extraction et habillées ici, sous .bd-edi-corps uniquement :
   rien ne fuit sur le reste de la maquette.
   ============================================================ */

/* 1. Blog : la grille de cartes */

.bd-edi-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1024px) {
  .bd-edi-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .bd-edi-grille { grid-template-columns: 1fr; }
}

.bd-edi-carte > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--rf-blanc);
  border: 1px solid var(--rf-ligne);
  border-radius: var(--rf-rayon);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--rf-sortie), box-shadow 0.25s ease;
}

.bd-edi-carte > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(11, 18, 32, 0.28);
}

.bd-edi-carte__visuel {
  aspect-ratio: 16 / 9;
  background: var(--rf-accent-doux);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bd-edi-carte__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bd-edi-carte__initiale {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rf-accent);
}

.bd-edi-carte__corps {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bd-edi-carte__meta {
  font-size: var(--rf-t-petit);
  color: var(--rf-gris-clair);
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bd-edi-carte__titre {
  font-size: var(--rf-t-inter);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--rf-encre);
}

.bd-edi-carte__desc {
  font-size: var(--rf-t-petit);
  color: var(--rf-gris);
  margin: 0 0 8px;
  max-width: none;
  flex: 1;
}

.bd-edi-carte .rf-lien-fleche {
  font-size: var(--rf-t-petit);
  margin-top: auto;
}

/* 2. Article : sommaire + colonne de lecture */

.bd-edi-meta {
  font-size: var(--rf-t-petit);
  color: var(--rf-gris-clair);
  margin: 0 0 24px;
  display: flex;
  gap: 8px;
}

.bd-edi-mise-en-page {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .bd-edi-mise-en-page { grid-template-columns: 1fr; }
}

.bd-edi-sommaire {
  position: sticky;
  top: 24px;
  padding: 20px;
  background: var(--rf-blanc);
  border: 1px solid var(--rf-ligne);
  border-radius: var(--rf-rayon);
}

@media (max-width: 900px) {
  .bd-edi-sommaire { position: static; }
}

.bd-edi-sommaire__titre {
  font-size: var(--rf-t-petit);
  font-weight: 600;
  color: var(--rf-gris-clair);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bd-edi-sommaire ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bd-edi-sommaire a {
  font-size: var(--rf-t-petit);
  color: var(--rf-gris);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.bd-edi-sommaire a:hover {
  color: var(--rf-lien);
}

/* 3. Le corps de l'article : classes reprises de l'original, habillées ici */

.bd-edi-corps {
  max-width: 66ch;
  color: var(--rf-gris);
}

.bd-edi-corps h2 {
  margin-top: 48px;
}

.bd-edi-corps h3 {
  margin-top: 32px;
  color: var(--rf-encre);
}

.bd-edi-corps p,
.bd-edi-corps ul,
.bd-edi-corps ol {
  margin: 0 0 20px;
  max-width: none;
}

.bd-edi-corps ul,
.bd-edi-corps ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.bd-edi-corps a {
  color: var(--rf-lien);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.bd-edi-corps strong {
  color: var(--rf-encre);
}

.bd-edi-corps sup a {
  text-decoration: none;
  font-size: 0.75em;
}

.bd-edi-corps .bd-pub-marque-env {
  margin: 40px 0;
}

/* Chiffre clé mis en avant */
.bd-edi-corps .key-figure {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  margin: 0 0 24px;
  background: var(--rf-accent-doux);
  border-radius: var(--rf-rayon);
}

.bd-edi-corps .key-figure__icon {
  flex: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rf-accent);
  min-width: 2.5em;
}

.bd-edi-corps .key-figure__text {
  margin: 0;
}

/* Note courte, sourcée */
.bd-edi-corps .article-note {
  font-size: var(--rf-t-petit);
  color: var(--rf-gris-clair);
  font-style: italic;
  border-left: 2px solid var(--rf-ligne);
  padding-left: 16px;
  margin: 0 0 24px;
}

/* Étapes numérotées */
.bd-edi-corps .steps-list {
  margin: 0 0 24px;
  display: grid;
  gap: 20px;
  padding: 0;
}

.bd-edi-corps .step-item {
  display: flex;
  gap: 16px;
}

.bd-edi-corps .step-item__num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--rf-encre);
  color: var(--rf-blanc);
  font-weight: 700;
  font-size: var(--rf-t-petit);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bd-edi-corps .step-item__content {
  padding-top: 4px;
}

/* Tableau : classes du socle */
.bd-edi-corps .article-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}

.bd-edi-corps .article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--rf-t-petit);
}

.bd-edi-corps .article-table th,
.bd-edi-corps .article-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--rf-ligne);
  vertical-align: top;
}

.bd-edi-corps .article-table thead th {
  color: var(--rf-gris-clair);
  font-weight: 600;
  white-space: nowrap;
}

.bd-edi-corps .article-table .highlight-cell {
  font-weight: 600;
  color: var(--rf-encre);
}

.bd-edi-corps .article-table tr.is-supprime td {
  color: var(--rf-gris-clair);
  text-decoration: line-through;
}

/* Encart d'appel intermédiaire : un lien, pas un second bouton plein */
.bd-edi-corps .article-cta {
  padding: 24px;
  margin: 0 0 24px;
  background: var(--rf-blanc);
  border: 1px solid var(--rf-ligne);
  border-radius: var(--rf-rayon);
}

.bd-edi-corps .article-cta h3 {
  margin: 0 0 8px;
}

.bd-edi-corps .article-cta p {
  margin: 0 0 12px;
}

.bd-edi-corps .article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--rf-encre);
  text-decoration: none;
}

.bd-edi-corps .article-cta__btn svg {
  width: 16px;
  height: 16px;
}

/* FAQ en fin d'article : dépliée, pas d'accordéon replié */
.bd-edi-corps .faq-section {
  margin: 0 0 24px;
}

.bd-edi-corps .faq-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.bd-edi-corps .faq-question {
  all: unset;
  display: block;
  font-size: var(--rf-t-inter);
  font-weight: 600;
  color: var(--rf-encre);
  cursor: default;
}

.bd-edi-corps .faq-question-icon,
.bd-edi-corps .faq-question svg {
  display: none;
}

.bd-edi-corps .faq-answer-inner {
  padding-top: 8px;
}

.bd-edi-corps .faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* Résumé */
.bd-edi-corps .summary-box {
  padding: 24px;
  margin: 0 0 24px;
  background: #F8FAFC;
  border-radius: var(--rf-rayon);
}

.bd-edi-corps .summary-box h2 {
  margin-top: 0;
}

.bd-edi-corps .summary-box p:last-child {
  margin-bottom: 0;
}

/* Sources, en bas et en petit */
.bd-edi-corps .article-sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rf-ligne);
}

.bd-edi-corps .article-sources__title {
  font-size: var(--rf-t-petit);
  font-weight: 600;
  color: var(--rf-gris-clair);
  margin-bottom: 12px;
}

.bd-edi-corps .article-sources ol,
.bd-edi-corps .article-sources ul {
  font-size: var(--rf-t-petit);
  padding-left: 18px;
  margin: 0;
}

/* 4. Articles liés */

.bd-edi-liees {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .bd-edi-liees { grid-template-columns: 1fr; }
}

.bd-edi-liees a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px;
  background: var(--rf-blanc);
  border: 1px solid var(--rf-ligne);
  border-radius: var(--rf-rayon);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--rf-sortie);
}

.bd-edi-liees a:hover {
  transform: translateY(-3px);
}

.bd-edi-liees__cat {
  font-size: var(--rf-t-petit);
  font-weight: 600;
  color: var(--rf-lien);
}

.bd-edi-liees__titre {
  font-weight: 600;
  color: var(--rf-encre);
  line-height: 1.3;
}

.bd-edi-liees__temps {
  font-size: var(--rf-t-petit);
  color: var(--rf-gris-clair);
  margin-top: auto;
}

/* Réponses de FAQ sur plusieurs paragraphes (rf-faq__item dd du socle : margin 0) */
.rf-faq__item dd p {
  margin: 0 0 12px;
}

.rf-faq__item dd p:last-child {
  margin-bottom: 0;
}

/* 5. FAQ : les thèmes */

.bd-edi-themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 720px) {
  .bd-edi-themes { grid-template-columns: 1fr; }
}

.bd-edi-theme {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--rf-blanc);
  border: 1px solid var(--rf-ligne);
  border-radius: var(--rf-rayon);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--rf-sortie), box-shadow 0.25s ease;
}

.bd-edi-theme:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(11, 18, 32, 0.28);
}

.bd-edi-theme__titre {
  font-size: var(--rf-t-inter);
  font-weight: 600;
  color: var(--rf-encre);
}

.bd-edi-theme__desc {
  font-size: var(--rf-t-petit);
  color: var(--rf-gris);
}

.bd-edi-theme__n {
  font-size: var(--rf-t-petit);
  color: var(--rf-accent);
  font-weight: 600;
  margin-top: auto;
}

/* Un conteneur grid/flex masqué par [hidden] reste caché (règle du 24/09/2026). */
.bd-edi-grille[hidden],
.bd-edi-themes[hidden],
.bd-edi-liees[hidden] {
  display: none;
}

/* 6. Articles : classes reprises d'attributs style="" hérités des
   originaux (audit du 25/09/2026, portage de la maquette). Même rendu que
   l'attribut en ligne qu'elles remplacent (marge/couleur/taille de police
   uniquement ; les autres propriétés restent celles du socle .bd-edi-corps). */

.bd-edi-corps .bd-art-retenir {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.bd-edi-corps .bd-art-note-source {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.9rem;
}
