/* ---------- Guides métier (/metiers/) ---------- */

/* héros du guide */
.mt-hero { padding: calc(var(--pp-header-h) + clamp(20px, 3vw, 40px)) 0 clamp(56px, 7vw, 90px); background: var(--pp-yellow-soft); border-bottom: 3px solid var(--pp-ink); position: relative; overflow: hidden; }
.mt-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.mt-hero h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 18px; }
.mt-hero h1 em { font-style: italic; background: linear-gradient(transparent 62%, var(--pp-yellow) 62%); }
.mt-hero .lead { color: var(--pp-ink); }
.mt-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--pp-ink); font-weight: 700; font-size: 14px; }
.mt-tag b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pp-ink); color: var(--pp-yellow); font-size: 14px; }
.mt-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.mt-ctas .btn--ghost { border: 2.5px solid var(--pp-ink); }
.mt-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--pp-ink-2); }
.mt-meta li::before { content: "✓ "; color: var(--pp-orange); font-weight: 900; }

/* bannière + fiche « en bref » */
.mt-visual { position: relative; }
.mt-banner { position: relative; aspect-ratio: 16 / 9; border-radius: var(--pp-radius); border: 3px solid var(--pp-ink); box-shadow: 10px 10px 0 var(--pp-ink); overflow: hidden; background: var(--pp-cream); rotate: 1.2deg; }
.mt-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-banner--ill { display: grid; place-items: center; background:
  radial-gradient(circle at 78% 22%, var(--pp-yellow) 0 70px, transparent 71px),
  repeating-linear-gradient(135deg, transparent 0 22px, rgba(14,14,16,.05) 22px 24px), var(--pp-cream); }
.mt-banner--ill span { font-size: clamp(90px, 12vw, 150px); filter: drop-shadow(6px 6px 0 rgba(14,14,16,.18)); }
.mt-brief { position: relative; margin: -22px 18px 0 auto; max-width: 400px; background: #fff; border: 3px solid var(--pp-ink); border-radius: 18px; box-shadow: 7px 7px 0 var(--pp-orange); padding: 18px 20px; rotate: -1.4deg; z-index: 2; }
.mt-brief h2 { margin: 0 0 10px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.mt-brief dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; }
.mt-brief dt { font-weight: 800; }
.mt-brief dd { margin: 0; color: var(--pp-ink-2); }

/* mise en page : sommaire + contenu */
.mt-layout { display: grid; grid-template-columns: 270px 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; padding: clamp(56px, 7vw, 90px) 24px 0; }
.mt-toc { position: sticky; top: calc(var(--pp-header-h) + 20px); border: 2.5px solid var(--pp-ink); border-radius: 18px; background: var(--pp-cream); padding: 18px 18px 14px; }
.mt-toc p { margin: 0 0 10px; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.mt-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.mt-toc ol a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--pp-ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3; counter-increment: toc; }
.mt-toc ol a::before { content: counter(toc, decimal-leading-zero); font-weight: 900; color: var(--pp-orange); font-size: 12px; padding-top: 2px; }
.mt-toc ol a:hover, .mt-toc ol a.is-on { background: var(--pp-yellow); }
.mt-toc .btn { width: 100%; justify-content: center; margin-top: 14px; font-size: 14px; padding: 12px 14px; }
.mt-body { min-width: 0; }
.mt-sec { padding: 0 0 clamp(56px, 7vw, 88px); scroll-margin-top: calc(var(--pp-header-h) + 16px); }
.mt-sec > .h2 { font-size: clamp(28px, 3.4vw, 44px); }
.mt-sec p { line-height: 1.75; color: var(--pp-ink-2); font-size: 17px; }
.mt-sec h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; color: var(--pp-ink); }

/* cartes */
.mt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.mt-card { background: #fff; border: 2.5px solid var(--pp-ink); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 5px 5px 0 var(--pp-ink); transition: transform .2s ease, box-shadow .2s ease; }
.mt-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--pp-ink); }
.mt-card p { margin: 0; font-size: 16px; line-height: 1.65; }
.mt-card__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--pp-ink); background: var(--pp-yellow); font-size: 22px; margin-bottom: 12px; }
.mt-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-card:nth-child(4n+2) .mt-card__ico { background: var(--pp-mint); }
.mt-card:nth-child(4n+3) .mt-card__ico { background: var(--pp-orange); }
.mt-card:nth-child(4n+4) .mt-card__ico { background: var(--pp-blue); }

/* saisonnalité */
.mt-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 26px 0 10px; }
.mt-months li { list-style: none; text-align: center; font-size: 12px; font-weight: 800; }
.mt-months li i { display: block; height: 70px; border-radius: 10px; border: 2px solid var(--pp-ink); margin-bottom: 6px; background: #fff; position: relative; overflow: hidden; }
.mt-months li i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; background: var(--pp-orange); }
.mt-months li[data-l="0"] i::after { height: 28%; background: var(--pp-yellow-soft); }
.mt-months li[data-l="1"] i::after { height: 60%; background: var(--pp-yellow); }
.mt-months li[data-l="2"] i::after { height: 100%; }
.mt-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--pp-ink-2); }
.mt-legend li::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--pp-ink); margin-right: 6px; vertical-align: -1px; }
.mt-legend li:nth-child(1)::before { background: var(--pp-yellow-soft); }
.mt-legend li:nth-child(2)::before { background: var(--pp-yellow); }
.mt-legend li:nth-child(3)::before { background: var(--pp-orange); }

