/* IAPLC — styles du site marketing (landing + blog) · DA « Calme » (crème + terracotta, esprit claude.ai) · mobile-first */
:root {
  --bg: #FAF9F5; --panel: #F0EEE6; --line: #E4E1D4; --line2: #D3CFC0;
  --txt: #141413; --mut: #6E6A5C; --mut2: #A6A293; --txt2: #43402F;
  --acc: #C15F3C; --acc2: #5B7A8C;
  --font-d: 'Space Grotesk', sans-serif; --font-m: 'IBM Plex Mono', monospace; --font-h: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--txt); font-family: var(--font-d); }
.mono { font-family: var(--font-m); }
.acc { color: var(--acc); }
.dim { color: var(--mut); }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; color: var(--txt); font-family: var(--font-d); }
.site-nav .links { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.site-nav .links a { text-decoration: none; color: var(--mut); transition: color .12s; }
.site-nav .links a:hover, .site-nav .links a.on { color: var(--txt); }
.btn-acc { display: inline-block; background: var(--acc); color: #FAF9F5; border: none; padding: 13px 22px; border-radius: 8px; font-family: var(--font-d); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .12s, filter .12s; }
.btn-acc:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-acc.small { padding: 9px 15px; font-size: 13px; }
.btn-ghost { display: inline-block; background: transparent; color: var(--txt); border: 1px solid var(--line2); padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--mut); }

/* layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.kicker { font-family: var(--font-m); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 0 0 14px; }
.h2 { font-family: var(--font-h); font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; margin: 0 0 14px; }
.lead { font-size: 15.5px; line-height: 1.7; color: var(--mut); max-width: 640px; margin: 0; }
.lead em, .lead strong { color: var(--txt); font-style: normal; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--font-h); font-size: clamp(32px, 5.4vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin: 0; max-width: 820px; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-family: var(--font-m); font-size: 11.5px; color: var(--mut); }

/* cards */
.grid3 { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--mut); }
.card .num { font-family: var(--font-m); font-size: 11px; color: var(--acc2); display: block; margin-bottom: 10px; }

/* paliers strip */
.paliers { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
.palier { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; background: var(--panel); }
.palier .seal { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--acc); color: var(--acc); display: grid; place-items: center; font-family: var(--font-m); font-size: 16px; flex-shrink: 0; }
.palier h3 { margin: 0 0 5px; font-size: 16px; }
.palier p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mut); }

/* notions */
.notions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.notion { font-family: var(--font-m); font-size: 12px; color: var(--txt); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 15px; background: #fff; }
.notion.hot { border-color: color-mix(in oklab, var(--acc) 55%, var(--bg)); color: var(--acc); }

/* steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
.step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step .n { font-family: var(--font-m); font-size: 12px; color: var(--acc2); padding-top: 3px; flex-shrink: 0; }
.step h3 { margin: 0 0 5px; font-size: 16px; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--mut); }

/* CTA band */
.cta-band { border: 1px solid var(--acc); border-radius: 18px; padding: 36px 26px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; background: color-mix(in oklab, var(--acc) 5%, var(--bg)); }
.cta-band .h2 { margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; margin-top: 24px; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--mut); }
.site-footer a { color: var(--mut); text-decoration: none; }
.site-footer a:hover { color: var(--txt); }

/* blog index */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.post-card { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--txt); transition: border-color .15s, transform .15s, box-shadow .15s; }
.post-card:hover { border-color: var(--acc); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 20, 19, .08); }
.post-card .tag { font-family: var(--font-m); font-size: 10.5px; color: var(--acc2); border: 1px solid color-mix(in oklab, var(--acc2) 45%, var(--bg)); border-radius: 999px; padding: 3px 10px; width: fit-content; }
.post-card h3 { margin: 0; font-family: var(--font-h); font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.post-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--mut); }
.post-card .meta { font-family: var(--font-m); font-size: 11px; color: var(--mut2); }

