/* ==========================================================================
   Articles du blog — /experiences/<slug> (FR + EN), gabarit CMS Framer « oat8n »
   Valeurs Framer : colonne centrée de 600 px, gap 60, padding 150 px haut/bas,
   bannière 700×400 (rayon 5), texte riche --framer-paragraph-spacing 32 px.
   Framer n'a qu'une variante (desktop) pour ce gabarit : seules les tailles de
   titres changent (presets .t-h1 / .t-h2 / .t-h3 à 1199 et 809 px). Sous 760 px
   la colonne et la bannière se resserrent (marges --gutter) au lieu de déborder.
   Aucune apparition au scroll sur ces pages (docs/COMPONENTS.md §2).
   ========================================================================== */

.art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  padding: 150px var(--gutter);
}
.art__back,
.art__head,
.art__body,
.art__pager { width: 100%; max-width: 600px; }

/* « Go Back » : rangée de 25 px, texte centré verticalement. Framer la coupe (overflow hidden) mais le texte y tient :
   overflow visible pour ne pas rogner l'anneau de focus du lien (rendu identique) */
.art__back {
  display: flex;
  align-items: center;
  height: 25px;
  overflow: visible;
  white-space: pre;
}

/* En-tête : titre, date, chapô (gap 15, centrés, rgba(0,0,0,.5) pour date et chapô) */
.art__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.art__head > * { width: 100%; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
.art__meta { color: var(--c-black-50); }
.art__head .art__meta { margin-top: 0; }   /* l'espacement est le gap (annule .t-body-lg + .t-body-lg) */

/* Bannière 700×400 (ratio conservé quand l'écran est plus étroit) */
.art__banner {
  flex: none;
  width: 700px;
  max-width: 100%;
  aspect-ratio: 7 / 4;
  border-radius: var(--radius);
  overflow: hidden;
}
.art__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; }

/* ------------------------------------------------------------ texte riche */
.art__body :is(h2, p, li) { white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
/* espacements Framer : p 20 px, h2 40 px, listes et images 32 px (valeur du conteneur) */
.art__body > p:not(:first-child) { margin-top: 20px; }
.art__body > h2:not(:first-child) { margin-top: 40px; }
.art__body > :is(ol, ul, img):not(:first-child) { margin-top: 32px; }

/* listes : marqueur en position absolue, retrait de 2ch (dans la police de l'item) */
.art__steps,
.art__list { position: relative; }
.art__steps > li,
.art__list > li { counter-increment: list-item; padding-inline-start: 2ch; }   /* comme Framer (li.framer-text) : compteur explicite, fiable sur Safari */
.art__steps > li::before {
  content: counter(list-item) ".";
  position: absolute;
  inset-inline-start: 0;
  font-variant-numeric: tabular-nums;
}
.art__list > li::before { content: "•"; position: absolute; inset-inline-start: 0; }
.art__steps h3 { font-family: inherit; font-size: inherit; line-height: inherit; }

/* images du corps : pas de rayon ; 300 px (article « Airbnb ») ou pleine colonne */
.art__img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }   /* Framer : style aspect-ratio 600/400, 1290/860, 1500/1000 */
.art__img--sm { width: 300px; }

/* crédit photo sous une image (<p class="art__credit">Photo : Prénom Nom / Unsplash</p>) : légende discrète, collée à l'image */
.art__body > p.art__credit { margin-top: 8px; font-size: 13px; line-height: 1.4em; color: var(--c-black-50); }

/* ------------------------------------------ lien vers l'autre article */
/* Framer gardait ce libellé sur une ligne (white-space: pre). Les titres des articles réécrits le 2026-10-04 dépassent
   les 600 px de la colonne : le libellé passe à la ligne au lieu de déborder (rendu identique quand il tient). */
.art__pager { display: flex; align-items: center; }
.art__pager--next { justify-content: flex-end; }
.art__pager p { min-width: 0; text-wrap: balance; }   /* espace insécable avant › / après ‹ dans les pages */
.art__pager--next p { text-align: right; }

@media (max-width: 809px) {
  /* Framer garde « Go Back » sur une ligne (white-space: pre) : ici il passe à la ligne plutôt que de déborder */
  .art__back { white-space: normal; }
}