/* recherches Google */
.mt-serp { margin-top: 26px; border: 2.5px solid var(--pp-ink); border-radius: 20px; background: #fff; padding: 18px; box-shadow: 6px 6px 0 var(--pp-blue); }
.mt-serp__bar { display: flex; align-items: center; gap: 12px; border: 2px solid var(--pp-line); border-radius: 999px; padding: 12px 18px; font-weight: 600; font-size: 16px; }
.mt-serp__bar svg { width: 20px; height: 20px; flex: none; }
.mt-serp ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.mt-serp li { padding: 9px 14px; border-radius: 12px; background: var(--pp-cream); border: 1.5px solid var(--pp-ink); font-size: 15px; font-weight: 600; }
.mt-serp li b { color: var(--pp-orange); font-weight: 800; margin-right: 4px; }

/* check-list site */
.mt-check { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.mt-check li { position: relative; padding-left: 36px; font-size: 16px; line-height: 1.55; color: var(--pp-ink-2); }
.mt-check li b { color: var(--pp-ink); }
.mt-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--pp-mint); border: 2px solid var(--pp-ink); display: grid; place-items: center; font-weight: 900; font-size: 13px; color: var(--pp-ink); }

/* encadré services PME'Pulse */
.mt-offer { margin-top: 30px; border: 3px solid var(--pp-ink); border-radius: 22px; background: var(--pp-ink); color: #fff; padding: clamp(22px, 3vw, 32px); }
.mt-offer > p { color: rgba(255,255,255,.8); margin: 0 0 18px; }
.mt-offer h3 { color: var(--pp-yellow); }
.mt-offer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mt-offer a { display: block; background: #fff; color: var(--pp-ink); text-decoration: none; border-radius: 16px; border: 2px solid #fff; padding: 16px; transition: transform .2s ease, background .2s ease; }
.mt-offer a:hover { transform: translateY(-3px); background: var(--pp-yellow); }
.mt-offer a span { font-size: 24px; }
.mt-offer a strong { display: block; font-size: 16px; margin: 6px 0 4px; }
.mt-offer a small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--pp-ink-2); }
.mt-offer a em { display: block; margin-top: 8px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--pp-orange); }