/* article */
.article { max-width: 680px; margin: 0 auto; padding: 44px 20px 64px; }
.article .back { font-family: var(--font-m); font-size: 12px; color: var(--mut); text-decoration: none; }
.article .back:hover { color: var(--txt); }
.article h1 { font-family: var(--font-h); font-size: clamp(26px, 4vw, 38px); line-height: 1.18; letter-spacing: -0.015em; margin: 14px 0 10px; }
.article .meta { font-family: var(--font-m); font-size: 11.5px; color: var(--mut2); margin-bottom: 28px; }
.article h2 { font-family: var(--font-h); font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.article p { font-size: 15.5px; line-height: 1.8; color: var(--txt2); margin: 0 0 16px; }
.article strong { color: var(--txt); }
.article ul { margin: 0 0 16px; padding-left: 22px; }
.article li { font-size: 15px; line-height: 1.75; color: var(--txt2); margin-bottom: 6px; }
.article a { color: var(--acc); }
.article .pull { font-family: var(--font-h); background: var(--panel); border-left: 2px solid var(--acc); border-radius: 0 10px 10px 0; padding: 16px 18px; font-size: 16px; line-height: 1.6; color: var(--txt2); margin: 22px 0; }
.article .cta-box { background: var(--panel); border: 1px solid var(--acc); border-radius: 14px; padding: 24px; margin-top: 40px; text-align: center; }
.article .cta-box .t { font-weight: 700; font-size: 17px; margin-bottom: 6px; font-family: var(--font-h); }
.article .cta-box p { font-size: 13.5px; margin-bottom: 16px; }

@media (min-width: 720px) {
  .site-nav { padding: 16px 32px; }
  .section { padding: 84px 0; }
  .hero { padding: 100px 0 90px; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
  .paliers { grid-template-columns: 1fr 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 40px; }
}

/* ===== widgets d'article ===== */
.diagram { margin: 24px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 12px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .cap { font-family: var(--font-m); font-size: 11px; color: var(--mut); text-align: center; margin-top: 10px; }

.qz { margin: 24px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.qz .qz-k { font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); }
.qz .qz-q { font-weight: 700; font-size: 16px; line-height: 1.45; font-family: var(--font-h); }
.qz-opt { display: flex; align-items: center; gap: 11px; text-align: left; background: #fff; border: 1px solid var(--line2); color: var(--txt2); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; font-family: var(--font-d); cursor: pointer; transition: all .12s; }
.qz-opt:hover { border-color: var(--mut); }
.qz-opt.ok { border-color: #5E8700; background: color-mix(in oklab, #6F9B00 9%, #fff); color: var(--txt); }
.qz-opt.ko { border-color: #C14146; background: color-mix(in oklab, #C14146 7%, #fff); animation: qzShake .42s ease; color: #8c2f33; }
@keyframes qzShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.qz-fb { display: none; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
.qz-fb.show { display: block; }
.qz-fb.ok { background: color-mix(in oklab, #6F9B00 10%, var(--bg)); border: 1px solid color-mix(in oklab, #6F9B00 40%, var(--bg)); color: var(--txt); }
.qz-fb.ko { background: color-mix(in oklab, #C14146 8%, var(--bg)); border: 1px solid rgba(193, 65, 70, .4); color: #8c2f33; }

.cmp { margin: 24px 0; }
.cmp-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.cmp-tab { flex: 1; background: var(--panel); border: 1px solid var(--line2); color: var(--mut); border-radius: 999px; padding: 10px 14px; font-family: var(--font-d); font-weight: 700; font-size: 13px; cursor: pointer; transition: all .12s; }
.cmp-tab.on { border-color: var(--acc); color: var(--acc); background: color-mix(in oklab, var(--acc) 7%, var(--bg)); }
.cmp-pane { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14px; line-height: 1.7; color: var(--txt2); }
.cmp-pane .res { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line2); font-size: 13px; color: var(--mut); }

details.acc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; overflow: hidden; }
details.acc summary { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--txt); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--font-m); color: var(--acc); font-size: 16px; flex-shrink: 0; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 18px 16px; font-size: 14px; line-height: 1.75; color: var(--txt2); }

.btn-peek { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 26px 0; background: color-mix(in oklab, var(--acc2) 7%, var(--bg)); border: 1px solid color-mix(in oklab, var(--acc2) 50%, var(--bg)); color: var(--acc2); padding: 15px 20px; border-radius: 12px; font-family: var(--font-d); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; }
.btn-peek:hover { border-color: var(--acc2); transform: translateY(-1px); }

.peek-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(30, 28, 22, .55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.peek-overlay[hidden] { display: none; }
.peek { width: min(430px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--acc); border-radius: 18px; box-shadow: 0 24px 80px rgba(20, 20, 19, .35); }
.peek-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.peek-bar .t { font-family: var(--font-m); font-size: 11.5px; color: var(--mut); }
.peek-x { background: transparent; border: 1px solid var(--line2); color: var(--mut); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; line-height: 1; }
.peek-x:hover { color: var(--txt); border-color: var(--mut); }
.peek-body { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.peek-kicker { font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.peek-scene { font-family: var(--font-h); font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.peek-quote { background: var(--panel); border-left: 2px solid var(--acc); border-radius: 0 10px 10px 0; padding: 13px 15px; font-size: 14px; line-height: 1.6; font-style: italic; color: var(--txt2); font-family: var(--font-h); }
.peek-schema { display: flex; flex-direction: column; gap: 6px; }
.peek-box { background: #fff; border: 1.5px solid var(--line2); border-radius: 9px; padding: 9px 12px; text-align: center; }
.peek-box.hot { border-color: var(--acc); background: color-mix(in oklab, var(--acc) 7%, #fff); }
.peek-box .l { font-weight: 700; font-size: 13px; }
.peek-box .s { font-size: 11px; color: var(--mut); margin-top: 1px; }
.peek-arrow { text-align: center; color: var(--acc); font-size: 12px; font-family: var(--font-m); }
.peek-exos { display: flex; flex-wrap: wrap; gap: 6px; }
.peek-chip { font-family: var(--font-m); font-size: 10.5px; color: var(--acc2); border: 1px solid color-mix(in oklab, var(--acc2) 45%, var(--bg)); border-radius: 999px; padding: 4px 11px; }
.peek-note { font-family: var(--font-m); font-size: 11px; color: var(--mut2); line-height: 1.6; }
