/* Le blog Pixir (généré par outils/blog/generer.js). S'appuie sur /style.css (tokens, en-tête, boutons, pied). */

.page-blog main { position: relative; z-index: 1; padding-top: 68px; }
.page-blog .entete { background: rgba(245, 246, 250, .86); }
.page-blog .menu a[aria-current="page"] { color: var(--encre); font-weight: 700; }

/* ------------------------------------------------------------------ Accueil du blog */
.blog-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.blog-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); max-width: 16ch; margin-inline: auto; }
.blog-hero .souligne { color: var(--accent-fonce); background: linear-gradient(transparent 82%, rgba(255, 107, 44, .35) 82%); padding-inline: .05em; }
.blog-hero-texte { max-width: 56ch; margin: 18px auto 0; font-size: 1.15rem; color: var(--doux); }
.blog-hero-theme { text-align: left; }
.blog-hero-theme h1 { margin-inline: 0; max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.blog-hero-theme .blog-hero-texte { margin-inline: 0; }
.blog-hero-theme .themes { justify-content: flex-start; }
.blog-hero .kicker { justify-content: center; }
.blog-hero-theme .kicker { justify-content: flex-start; }

.recherche-blog { position: relative; display: flex; align-items: center; max-width: 620px; margin: 32px auto 0; }
.recherche-blog > .ico { position: absolute; left: 22px; width: 20px; height: 20px; color: var(--doux); pointer-events: none; }
.recherche-blog input { width: 100%; min-height: 60px; padding: 0 130px 0 56px; border-radius: 999px; border: 1.5px solid var(--bord-fort); background: #fff; font: 500 1.02rem var(--police); color: var(--encre); box-shadow: var(--ombre); transition: border-color var(--duree), box-shadow var(--duree); }
.recherche-blog input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 5px rgba(15, 27, 51, .08), var(--ombre); }
.recherche-compte { position: absolute; right: 22px; font: 500 .8rem var(--mono); color: var(--doux); }
.themes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.theme { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--bord); color: var(--encre); font-weight: 600; font-size: .94rem; text-decoration: none; box-shadow: var(--ombre-s); transition: transform var(--duree) var(--ease), border-color var(--duree), box-shadow var(--duree); }
.theme .ico { width: 17px; height: 17px; color: var(--c); }
.theme span { font: 500 .74rem var(--mono); color: var(--doux); background: var(--fond); padding: 2px 7px; border-radius: 999px; }
.theme:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: var(--ombre); }
.theme.actif { background: var(--encre); color: #fff; border-color: var(--encre); }
.theme.actif .ico { color: #ffb08c; }

.blog-section { padding: clamp(28px, 4vw, 48px) 0; }
.blog-section-titre { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 8px; }
.theme-section { border-top: 1px solid var(--bord); }
.theme-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 26px; }
.theme-tete p { margin: 0; color: var(--doux); max-width: 70ch; }
.theme-pastille { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); flex: none; }
.theme-pastille .ico { width: 21px; height: 21px; }
.blog-hero-theme .kicker .theme-pastille { width: 30px; height: 30px; border-radius: 9px; }
.blog-hero-theme .kicker .theme-pastille .ico { width: 16px; height: 16px; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--encre); text-decoration: none; white-space: nowrap; }
.lien-fleche .ico { width: 18px; height: 18px; transition: transform var(--duree) var(--ease); }
.lien-fleche:hover .ico { transform: translateX(4px); }