/* Google vs Meta */
.mt-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.mt-ads > div { border: 2.5px solid var(--pp-ink); border-radius: 18px; padding: 22px; background: #fff; }
.mt-ads > div:first-child { box-shadow: 6px 6px 0 var(--pp-blue); }
.mt-ads > div:last-child { box-shadow: 6px 6px 0 var(--pp-orange); }
.mt-ads p { font-size: 16px; margin: 0 0 12px; }
.mt-ads a { font-weight: 800; color: var(--pp-ink); }
.mt-verdict { margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: var(--pp-yellow); border: 2.5px solid var(--pp-ink); font-weight: 600; line-height: 1.6; }
.mt-verdict b { font-weight: 900; }

/* feuille de route */
.mt-road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.mt-road > div { border: 2.5px solid var(--pp-ink); border-radius: 18px; padding: 20px; background: #fff; position: relative; }
.mt-road > div:nth-child(1) { background: var(--pp-yellow-soft); }
.mt-road > div:nth-child(2) { background: #E8FBF5; }
.mt-road > div:nth-child(3) { background: #EAF1FF; }
.mt-road h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.mt-road h3 b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pp-ink); color: #fff; font-size: 15px; flex: none; }
.mt-road ul, .mt-plan ul { margin: 12px 0 0; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.55; color: var(--pp-ink-2); }

/* plan 90 jours */
.mt-plan { position: relative; display: grid; gap: 18px; margin-top: 28px; }
.mt-plan > div { display: grid; grid-template-columns: 150px 1fr; gap: 22px; border: 2.5px solid var(--pp-ink); border-radius: 18px; padding: 22px; background: #fff; box-shadow: 5px 5px 0 var(--pp-ink); }
.mt-plan__d { font-weight: 900; font-size: 15px; }
.mt-plan__d span { display: block; font-size: 30px; letter-spacing: -.03em; color: var(--pp-orange); line-height: 1.05; }
.mt-plan__d small { display: block; font-weight: 700; color: var(--pp-ink-3); margin-top: 6px; font-size: 13px; }
.mt-plan ul { margin-top: 0; }
.mt-plan li strong { color: var(--pp-ink); }

/* indicateurs */
.mt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.mt-kpis > div { border: 2.5px solid var(--pp-ink); border-radius: 18px; padding: 18px; background: var(--pp-cream); }
.mt-kpis b { display: block; font-size: 28px; line-height: 1; margin-bottom: 10px; }
.mt-kpis h3 { font-size: 16px; }
.mt-kpis p { font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Vendée */
.mt-local { border: 3px solid var(--pp-ink); border-radius: 22px; background: var(--pp-mint); padding: clamp(22px, 3vw, 34px); }
.mt-local p { color: var(--pp-ink); }
.mt-local .towns { margin-top: 18px; }
.mt-local .towns a { color: inherit; text-decoration: none; }
.mt-local .towns li:first-child a { color: var(--pp-yellow); }

/* autres métiers */
.mt-others { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.mt-others a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 2px solid var(--pp-ink); background: #fff; color: var(--pp-ink); text-decoration: none; font-weight: 700; font-size: 15px; transition: background .2s ease, transform .2s ease; }
.mt-others a:hover { background: var(--pp-yellow); transform: rotate(-2deg); }

/* recherche « quel est votre métier ? » (accueil + hub) */
.mt-search { position: relative; max-width: 760px; }
.mt-search form { display: flex; gap: 10px; background: #fff; border: 3px solid var(--pp-ink); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 7px 7px 0 var(--pp-ink); align-items: center; }
.mt-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; font-weight: 600; background: transparent; color: var(--pp-ink); }
.mt-search input::placeholder { color: var(--pp-ink-3); font-weight: 500; }
.mt-search button { flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; padding: 14px 22px; border-radius: 999px; background: var(--pp-orange); color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.mt-search button svg { width: 18px; height: 18px; }
.mt-search button:hover { background: var(--pp-ink); }
.mt-search__list { position: absolute; left: 18px; right: 18px; top: calc(100% + 10px); z-index: 30; margin: 0; padding: 8px; list-style: none; background: #fff; border: 2.5px solid var(--pp-ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--pp-ink); max-height: 330px; overflow: auto; }
.mt-search__list[hidden] { display: none; }
.mt-search__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--pp-ink); text-decoration: none; font-weight: 700; }
.mt-search__list a small { margin-left: auto; font-weight: 600; color: var(--pp-ink-3); font-size: 13px; }
.mt-search__list a:hover, .mt-search__list a.is-on { background: var(--pp-yellow); }
.mt-search__hint { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
.mt-search__hint a { color: var(--pp-ink); }

.mt-home { background: var(--pp-blue); color: #fff; border-top: 3px solid var(--pp-ink); border-bottom: 3px solid var(--pp-ink); padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.mt-home__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mt-home .h2 { color: #fff; }
.mt-home .h2 .mark { color: var(--pp-ink); }
.mt-home .lead { color: rgba(255,255,255,.88); }
.mt-home .eyebrow { color: var(--pp-yellow); }
.mt-home .mt-search__hint, .mt-home .mt-search__hint a { color: #fff; }
.mt-home__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mt-home__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 14px; background: #fff; color: var(--pp-ink); border: 2px solid var(--pp-ink); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 4px 4px 0 var(--pp-ink); transition: transform .2s ease, background .2s ease; }
.mt-home__chips li:nth-child(3n+2) a { rotate: -1.5deg; }
.mt-home__chips li:nth-child(3n) a { rotate: 1.2deg; }
.mt-home__chips a:hover { background: var(--pp-yellow); transform: translateY(-3px); }

/* hub /metiers/ */
.mt-hub-hero { padding: calc(var(--pp-header-h) + clamp(24px, 4vw, 50px)) 0 clamp(60px, 8vw, 100px); background: var(--pp-yellow-soft); border-bottom: 3px solid var(--pp-ink); }
.mt-hub-hero h1 { font-size: clamp(36px, 5.2vw, 70px); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 18px; max-width: 16ch; }
.mt-cat { margin-top: 46px; }
.mt-cat > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 18px; }
.mt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mt-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 2.5px solid var(--pp-ink); background: #fff; color: var(--pp-ink); text-decoration: none; box-shadow: 4px 4px 0 var(--pp-ink); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.mt-tile:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pp-ink); background: var(--pp-yellow); }
.mt-tile span { font-size: 30px; }
.mt-tile strong { font-size: 17px; font-weight: 800; }
.mt-tile small { font-size: 13.5px; color: var(--pp-ink-2); line-height: 1.45; }
.mt-tile[hidden] { display: none; }
.mt-empty { margin-top: 30px; font-weight: 600; }

@media (max-width: 1080px) {
  .mt-layout { grid-template-columns: 1fr; }
  .mt-toc { position: static; }
  .mt-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mt-hero__grid, .mt-home__grid { grid-template-columns: 1fr; }
  .mt-cards, .mt-cards--3, .mt-ads, .mt-road, .mt-offer__grid, .mt-check { grid-template-columns: 1fr; }
  .mt-plan > div { grid-template-columns: 1fr; gap: 10px; }
  .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-brief { margin: -30px 8px 0; max-width: none; }
}
@media (max-width: 560px) {
  .mt-toc ol { grid-template-columns: 1fr; }
  .mt-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mt-kpis, .mt-grid { grid-template-columns: 1fr; }
  .mt-search form { border-radius: 22px; flex-wrap: wrap; padding: 10px; }
  .mt-search input { padding: 8px 8px 4px; width: 100%; flex-basis: 100%; }
  .mt-search button { width: 100%; justify-content: center; }
  .mt-banner, .mt-brief { rotate: 0deg; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
