/* ==========================================================
   Like2BeGeek : styles propres aux articles du blog
   Chargés par /blog/article.php, en complément de site.css.
   ========================================================== */
/* ---------- Héros de l'article ---------- */
.article-hero h1 { font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
/* Catégories de l'article : la principale (celle qui porte l'URL) en
   premier et en plein, les secondaires en variante contour */
.cat-pill { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: .8rem; }
.cat-pill a { display: inline-block; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .9rem; border-radius: 999px; }
.cat-pill a:hover { background: var(--brand-dark); }
.cat-pill a.cat-sec { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.cat-pill a.cat-sec:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-theme="dark"] .cat-pill a.cat-sec:hover { color: #0b1830; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.hero-meta time { font-weight: 700; color: var(--ink); }
/* ---------- Zone de lecture ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); padding: 2rem 1.75rem; }
.post-hero-img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-2); margin-bottom: 1.5rem; }
/* ---------- Module GEO à onglets ---------- */
.geo-mod { margin: 1.5rem 0 1.75rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.geo-radio { position: absolute; opacity: 0; pointer-events: none; }
.geo-tabs { display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem .6rem 0; border-bottom: 1px solid var(--line); }
.geo-tab { border: 1px solid var(--line); border-bottom: none; background: var(--paper); color: var(--muted); font-size: .85rem; font-weight: 700; padding: .5rem .95rem; border-radius: 10px 10px 0 0; cursor: pointer; user-select: none; }
.geo-tab:hover { color: var(--brand); border-color: var(--brand); }
#geo-r-resume:checked ~ .geo-tabs .geo-tab-resume,
#geo-r-questions:checked ~ .geo-tabs .geo-tab-questions,
#geo-r-ia:checked ~ .geo-tabs .geo-tab-ia { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-theme="dark"] #geo-r-resume:checked ~ .geo-tabs .geo-tab-resume,
[data-theme="dark"] #geo-r-questions:checked ~ .geo-tabs .geo-tab-questions,
[data-theme="dark"] #geo-r-ia:checked ~ .geo-tabs .geo-tab-ia { color: #0b1830; }
.geo-panel { display: none; padding: 1.1rem 1.1rem 1.2rem; }
#geo-r-resume:checked ~ .geo-panel-resume,
#geo-r-questions:checked ~ .geo-panel-questions,
#geo-r-ia:checked ~ .geo-panel-ia { display: block; }
.geo-qbtns { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.geo-qbtn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .85rem; font-weight: 700; padding: .45rem .9rem; border-radius: 999px; cursor: pointer; text-align: left; user-select: none; }
.geo-qbtn:hover { border-color: var(--brand); color: var(--brand); }
.geo-answer { display: none; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: .9rem 1.1rem; margin-top: .5rem; font-size: .95rem; line-height: 1.6; }
.geo-answer .q { font-weight: 900; margin-bottom: .35rem; }
/* Puces maison : petit carré pixel façon logo, retrait confortable */
.essentiel ul, .article-body ul { list-style: none; padding-left: 0; }
.essentiel ul li, .article-body ul li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.essentiel ul li::before, .article-body ul li::before {
  content: ""; position: absolute; left: .3rem; top: .6em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--brand);
}
.article-body ul li::before { background: var(--accent); }
.essentiel { padding: 1.4rem 1.6rem !important; }
.essentiel ul { margin: 0; }
.essentiel ul li:last-child { margin-bottom: 0; }
.essentiel .ess-title { margin-bottom: .85rem !important; }
.geo-panel { padding: 1.3rem !important; }
#geo-q-0:checked ~ .geo-qbtns .geo-qbtn-0 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-0:checked ~ .geo-answer-0 { display: block; }
#geo-q-1:checked ~ .geo-qbtns .geo-qbtn-1 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-1:checked ~ .geo-answer-1 { display: block; }
#geo-q-2:checked ~ .geo-qbtns .geo-qbtn-2 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-2:checked ~ .geo-answer-2 { display: block; }
#geo-q-3:checked ~ .geo-qbtns .geo-qbtn-3 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-3:checked ~ .geo-answer-3 { display: block; }
#geo-q-4:checked ~ .geo-qbtns .geo-qbtn-4 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-4:checked ~ .geo-answer-4 { display: block; }
#geo-q-5:checked ~ .geo-qbtns .geo-qbtn-5 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-5:checked ~ .geo-answer-5 { display: block; }
#geo-q-6:checked ~ .geo-qbtns .geo-qbtn-6 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-6:checked ~ .geo-answer-6 { display: block; }
#geo-q-7:checked ~ .geo-qbtns .geo-qbtn-7 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-7:checked ~ .geo-answer-7 { display: block; }
#geo-q-8:checked ~ .geo-qbtns .geo-qbtn-8 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-8:checked ~ .geo-answer-8 { display: block; }
#geo-q-9:checked ~ .geo-qbtns .geo-qbtn-9 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-9:checked ~ .geo-answer-9 { display: block; }
#geo-q-10:checked ~ .geo-qbtns .geo-qbtn-10 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-10:checked ~ .geo-answer-10 { display: block; }
#geo-q-11:checked ~ .geo-qbtns .geo-qbtn-11 { background: var(--brand); border-color: var(--brand); color: #fff; }
#geo-q-11:checked ~ .geo-answer-11 { display: block; }
.geo-ia-intro { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.geo-ia-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.geo-ia-pills a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 700; color: var(--ink); }
.geo-ia-pills a:hover { border-color: var(--brand); color: var(--brand); }
.geo-ia-pills .ia-logo { display: inline-flex; flex: 0 0 auto; }
.geo-ia-pills .ia-logo svg { width: 18px; height: 18px; display: block; }
[data-theme="dark"] .geo-ia-pills .ia-logo svg[fill="#111111"] { fill: #e8eef9; }
/* ---------- Sommaire ---------- */
/* Sommaire repliable, fermé par défaut (balise details native) */
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 2.5rem; overflow: hidden; }
.toc > summary { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.25rem; cursor: pointer; list-style: none; user-select: none; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary:hover .toc-title { color: var(--brand-dark); }
/* Libellé du sommaire : icône de liste à puces puis intitulé, alignés */
.toc .toc-label { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.toc .toc-ico { flex: 0 0 auto; width: 17px; height: 17px; color: var(--brand); }
.toc .toc-title { font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.toc .toc-nb { font-size: .8rem; color: var(--muted); margin-right: auto; }
.toc .toc-chevron { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease; }
.toc[open] .toc-chevron { transform: rotate(-135deg); margin-top: 4px; }
.toc nav { padding: 0 1.25rem 1.1rem; border-top: 1px solid var(--line); }
.toc ol { list-style: none; margin-top: .9rem; padding: 0; }
.toc li { position: relative; font-size: .93rem; line-height: 1.45; }
.toc a { display: inline-block; color: var(--ink); font-weight: 600; transition: color .2s ease; }
/* Niveau 2 : puce carrée pixel en bleu, espacement généreux */
.toc li.lvl-2 { margin: .55rem 0; padding-left: 1.15rem; }
.toc li.lvl-2 > a { font-weight: 700; }
.toc li.lvl-2::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); transition: background-color .2s ease, transform .2s ease; }
/* Niveau 3 : sous-liste imbriquée dans son niveau 2, filet vertical de
   guidage, puce plus petite et plus claire. La hiérarchie est ainsi
   visible à l'écran comme dans la structure du document. */
.toc .toc-sub { margin: .35rem 0 .55rem; padding-left: 1.25rem; border-left: 2px solid var(--brand-soft); }
.toc .toc-sub li.lvl-3 { margin: 0; padding: .3rem 0 .3rem .95rem; font-size: .87rem; }
.toc li.lvl-3::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); opacity: .5; transition: background-color .2s ease, opacity .2s ease, transform .2s ease; }
.toc li.lvl-3 a { color: var(--muted); font-weight: 600; }
/* Niveau 3 resté au premier niveau, faute de niveau 2 avant lui */
.toc .toc-list > li.lvl-3 { margin: .35rem 0 .35rem .5rem; padding: .3rem 0 .3rem 1.5rem; border-left: 2px solid var(--brand-soft); font-size: .87rem; }
.toc .toc-list > li.lvl-3::before { left: .6rem; }
/* Filet de guidage un peu plus marqué là où color-mix est disponible.
   Placé après les règles ci-dessus pour l'emporter dans la cascade. */
@supports (color: color-mix(in srgb, red 30%, transparent)) {
  .toc .toc-sub, .toc .toc-list > li.lvl-3 { border-left-color: color-mix(in srgb, var(--brand) 32%, transparent); }
}
/* Survol : la puce passe en orange, le texte en bleu */
.toc li:hover::before { background: var(--accent); opacity: 1; transform: scale(1.15); }
.toc li:hover > a, .toc a:hover { color: var(--brand); }
/* Survoler un niveau 3 ne doit pas allumer la puce de son niveau 2 parent :
   :has n'est pas indispensable, sans lui la puce parente s'allume aussi,
   ce qui reste cosmétique */
.toc li.lvl-2:has(.toc-sub li:hover)::before { background: var(--brand); transform: none; }
/* Segmentation : chaque bloc dans sa propre boîte, comme "Pour aller plus loin" */
.article-block { margin-bottom: 1.25rem; }
.geo-block, .toc-block { padding: 0; overflow: hidden; }
.geo-block .geo-mod { margin: 0; border: none; border-radius: 0; background: transparent; }
.toc-block .toc { margin: 0; border: none; border-radius: 0; background: transparent; }
.article-intro { margin-bottom: 0; }
.share-block { padding: 1.2rem 1.5rem; }
/* ---------- Corps de l'article ---------- */
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { position: relative; font-size: 1.5rem; font-weight: 900; letter-spacing: -.01em; margin: 2.2rem 0 .8rem; padding-top: .9rem; scroll-margin-top: 5rem; }
.article-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 999px; background: var(--accent); }
.article-body h3 { font-size: 1.18rem; font-weight: 700; color: var(--brand-dark); margin: 1.6rem 0 .6rem; scroll-margin-top: 5rem; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand-dark); }
.article-body img { border-radius: 12px; box-shadow: var(--shadow-2); }
.article-body blockquote { border-left: 4px solid var(--accent); padding: .6rem 1.1rem; margin: 1.25rem 0; color: var(--muted); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.article-body thead th { background: var(--brand-soft); font-weight: 700; }
.article-body code { background: var(--brand-soft); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.article-body pre { background: var(--navy); color: #e8eef9; padding: 1rem 1.25rem; border-radius: 12px; overflow-x: auto; margin-bottom: 1rem; }
.article-body pre code { background: none; padding: 0; }
/* ---------- Graphique en barres ---------- */
.l2bg-chart { margin: 1.5rem 0; padding: 1.1rem 1.2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.l2bg-chart .bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .5rem .9rem; margin: .4rem 0; border-radius: 9px; background: var(--brand-soft); overflow: hidden; font-size: .92rem; }
.l2bg-chart .bar::before { content: ""; position: absolute; inset: 0; width: var(--v, 50%); background: var(--brand); opacity: .22; border-radius: 9px 0 0 9px; }
.l2bg-chart .bar span { position: relative; font-weight: 600; }
.l2bg-chart .bar b { position: relative; font-weight: 900; color: var(--brand-dark); white-space: nowrap; }
.l2bg-chart figcaption { margin-top: .6rem; font-size: .8rem; color: var(--muted); }
/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); margin: .5rem 0; padding: 0; }
.faq-item summary { cursor: pointer; padding: .75rem 1rem; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 2.2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--brand); font-weight: 900; font-size: 1.1rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--brand); }
.faq-item .faq-a { padding: 0 1rem .9rem; }
/* ---------- Mention de co-rédaction IA ---------- */
/* Simple ligne de bas d'article, discrète, séparée par un filet fin */
p.ai-note { margin: 2.25rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; font-style: italic; line-height: 1.5; color: var(--muted); }
p.ai-note .ai-note-ico { font-style: normal; margin-right: .3rem; }
/* ---------- Partage ---------- */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.share-row .lbl { font-size: .85rem; font-weight: 700; color: var(--muted); }
.share-row a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 700; color: var(--ink); transition: border-color .2s, color .2s; }
.share-row a:hover { border-color: var(--brand); color: var(--brand); }
/* ---------- Pour aller plus loin ---------- */
.more-title { font-size: .85rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 1.75rem 0 .7rem; }
.more-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.more-cards a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow-1); transition: border-color .2s, transform .2s; }
.more-cards a:hover { border-color: var(--brand); transform: translateY(-2px); }
.more-cards .mi { font-size: 1.3rem; }
.more-cards .mt { font-weight: 900; font-size: .95rem; margin: .3rem 0 .2rem; }
.more-cards .md { font-size: .82rem; color: var(--muted); line-height: 1.5; }
/* ---------- Bloc auteur ---------- */
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); padding: 1.5rem; margin-top: 1.5rem; }
.author-box .avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-soft); }
.author-box h2 { font-size: 1.05rem; font-weight: 900; }
.author-box h2 a { color: var(--ink); }
.author-box h2 a:hover { color: var(--brand); }
.author-box .avatar { transition: border-color .2s; }
.author-box a:hover .avatar { border-color: var(--brand); }
.author-box .role { font-size: .82rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.author-box p { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.author-box .links { margin-top: .5rem; font-size: .88rem; }
.author-box .links a { color: var(--brand); font-weight: 700; margin-right: 1rem; }
.author-box .links a:hover { text-decoration: underline; }
/* ---------- Articles annexes avec vignettes ---------- */
/* Vignette commune définie dans site.css : seule la hauteur change ici */
.card .card-thumb { height: 130px; }
