/* Article Conseils et actus — design 2027 (infos/page-2027.phtml).
   Typographie de base, listes, tableaux et boutons : contenu.css (.contenu-2027-corps).
   Ici : en-tête (titre, date, chapeau, image), colonne de lecture + encart, et les classes
   du HTML saisi en back-office (chapeau, signature, important, bloc-note, cadre, images flottantes…). */

/* En-tête */
.article-entete { background: linear-gradient(180deg, var(--brand-tint) 0%, var(--paper) 100%); }
.article-entete .wrap { padding-block: var(--entete-haut) 36px; }
.article-entete .wrap.avec-image { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.article-entete h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; font-weight: 800; margin-top: 12px; max-width: 30ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.article-chapeau { margin: 18px 0 0; font-size: var(--fs-md); line-height: 1.6; font-weight: 600; color: var(--ink); max-width: 66ch; }
.article-image { margin: 0; }
.article-image img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--mist); }

/* Colonne de lecture et encart */
.article-contenu { padding-block: 36px 56px; }
.article-grille { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article-corps { margin-top: 0; max-width: 720px; }
.article-cote { position: sticky; top: 116px; display: grid; gap: 14px; }
.article-appel { gap: 12px; }
.article-appel h2 { font-size: var(--fs-md); font-weight: 800; line-height: 1.3; }
.article-appel .btn { width: 100%; }
.article-retour { margin: 0; font-size: var(--fs-sm); font-weight: 600; }

/* Contenu saisi en back-office */
.article-corps > :first-child, .article-corps article > :first-child { margin-top: 0; }
.article-corps article { display: block; }
.article-corps h2 { font-size: var(--fs-lg); margin: 32px 0 10px; }
.article-corps h3, .article-corps .h3 { font-size: var(--fs-md); margin: 24px 0 8px; }
.article-corps p > strong:only-child { display: inline-block; margin-top: 10px; font-family: var(--font-display); font-size: var(--fs-md); }
.article-corps .chapeau { font-weight: 600; font-size: var(--fs-md); }
.article-corps .signature { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-style: italic; font-weight: 600; color: var(--ink-soft); }
.article-corps .date { color: var(--ink-soft); font-size: var(--fs-sm); }
.article-corps .center, .article-corps .text-center { text-align: center; }

/* Images : flottantes à droite ou à gauche sur grand écran, pleine largeur sur mobile */
.article-corps img { border-radius: var(--r-md); }
.article-corps img.right, .article-corps img.img-right, .article-corps .img-right { float: right; max-width: 45%; margin: 4px 0 16px 24px; }
.article-corps img.left, .article-corps img.img-left, .article-corps .img-left { float: left; max-width: 45%; margin: 4px 24px 16px 0; }
.article-corps img.img-center, .article-corps .img-center, .article-corps img.center { display: block; float: none; margin: 18px auto; }
.article-corps .full-width, .article-corps img.full-width { width: 100%; max-width: 100%; float: none; }
.article-corps figure { margin: 18px 0; }
.article-corps figcaption, .article-corps .legend { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 6px; }
.article-corps h2, .article-corps h3, .article-corps .bloc-note, .article-corps .cadre, .article-corps .important, .article-corps .offres-article, .article-corps table { clear: both; }

/* Encadrés */
.article-corps .important { border-left: 4px solid var(--brand); }
.article-corps .bloc-note, .article-corps .cadre { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin: 22px 0; }
.article-corps .note-titre { font-family: var(--font-display); font-weight: 800; color: var(--brand-deep); margin-bottom: 6px; }
.article-corps .note-texte { margin: 0; }
.article-corps blockquote, .article-corps .highlight-quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--mint); font-size: var(--fs-md); font-style: italic; color: var(--ink); }
.article-corps q { font-style: italic; }
.article-corps ul.list-bullet { list-style: disc; }
.article-corps .footer-more { margin-top: 24px; font-weight: 600; }

/* Vidéos et contenus intégrés (YouTube, Brightcove) : largeur de la colonne, format 16/9 */
.article-corps iframe { max-width: 100%; border: 0; }
.article-corps iframe[src*="youtube"], .article-corps iframe[src*="brightcove"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-md); margin: 18px 0; }

/* Bloc d'offres dans l'article (à la place de l'iframe /bloc-pre-charte) */
.offres-article { margin: 14px 0 28px; }
.offres-article .cartes-offres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offres-article .carte-offre { padding: 14px; }
.offres-article .carte-offre h3 { font-size: var(--fs-sm); margin: 0; }
.offres-article .carte-offre p { margin: 0; }
.offres-article-plus { margin: 14px 0 0; }

/* Dernières offres en bas de page (articles sans bloc d'offres) */
.article-offres-fin .cartes-offres .carte-offre p { margin: 0; }

@media (max-width: 1080px) {
  .article-grille { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-cote { position: static; max-width: 720px; }
}
@media (max-width: 760px) {
  .article-entete .wrap.avec-image { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .article-image img { max-height: 240px; }
  .article-corps img.right, .article-corps img.img-right, .article-corps .img-right,
  .article-corps img.left, .article-corps img.img-left, .article-corps .img-left { float: none; display: block; max-width: 100%; margin: 16px 0; }
  .offres-article .cartes-offres { grid-template-columns: minmax(0, 1fr); }
}