/* Cartes d'articles */
.grille-cartes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grille-cartes-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.carte-article { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre-s); transition: transform .35s var(--ease-2), box-shadow .35s var(--ease-2), border-color .35s; }
.carte-article:hover { transform: translateY(-5px); box-shadow: var(--ombre); border-color: var(--bord-fort); }
.carte-lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.carte-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--encre); }
.carte-image .couverture { width: 100%; height: 100%; transition: transform .6s var(--ease-2); }
.carte-article:hover .couverture { transform: scale(1.04); }
.carte-corps { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.carte-corps h3 { font-size: 1.14rem; line-height: 1.25; margin: 0; }
.carte-corps p { margin: 0; }
.carte-resume { color: var(--doux); font-size: .94rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 .74rem var(--mono); color: var(--doux); }
.carte-suite { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: var(--encre); }
.carte-suite .ico { width: 16px; height: 16px; transition: transform var(--duree) var(--ease); }
.carte-article:hover .carte-suite .ico { transform: translateX(4px); }
.puce-cat { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 75%, #0f1b33); font: 600 .72rem var(--police); letter-spacing: .01em; text-decoration: none; }
.puce-cat-grande { padding: 7px 14px; font-size: .82rem; margin-bottom: 18px; }
.puce-cat-grande .ico { width: 15px; height: 15px; }

.grille-une { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .grille-une { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; }
  .grille-une .carte-grande { grid-row: 1 / 3; }
  .grille-une .carte-grande .carte-image { aspect-ratio: 16 / 10; }
  .grille-une .carte-grande h3 { font-size: 1.6rem; }
  .grille-une .carte-article:not(.carte-grande) .carte-lien { flex-direction: row; }
  .grille-une .carte-article:not(.carte-grande) .carte-image { width: 42%; aspect-ratio: auto; flex: none; }
}
.resultats-recherche { padding-block: 24px 40px; }
.aucun { color: var(--doux); }
.recherche-active #a-la-une, .recherche-active .theme-section { display: none; }

/* ------------------------------------------------------------------ Article */
.progression-lecture { position: fixed; top: 68px; left: 0; right: 0; height: 3px; z-index: 49; pointer-events: none; }
.progression-lecture i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), #ff9a66); }
.article-tete { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 7%, var(--fond)), var(--fond)); border-bottom: 1px solid var(--bord); }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--doux); margin-bottom: 22px; }
.fil a { color: var(--doux); text-decoration: none; }
.fil a:hover { color: var(--encre); text-decoration: underline; }
.article-tete-grille { display: grid; gap: 28px; align-items: center; }
.article-tete h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 22ch; }
.article-chapo { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--texte); max-width: 60ch; line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: .9rem; color: var(--doux); }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .ico { width: 16px; height: 16px; }
.article-couverture { border-radius: var(--rayon-xl); overflow: hidden; box-shadow: var(--ombre-l); aspect-ratio: 16 / 10; background: var(--encre); }
.article-couverture .couverture { width: 100%; height: 100%; }
@media (min-width: 960px) { .article-tete-grille { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
@media (max-width: 959px) { .article-couverture { display: none; } }

.article-grille { display: grid; gap: 40px; padding-block: clamp(32px, 5vw, 64px); }
@media (min-width: 1040px) { .article-grille { grid-template-columns: 250px minmax(0, 720px); justify-content: center; gap: 64px; } }
.sommaire-boite { position: sticky; top: 96px; display: grid; gap: 26px; }
.sommaire-titre { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-bottom: 10px; }
.sommaire-details > summary { list-style: none; cursor: default; pointer-events: none; }
.sommaire-details > summary::-webkit-details-marker { display: none; }
.sommaire ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--bord); }
.sommaire li a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--doux); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: color var(--duree), border-color var(--duree); }
.sommaire li a:hover { color: var(--encre); }
.sommaire li a.actif { color: var(--encre); font-weight: 700; border-left-color: var(--accent); }
.partage-boutons { display: flex; gap: 8px; }
.partage-bouton { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bord); background: #fff; color: var(--encre); cursor: pointer; transition: border-color var(--duree), transform var(--duree) var(--ease); }
.partage-bouton:hover { border-color: var(--encre); transform: translateY(-2px); }
.partage-bouton .ico { width: 18px; height: 18px; }
@media (max-width: 1039px) {
  .sommaire-boite { position: static; padding: 20px; border-radius: var(--rayon-l); background: #fff; border: 1px solid var(--bord); }
  .sommaire-details > summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; }
  .sommaire-details > summary::after { content: "+"; font: 700 1.2rem var(--police); color: var(--encre); }
  .sommaire-details[open] > summary::after { content: "\2212"; }
  .sommaire-details[open] > summary { margin-bottom: 10px; }
}

