/* GoodWebsites.fr — blog (BLOG-FR-01, 13.10.2026). Charte du .fr : fond blanc, dégradés rose pâle, encre #1A1418, rose #C4184A. */

/* Passage animé de la carte à l'article (Chrome/Edge 126+, Safari 18.2+ ; ailleurs : navigation normale) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

.bf { --bf-ink: #1A1418; --bf-rose: #C4184A; --bf-rose2: #9E1039; --bf-doux: #5B4F55; --bf-pale: #FDF0F4; --bf-trait: rgba(26, 20, 24, .12);
  --bf-titre: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--bf-ink); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: clip; background: #fff; }
.bf *, .bf *::before, .bf *::after { box-sizing: border-box; min-width: 0; }
.bf-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.bf-in--etroit { max-width: 860px; }
.bf a:focus-visible, .bf summary:focus-visible, .bf button:focus-visible { outline: 3px solid var(--bf-rose); outline-offset: 3px; border-radius: 6px; }

.bf-ariane { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--bf-doux); margin: 0 0 22px; }
.bf-ariane a { color: var(--bf-doux); text-decoration: underline; text-underline-offset: 3px; }
.bf-ariane a:hover { color: var(--bf-rose); }
.bf-ariane [aria-hidden] { opacity: .5; }
.bf-sur { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bf-rose); margin: 0 0 14px; }
.bf h1 { font-family: var(--bf-titre); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(34px, 5vw, 58px); margin: 0; text-wrap: balance; color: var(--bf-ink); }
.bf-chapeau { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--bf-doux); max-width: 46em; margin: 18px 0 0; text-wrap: pretty; }
.bf-chapeau a { color: var(--bf-rose); font-weight: 600; }

/* ---------------------------------------------------------------- liste */
.bf-liste__tete { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px);
  background: radial-gradient(110% 120% at 90% 0, rgba(226, 62, 98, .12), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #FFF 0, #FFF7FA 100%); }
.bf-une { margin: clamp(8px, 2vw, 24px) 0 clamp(32px, 4.5vw, 52px); }
.bf-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: clamp(20px, 2.4vw, 32px); margin: 0 0 clamp(56px, 7vw, 96px); }

