/* ============================================================
   8 ACADEMY — styles partagés des articles de blog
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #ffffff; --bg-soft: #f6f7f9;
  --ink: #1c1d22; --dim: #5d5f6a; --line: #e8e9ec;
  --navy: #22354f; --navy-deep: #1a2940; --gold: #ffe08f;
  --m-sales: #e2483d; --m-mkt: #f0871e; --m-sc: #d84a8c;
  --m-compta: #1f9d61; --m-rh: #8b5cd6; --m-dir: #2f6fdb;
  --m-ops: #12a5b8; --m-prod: #a16207;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
h1, h2, h3, .logo { font-family: var(--font-display); }
:is(a, button, summary):focus-visible { outline: 2.5px solid var(--m-dir); outline-offset: 3px; border-radius: 6px; }
section[id], h2[id] { scroll-margin-top: 96px; }

#progress { position: fixed; top: 0; left: 0; height: 3.5px; width: 0; background: linear-gradient(90deg, var(--m-sales), var(--m-mkt), var(--m-compta), var(--m-rh), var(--m-dir)); z-index: 200; transition: width .1s linear; }

nav.main { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav.main .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 21px; font-weight: 800; }
.logo .dots { display: inline-flex; gap: 3px; }
.logo .dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
nav.main .links { display: flex; gap: 24px; margin-left: auto; }
nav.main .links a { text-decoration: none; color: var(--dim); font-size: 14.5px; font-weight: 600; }
nav.main .links a:hover, nav.main .links a.on { color: var(--ink); }
.btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 700; padding: 14px 26px; border-radius: 8px; cursor: pointer; text-decoration: none; transition: all .16s ease; border: 0; }
.btn.sm { font-size: 14px; padding: 10px 18px; }
.btn.primary { background: var(--m-sales); color: #fff; box-shadow: 0 8px 24px rgba(226,72,61,.22); }
.btn.primary:hover { background: #c8382e; transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: #ffd35c; }
@media (max-width: 860px) { nav.main .links { display: none; } }

/* header d'article */
.ahead { padding-block: clamp(36px, 5vh, 56px) 24px; max-width: 820px; }
.breadcrumb { font-size: 13px; color: var(--dim); margin: 0 0 18px; }
.breadcrumb a { color: var(--dim); }
.cat { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
h1 .u { box-shadow: inset 0 -11px 0 var(--gold); }
.standfirst { font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.6; color: var(--dim); margin: 0 0 22px; }
.ameta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--dim); padding-bottom: 26px; }
.ameta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.ameta b { color: var(--ink); }
.cover { border-radius: 20px; overflow: hidden; }
.cover img { width: 100%; height: clamp(220px, 34vw, 400px); object-fit: cover; display: block; }
.cover-cap { font-size: 12.5px; color: #9a9ca6; margin: 10px 0 36px; }

/* corps (colonne unique) */
.solo { max-width: 740px; margin: 0 auto; padding-bottom: 24px; }
article h2 { font-size: clamp(22px, 2.5vw, 29px); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; margin: 46px 0 16px; }
article h2 .num { color: #c3c7d1; margin-right: 10px; }
article h3 { font-size: 18.5px; font-weight: 800; margin: 30px 0 10px; }
article p { font-size: 16px; line-height: 1.75; color: #3a3c46; margin: 0 0 18px; }
article p b { color: var(--ink); }
article ul, article ol { margin: 0 0 20px; padding-left: 22px; }
article li { font-size: 15.5px; line-height: 1.7; color: #3a3c46; margin-bottom: 8px; }
article li b { color: var(--ink); }

.takeaway { background: #fdf8ec; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 26px 0; }
.takeaway .t { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9a7b1e; margin: 0 0 8px; }
.takeaway p { font-size: 15px; margin: 0; }

.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.statbox { border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; background: #fff; }
.statbox .n { font-family: var(--font-display); font-size: 27px; font-weight: 800; color: var(--navy); }
.statbox .l { font-size: 12.5px; color: var(--dim); line-height: 1.45; margin-top: 6px; }
@media (max-width: 640px) { .statrow { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 2px solid var(--ink); }
td { padding: 12px; border-bottom: 1px solid var(--line); line-height: 1.5; vertical-align: top; }
tr:hover td { background: var(--bg-soft); }

.quoteblock { border-left: 3px solid var(--navy); padding: 6px 0 6px 24px; margin: 28px 0; }
.quoteblock p { font-size: 17.5px; line-height: 1.6; font-weight: 600; color: var(--ink); font-style: italic; margin: 0 0 8px; }
.quoteblock cite { font-size: 13.5px; color: var(--dim); font-style: normal; }

.midcta { background: var(--navy); border-radius: 18px; padding: 28px 30px; margin: 38px 0; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.midcta .t { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.midcta p { font-size: 14px; color: #b8c2d2; margin: 0; line-height: 1.55; }
@media (max-width: 640px) { .midcta { grid-template-columns: 1fr; } }

.planning { display: grid; gap: 12px; margin: 22px 0 28px; }
.phase { display: grid; grid-template-columns: 110px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.phase .when { background: var(--bg-soft); padding: 15px; font-size: 13px; font-weight: 800; display: flex; align-items: center; border-right: 1px solid var(--line); }
.phase .what { padding: 15px 17px; font-size: 14.5px; line-height: 1.6; color: #3a3c46; }
.phase .what b { color: var(--ink); }
@media (max-width: 560px) { .phase { grid-template-columns: 1fr; } .phase .when { border-right: 0; border-bottom: 1px solid var(--line); } }

.faqa details { border-bottom: 1px solid var(--line); }
.faqa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 17px 4px; font-size: 15.5px; font-weight: 700; }
.faqa summary::-webkit-details-marker { display: none; }
.faqa summary .pm { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .2s; }
.faqa details[open] summary .pm { background: var(--ink); color: #fff; transform: rotate(45deg); }
.faqa .a { padding: 0 4px 18px; font-size: 15px; line-height: 1.65; color: var(--dim); }

/* liens dans le corps d'article */
article p a, article li a, .sources a { color: var(--m-dir); text-decoration-thickness: 1px; text-underline-offset: 2px; }
article p a:hover, article li a:hover { color: var(--navy-deep); }

/* sources */
.sources { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; }
.sources .st { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { font-size: 13px; line-height: 1.6; color: var(--dim); margin-bottom: 5px; }
.sources a { color: var(--dim); }
.sources a:hover { color: var(--ink); }

/* articles liés */
.related { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 36px 60px; }
.related .rt { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }
.relgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.relcard { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: inherit; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.relcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,25,40,.1); }
.relcard .c { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.relcard .t { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; line-height: 1.3; margin: 0; }
@media (max-width: 760px) { .relgrid { grid-template-columns: 1fr; } }

footer { padding-block: 40px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .fl { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; font-family: var(--font-display); }
footer .fl .dots { display: inline-flex; gap: 3px; }
footer .fl .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
footer .fr { font-size: 13px; color: var(--dim); }

/* ---------- polish v2 (veille design 07/2026) ---------- */
::selection { background: var(--gold); color: var(--navy-deep); }
.btn:active { transform: translateY(0) scale(.97); }
.relcard { position: relative; overflow: hidden; }
.relcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(34,53,79,.07), transparent 65%);
}
.relcard:hover::after { opacity: 1; }