.article-corps { min-width: 0; font-size: 1.08rem; line-height: 1.78; color: var(--texte); }
.article-corps > p:first-child { font-size: 1.14rem; }
.article-corps h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 2.1em 0 .6em; scroll-margin-top: 96px; }
.article-corps h3 { font-size: 1.22rem; margin: 1.7em 0 .5em; scroll-margin-top: 96px; }
.article-corps p { margin: 0 0 1.15em; }
.article-corps a { color: var(--encre); text-decoration: underline; text-decoration-color: rgba(255, 107, 44, .6); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color var(--duree); }
.article-corps a:hover { text-decoration-color: var(--accent); }
.article-corps ul, .article-corps ol { margin: 0 0 1.3em; padding-left: 1.3em; display: grid; gap: .45em; }
.article-corps ul li::marker { color: var(--accent); }
.article-corps ol li::marker { color: var(--accent-fonce); font-weight: 700; font-family: var(--mono); }
.article-corps ul.liste-cases { list-style: none; padding-left: 0; }
.article-corps ul.liste-cases li { position: relative; padding-left: 2em; }
.article-corps ul.liste-cases li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15em; height: 1.15em; border: 2px solid var(--accent); border-radius: 5px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.article-corps strong { color: var(--encre); }
.encadre { margin: 1.8em 0; padding: 20px 24px; border-radius: var(--rayon); background: var(--accent-fond); border: 1px solid rgba(255, 107, 44, .25); }
.encadre p { margin: 0; }
.encadre-titre { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--accent-fonce); margin-bottom: 6px !important; font-size: .98rem; }
.encadre-titre .ico { width: 18px; height: 18px; }
.tableau-defile { overflow-x: auto; margin: 1.6em 0; border-radius: var(--rayon); border: 1px solid var(--bord); background: #fff; }
.article-corps table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.5; min-width: 520px; }
.article-corps th, .article-corps td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bord); }
.article-corps thead th { background: var(--encre); color: #fff; font-weight: 700; font-size: .9rem; }
.article-corps tbody th { color: var(--encre); font-weight: 700; }
.article-corps tbody tr:last-child th, .article-corps tbody tr:last-child td { border-bottom: 0; }
.article-corps tbody tr:nth-child(even) { background: var(--fond); }

.action { display: grid; gap: 18px; align-items: center; margin: 2.2em 0; padding: 26px 28px; border-radius: var(--rayon-l); background: linear-gradient(135deg, var(--nuit), var(--nuit-2)); color: #d7deea; box-shadow: var(--ombre); }
.action p { margin: 0; font-size: .98rem; line-height: 1.6; }
.action-kicker { font: 500 .72rem var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: #ffb08c; margin-bottom: 6px !important; }
.action-titre { font-family: var(--police-titre); font-weight: 800; font-size: 1.3rem !important; line-height: 1.2 !important; color: #fff; margin-bottom: 8px !important; }
.action .bouton { justify-self: start; text-decoration: none; }
.action-demo { background: linear-gradient(135deg, #fff, var(--accent-fond)); color: var(--texte); border: 1px solid rgba(255, 107, 44, .25); }
.action-demo .action-titre { color: var(--encre); }
.action-demo .action-kicker { color: var(--accent-fonce); }
@media (min-width: 700px) { .action { grid-template-columns: 1fr auto; } .action .bouton { justify-self: end; } }

.faq { display: grid; gap: 10px; margin: 1em 0 1.6em; }
.faq details { border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; transition: border-color var(--duree), box-shadow var(--duree); }
.faq details[open] { border-color: var(--bord-fort); box-shadow: var(--ombre-s); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 700; color: var(--encre); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq-fleche { width: 18px; height: 18px; transform: rotate(90deg); transition: transform var(--duree) var(--ease); flex: none; color: var(--doux); }
.faq details[open] .faq-fleche { transform: rotate(-90deg); }
.faq-reponse { padding: 0 20px 16px; font-size: 1rem; }
.faq-reponse p:last-child, .faq-reponse ul:last-child { margin-bottom: 0; }
.article-note { margin-top: 2.4em !important; padding-top: 18px; border-top: 1px solid var(--bord); font-size: .88rem; color: var(--doux); line-height: 1.6; }

.liees { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--bord); background: color-mix(in srgb, var(--panneau) 55%, var(--fond)); }
.liees h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 24px; }

/* ------------------------------------------------------------------ Bas de page */
.blog-final { position: relative; z-index: 1; padding: clamp(48px, 7vw, 88px) 0; background: radial-gradient(60% 90% at 85% 10%, rgba(255, 107, 44, .22), transparent 60%), linear-gradient(135deg, var(--nuit), var(--nuit-2)); color: #d7deea; }
.blog-final-contenu { display: grid; gap: 28px; align-items: center; }
.blog-final h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
.blog-final p { max-width: 56ch; margin: 0; }
.blog-final .kicker-clair { color: #ffb08c; }
.blog-final .pix i { background: #fff; opacity: 1; transform: none; }
.blog-final .pix i:nth-child(2) { background: var(--accent); }
.blog-final-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .blog-final-contenu { grid-template-columns: 1.4fr auto; } }
@media (min-width: 900px) { .pied-grille-blog { grid-template-columns: 1.3fr 1fr 1.4fr 1.2fr; } }

@media (prefers-reduced-motion: reduce) {
  .carte-article, .carte-article:hover, .couverture, .theme, .theme:hover { transition: none !important; transform: none !important; }
}
