/*
 * Monsiteo : styles des contenus SEO (blog, pages metiers, villes, comparatif, FAQ).
 * Complete monsiteo.css et vitrine.css, sans redefinir leurs classes.
 */
html { scroll-padding-top: 96px; }

/* En-tete de page */
.ct-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; }
.ct-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); max-width: 22ch; }
.ct-hero .lead { max-width: 62ch; }
.ct-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.ct-hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .ct-hero-grid { grid-template-columns: 1.25fr .9fr; } }

/* Encadre "En bref" */
.enbref { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 1.3rem 1.5rem; }
.enbref h2 { font-size: 1.15rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.enbref h2::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--sun); border: 2px solid var(--ink); }
.enbref ul { margin: 0; padding-left: 1.1em; }
.enbref li { margin: .35em 0; color: var(--ink-80); font-size: .98rem; }

/* Pastilles de categories / filtres */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1em; border-radius: var(--r-full); border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 600 .9rem/1 var(--font-text); transition: transform .25s var(--ease-bounce), border-color .2s, background .2s; }
.pill:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.pill[aria-current="page"], .pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill .count { font-size: .78rem; opacity: .7; }

/* Grille d'articles */
.post-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out), border-color .2s; position: relative; }
.post-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-pop); border-color: var(--ink); }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--violet-50); }
.post-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.22rem; line-height: 1.22; margin: 0; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; color: var(--ink-60); font-size: .95rem; line-height: 1.55; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .85rem; color: var(--ink-60); }
.post-meta .badge { position: relative; z-index: 1; }
.post-card .post-meta { margin-top: auto; padding-top: .4rem; }
.post-featured { display: grid; gap: 0; }
@media (min-width: 900px) {
  .post-featured { grid-template-columns: 1.25fr 1fr; grid-column: 1 / -1; }
  .post-featured img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .post-featured .post-card-body { padding: 2rem; justify-content: center; }
  .post-featured h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
}

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 .9rem; border-radius: var(--r-full); border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager .is-disabled { opacity: .45; }