/* ---------------------------------------------------------------- carte (la même pour tous les articles) */
.bf-carte { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--bf-trait); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(26, 20, 24, .04), 0 10px 30px -18px rgba(26, 20, 24, .25);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.bf-carte:hover { transform: translateY(-4px); border-color: rgba(196, 24, 74, .35); box-shadow: 0 2px 6px rgba(26, 20, 24, .05), 0 24px 50px -24px rgba(196, 24, 74, .38); }
.bf-carte__couv { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bf-pale); }
.bf-carte__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bf-carte:hover .bf-carte__img { transform: scale(1.045); }
.bf-carte__vide { display: block; width: 100%; height: 100%; background: linear-gradient(120deg, #FDF0F4, #F7E2EA); }
.bf-carte__corps { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.bf-carte__cat { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bf-rose); }
.bf-carte__titre { font-family: var(--bf-titre); font-weight: 800; font-size: 19px; line-height: 1.28; letter-spacing: -.015em; text-wrap: balance; }
.bf-carte__extrait { font-size: 15px; line-height: 1.6; color: var(--bf-doux); }
.bf-carte__pied { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; font-size: 13.5px; color: var(--bf-doux); }
.bf-carte__lire { font-weight: 700; color: var(--bf-rose); white-space: nowrap; }
.bf-carte__lire span { display: inline-block; transition: transform .3s; }
.bf-carte:hover .bf-carte__lire span { transform: translateX(4px); }
.bf-carte--une { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 26px; }
.bf-carte--une .bf-carte__couv { aspect-ratio: auto; min-height: 340px; }
.bf-carte--une .bf-carte__corps { padding: clamp(24px, 3.4vw, 44px); justify-content: center; gap: 14px; }
.bf-carte--une .bf-carte__titre { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.bf-carte--une .bf-carte__extrait { font-size: 16.5px; }
@media (max-width: 820px) {
  .bf-carte--une { grid-template-columns: 1fr; border-radius: 22px; }
  .bf-carte--une .bf-carte__couv { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---------------------------------------------------------------- « parler à un humain » */
.bf-appel { padding: 0 24px clamp(56px, 7vw, 96px); }
.bf-appel__in { max-width: 1132px; margin: 0 auto; border-radius: 28px; padding: clamp(26px, 4.5vw, 56px); border: 1px solid rgba(196, 24, 74, .18);
  background: radial-gradient(90% 140% at 100% 0, rgba(226, 62, 98, .18), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #FFF5F8, #FDEBF1); }
.bf-appel__sur { font-weight: 700; color: var(--bf-rose); margin: 0 0 8px; font-size: 15px; }
.bf-appel__titre { font-family: var(--bf-titre); font-weight: 800; letter-spacing: -.025em; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; margin: 0; max-width: 20ch; color: var(--bf-ink); }
.bf-appel__texte { font-size: 17px; line-height: 1.65; color: var(--bf-doux); max-width: 44em; margin: 14px 0 0; }
.bf-appel__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: background .2s, transform .2s, border-color .2s, color .2s; }
.bf-btn--plein { background: var(--bf-ink); color: #fff; }
.bf-btn--plein:hover { background: var(--bf-rose); color: #fff; transform: translateY(-1px); }
.bf-btn--wa { background: #1E9E57; color: #fff; }
.bf-btn--wa:hover { background: #178048; color: #fff; }
.bf-btn--trait { border: 1px solid rgba(26, 20, 24, .25); color: var(--bf-ink); background: rgba(255, 255, 255, .8); }
.bf-btn--trait:hover { border-color: var(--bf-rose); color: var(--bf-rose); }
.bf-appel__note { margin: 18px 0 0; font-size: 14.5px; color: var(--bf-doux); }
.bf-appel__note a { color: var(--bf-rose); font-weight: 600; }
@media (max-width: 520px) { .bf-btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- article */
.bf-progression { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000; pointer-events: none; }
.bf-progression span { display: block; height: 100%; background: linear-gradient(90deg, #9E1039, #C4184A 55%, #E23E62); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .bf-progression span { animation: bfProg linear both; animation-timeline: scroll(root); }
}
@keyframes bfProg { to { transform: scaleX(1); } }
.bf-art__tete { padding: clamp(28px, 4.5vw, 64px) 0 clamp(26px, 3.2vw, 40px);
  background: radial-gradient(100% 130% at 85% 0, rgba(226, 62, 98, .11), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #FFF 0, #FFF8FA 100%); }
.bf-art h1 { font-size: clamp(31px, 4.4vw, 52px); }
.bf-art__meta { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 4px; margin: 22px 0 0; font-size: 14.5px; color: var(--bf-doux); }
.bf-art__meta span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
.bf-art__couv { margin: 0 auto clamp(32px, 4vw, 52px); }
.bf-art__couv-img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: 24px; background: var(--bf-pale); box-shadow: 0 30px 60px -36px rgba(26, 20, 24, .45); }
.bf-art__grille { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(32px, 5vw, 72px); justify-content: center; align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.bf-art__grille--seule { grid-template-columns: minmax(0, 760px); }

.bf-sommaire { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; overscroll-behavior: contain; }
.bf-sommaire__boite summary { list-style: none; cursor: pointer; font-family: var(--bf-titre); font-weight: 800; font-size: 15px; display: flex; gap: 8px; align-items: baseline; padding: 0 0 12px; border-bottom: 1px solid var(--bf-trait); }
.bf-sommaire__boite summary::-webkit-details-marker { display: none; }
.bf-sommaire__n { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12.5px; color: var(--bf-doux); }
.bf-sommaire ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: bfs; }
.bf-sommaire li { counter-increment: bfs; }
.bf-sommaire a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 8px 7px 0; font-size: 14px; line-height: 1.4; color: var(--bf-doux); text-decoration: none; transition: color .2s; }
.bf-sommaire a::before { content: counter(bfs, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; color: rgba(26, 20, 24, .35); padding-top: 2px; }
.bf-sommaire a:hover { color: var(--bf-ink); }
.bf-sommaire a.est-actif { color: var(--bf-rose); font-weight: 600; }
.bf-sommaire a.est-actif::before { color: var(--bf-rose); }
@media (max-width: 1023px) {
  .bf-art__grille { grid-template-columns: minmax(0, 760px); gap: 28px; }
  .bf-sommaire { position: static; max-height: none; overflow: visible; }
  .bf-sommaire__boite { border: 1px solid var(--bf-trait); border-radius: 16px; padding: 14px 16px; background: #FFFAFC; }
  .bf-sommaire__boite summary { border-bottom: 0; padding: 0; }
  .bf-sommaire__boite[open] summary { padding-bottom: 10px; border-bottom: 1px solid var(--bf-trait); }
  .bf-sommaire__boite summary::after { content: "+"; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--bf-rose); margin-left: auto; }
  .bf-sommaire__boite[open] summary::after { content: "–"; }
}

.bf-corps { font-size: 18px; line-height: 1.78; color: #2A2226; }
.bf-corps h2 { font-family: var(--bf-titre); font-weight: 800; letter-spacing: -.02em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--bf-ink); margin: 2.1em 0 .7em; scroll-margin-top: 96px; text-wrap: balance; }
.bf-corps > h2:first-child { margin-top: 0; }
.bf-corps h3 { font-family: var(--bf-titre); font-weight: 700; font-size: 21px; line-height: 1.3; margin: 1.7em 0 .5em; scroll-margin-top: 96px; color: var(--bf-ink); }
.bf-corps h4 { font-size: 18px; margin: 1.5em 0 .4em; }
.bf-corps p { margin: 0 0 1.15em; text-wrap: pretty; }
.bf-corps a { color: var(--bf-rose2); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(196, 24, 74, .35); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: text-decoration-color .2s, color .2s; }
.bf-corps a:hover { color: var(--bf-rose); text-decoration-color: currentColor; }
.bf-corps ul, .bf-corps ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.bf-corps li { margin: 0 0 .45em; }
.bf-corps li::marker { color: var(--bf-rose); }
.bf-corps blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--bf-rose); background: var(--bf-pale); border-radius: 0 14px 14px 0; font-weight: 500; }
.bf-corps hr { border: 0; height: 1px; background: var(--bf-trait); margin: 2.4em 0; }
.bf-corps figure, .bf-corps__fig { margin: 1.8em 0 2.1em; }
.bf-corps figcaption { font-size: 14px; color: var(--bf-doux); margin-top: 10px; }
.bf-corps img { display: block; max-width: 100%; height: auto; border-radius: 18px; background: var(--bf-pale); }
.bf-corps__img { width: 100%; }
.bf-corps p:has(> em:only-child) { font-size: 14.5px; color: var(--bf-doux); }
@media (max-width: 600px) { .bf-corps { font-size: 17px; line-height: 1.72; } .bf-corps img { border-radius: 14px; } }

.bf-art__fin { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 2.4em; padding-top: 22px; border-top: 1px solid var(--bf-trait); }
.bf-lien-retour { font-weight: 700; color: var(--bf-ink); text-decoration: none; font-size: 15.5px; }
.bf-lien-retour:hover { color: var(--bf-rose); }
.bf-partage { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-partage__btn { appearance: none; border: 1px solid var(--bf-trait); background: #fff; border-radius: 999px; padding: 9px 16px; font: 600 14px/1.2 'Inter', system-ui, sans-serif; color: var(--bf-ink); cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s; }
.bf-partage__btn:hover { border-color: var(--bf-rose); color: var(--bf-rose); }
.bf-corps .bf-partage__btn, .bf-corps .bf-lien-retour { text-decoration: none; color: var(--bf-ink); }
.bf-corps .bf-partage__btn:hover, .bf-corps .bf-lien-retour:hover { color: var(--bf-rose); }

.bf-aussi { padding: 0 0 clamp(16px, 3vw, 32px); }
.bf-aussi h2 { font-family: var(--bf-titre); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; margin: 0 0 24px; color: var(--bf-ink); }

/* ---------------------------------------------------------------- repli (si inc/layout.php manquait) */
.bf-repli { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid rgba(26, 20, 24, .1); font-family: 'Inter', system-ui, sans-serif; }
.bf-repli nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.bf-repli a { color: #1A1418; text-decoration: none; font-weight: 600; font-size: 15px; }
.bf-repli-pied { padding: 28px 24px; text-align: center; font: 14px/1.6 'Inter', system-ui, sans-serif; color: #5B4F55; border-top: 1px solid rgba(26, 20, 24, .1); }
.bf-repli-pied a { color: #C4184A; }