/* Article */
.article-head { padding: clamp(1.8rem, 4vw, 3rem) 0 1.5rem; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 24ch; }
.article-head .lead { max-width: 64ch; }
.article-cover { margin-inline: 0; margin-top: 0; border-radius: var(--r-xl); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: var(--violet-50); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.article-cover img { width: 100%; aspect-ratio: 1200 / 630; max-height: 440px; object-fit: cover; }
.article-layout { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.article-main { min-width: 0; max-width: 760px; }
.article-aside { position: relative; }
@media (min-width: 1040px) { .article-aside-inner { position: sticky; top: 96px; } }
.toc { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; }
.toc summary { cursor: pointer; font: 700 1rem/1.3 var(--font-title); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.3rem; color: var(--violet); transition: transform .3s var(--ease-bounce); }
.toc[open] summary::after { transform: rotate(45deg); }
.toc ol { margin: .8rem 0 0; padding-left: 1.2em; font-size: .92rem; line-height: 1.45; }
.toc li { margin: .45em 0; }
.toc a { color: var(--ink-80); text-decoration: none; }
.toc a:hover, .toc a.is-current { color: var(--violet); text-decoration: underline; }
.share { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; }
.share-title { width: 100%; font-weight: 650; color: var(--ink-60); font-size: .85rem; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: .5rem .8rem; border-radius: var(--r-full); border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 600 .85rem/1 var(--font-text); cursor: pointer; transition: transform .25s var(--ease-bounce), border-color .2s; }
.share a:hover, .share button:hover { transform: translateY(-2px); border-color: var(--ink); }

/* Corps d'article (complete .prose) */
.prose > :first-child { margin-top: 0; }
.prose h2 { scroll-margin-top: 96px; }
.prose a { font-weight: 550; }
.prose .callout p:last-child, .prose .callout ul:last-child { margin-bottom: 0; }
.prose .callout ul { margin-top: .4rem; }
.prose .content-table { margin: 1.6em 0; }
.prose .content-table table { margin: 0; min-width: 520px; border: 0; }
.prose .content-table th, .prose .content-table td { border: 0; border-bottom: 1px solid var(--line); }
.prose .content-table tr:last-child td { border-bottom: 0; }

.article-cta { margin: 3rem 0 0; background: var(--violet); color: #fff; border: 2px solid var(--ink); border-radius: var(--r-xl); box-shadow: 6px 6px 0 var(--ink); padding: clamp(1.6rem, 4vw, 2.4rem); }
.article-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .5rem; }
.article-cta p { color: #E4DEFF; margin: 0 0 1.3rem; }
.article-cta .flex { gap: .8rem; }
.article-cta .btn-ghost { --fg: #fff; border-color: #fff; }
.article-faq { margin-top: 3rem; }
.article-faq h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.article-foot { margin-top: 2rem; padding-top: 1.2rem; border-top: 1.5px solid var(--line); font-size: .9rem; color: var(--ink-60); }

/* Pages metiers et villes */
.ct-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ct-section > .container > h2, .ct-section .section-title-sm { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 26ch; }
.ct-intro { max-width: 760px; }
.must-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); counter-reset: must; }
.must { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; position: relative; transition: transform .3s var(--ease-bounce), box-shadow .3s, border-color .2s; }
.must:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--ink); }
.must h3 { font-size: 1.1rem; margin: 0 0 .45rem; display: flex; gap: .6rem; align-items: baseline; }
.must h3::before { counter-increment: must; content: counter(must); flex-shrink: 0; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--sun); border: 2px solid var(--ink); font: 800 .85rem/1 var(--font-title); transform: rotate(-4deg); }
.must p { margin: 0; color: var(--ink-60); font-size: .96rem; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; counter-reset: flow; max-width: 860px; }
.flow li { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: start; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.flow li::before { counter-increment: flow; content: counter(flow); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--violet-100); color: var(--violet-700); font: 800 1.1rem/1 var(--font-title); }
.flow strong { display: block; font-family: var(--font-title); font-size: 1.05rem; margin-bottom: .15rem; }
.flow p { margin: 0; color: var(--ink-60); font-size: .95rem; }
.mistakes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mistake { background: var(--coral-100); border: 1.5px solid #FFC6BE; border-radius: var(--r-lg); padding: 1.2rem 1.3rem; }
.mistake h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: #8E1E12; }
.mistake p { margin: 0; font-size: .95rem; color: var(--ink-80); }
.demo-box { display: grid; gap: 1.5rem; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-xl); box-shadow: 8px 8px 0 var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 900px) { .demo-box { grid-template-columns: 1.2fr .8fr; } }
.demo-box .demo-actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.mini-browser { border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.mini-browser .bar { display: flex; gap: 6px; align-items: center; padding: .55rem .8rem; background: #fff; border-bottom: 2px solid var(--ink); font: 500 .8rem/1 var(--font-mono); color: var(--ink-60); }
.mini-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; }
.mini-browser .bar i:nth-child(2) { background: var(--sun); }
.mini-browser .bar i:nth-child(3) { background: var(--mint); margin-right: .5rem; }
.mini-browser .bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-browser .page { padding: 1rem; display: grid; gap: .55rem; }
.mini-browser .page b { display: block; height: 12px; border-radius: 6px; background: var(--line); }
.mini-browser .page b.h { height: 22px; width: 70%; background: var(--ink); }
.mini-browser .page b.s { width: 45%; }
.mini-browser .page b.c { height: 34px; width: 38%; border-radius: var(--r-full); background: var(--violet); }
.tips-box { background: var(--mint-100); border: 1.5px solid #A8EBD5; border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); max-width: 860px; }
.tips-box > :last-child { margin-bottom: 0; }
.link-cards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.15rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 600; transition: transform .25s var(--ease-bounce), border-color .2s, box-shadow .25s; }
.link-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow-pop); color: var(--ink); }
.link-card::after { content: "\2192"; color: var(--violet); transition: transform .25s var(--ease-bounce); }
.link-card:hover::after { transform: translateX(4px); }
.link-card small { display: block; font-weight: 400; color: var(--ink-60); }
.areas { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.areas li { padding: .45em .85em; border-radius: var(--r-full); background: var(--violet-50); border: 1.5px solid var(--violet-100); color: var(--violet-700); font-size: .9rem; font-weight: 550; }
.two-cols { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 960px) { .two-cols { grid-template-columns: 1.3fr 1fr; } }
.sources { font-size: .88rem; color: var(--ink-60); }
.sources ul { padding-left: 1.1em; margin: .3rem 0 0; }
.note-online { display: flex; gap: .8rem; align-items: flex-start; background: var(--sun-100); border: 1.5px solid #FFE08A; border-radius: var(--r-md); padding: 1rem 1.2rem; font-size: .95rem; max-width: 860px; }
.note-online svg { flex-shrink: 0; margin-top: .15rem; }

/* Comparatif */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid var(--ink); border-radius: var(--r-lg); background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.compare-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.compare-table caption { text-align: left; padding: 1rem 1.2rem 0; color: var(--ink-60); font-size: .85rem; caption-side: bottom; padding-bottom: 1rem; }
.compare-table th, .compare-table td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { font: 700 1rem/1.2 var(--font-title); background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; }
.compare-table tbody th { font-weight: 650; width: 18%; background: #fff; position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.compare-table .is-us { background: var(--violet-50); }
.compare-table thead .is-us { background: var(--violet); color: #fff; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.vs-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.vs-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.vs-card h3 { margin-bottom: .8rem; }
.vs-card h4 { font: 650 .82rem/1.2 var(--font-text); text-transform: uppercase; letter-spacing: .06em; margin: 1rem 0 .4rem; }
.vs-card h4.plus { color: #0B6B4E; }
.vs-card h4.minus { color: #B32B1D; }
.vs-card ul { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--ink-80); }
.vs-card li { margin: .3em 0; }
.disclaimer { font-size: .88rem; color: var(--ink-60); border-left: 4px solid var(--line); padding-left: 1rem; max-width: 860px; }

/* FAQ */
.faq-tools { position: sticky; top: 72px; z-index: 5; background: rgba(255, 251, 244, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: .9rem 0; border-bottom: 1.5px solid var(--line); }
.faq-search { position: relative; max-width: 640px; }
.faq-search input { width: 100%; font: 400 1.05rem/1.4 var(--font-text); padding: .95em 1em .95em 2.9em; border-radius: var(--r-full); border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.faq-search input:focus { outline: none; box-shadow: 0 0 0 4px var(--sun); }
.faq-search svg { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--ink-60); pointer-events: none; }
.faq-tools .pills { margin-top: .8rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
.faq-tools .pill { white-space: nowrap; }
.faq-theme { padding-top: 2.2rem; }
.faq-theme h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: .6rem; }
.faq-theme h2 a.anchor { font-size: .9rem; text-decoration: none; color: var(--ink-40); opacity: 0; transition: opacity .2s; }
.faq-theme h2:hover a.anchor, .faq-theme h2 a.anchor:focus { opacity: 1; }
.faq-item .faq-links { margin: .6rem 0 0; font-size: .92rem; }
.faq-item .faq-permalink { font-size: .82rem; color: var(--ink-40); }
.faq-empty { display: none; padding: 2rem 0; color: var(--ink-60); }
.faq-empty.is-visible { display: block; }
.faq-count { font-size: .85rem; color: var(--ink-60); margin-top: .5rem; min-height: 1.2em; }
mark.hl { background: var(--sun-100); color: inherit; border-radius: 3px; padding: 0 .1em; }

/* Index villes / metiers */
.city-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.city-card { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; transition: transform .3s var(--ease-bounce), box-shadow .3s, border-color .2s; }
.city-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-pop); border-color: var(--ink); }
.city-card h2, .city-card h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.city-card a { color: var(--ink); text-decoration: none; }
.city-card a::after { content: ""; position: absolute; inset: 0; }
.city-card p { margin: 0; font-size: .92rem; color: var(--ink-60); }
.city-card .province { font-size: .8rem; font-weight: 650; color: var(--violet); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }

@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
  .article-cover { box-shadow: 5px 5px 0 var(--ink); border-radius: var(--r-lg); }
  .demo-box, .compare-wrap { box-shadow: 5px 5px 0 var(--ink); }
  .faq-tools { top: 64px; }
}
@media print {
  .site-header, .site-footer, .article-aside, .article-cta, .share { display: none !important; }
}
.faq-theme .faq, .article-faq .faq, .ct-section .container-sm .faq { max-width: none; margin-inline: 0; }
