/* ═══════════════════════════════════════════════
   metier.css — Pages métier (référencement)

   Une page métier = un gabarit unique. Tout ce qui est commun vit ici :
   ajouter un métier ne doit pas dupliquer une ligne de style.
   S'appuie sur css/landing.css (jetons, nav, pied de page) et
   css/cv.css (règles de base des pages de CV, pour les vignettes).

   Mobile d'abord, comme partout : aucune règle ne suppose un grand
   écran, les ajouts se font en `min-width`.
═══════════════════════════════════════════════ */

.mt-wrap { max-width: 900px; margin: 0 auto; padding: 88px 20px 50px; }

.mt-fil { font-size: 12.5px; color: var(--ink3); margin-bottom: 18px; }
.mt-fil a { color: var(--ink3); text-decoration: none; }
.mt-fil a:hover { color: var(--accent); text-decoration: underline; }
.mt-fil span { color: var(--ink2); }

.mt-eyebrow {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
/* Voix 1 — Archivo Black. Graisse 400 obligatoire : c'est la seule que
   la police possède (voir l'en-tête de landing.css). */
.mt-title {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(28px, 5.4vw, 42px);
  line-height: 1.06; letter-spacing: -.028em; color: var(--ink); margin-bottom: 14px;
}
.mt-lede { font-size: 16px; line-height: 1.72; color: var(--ink2); margin-bottom: 28px; }

/* ── Rangée de modèles ── */
.mt-sec { margin: 40px 0; }
.mt-sec h2 {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(21px, 3.4vw, 26px);
  color: var(--ink); line-height: 1.18; letter-spacing: -.024em; margin-bottom: 8px;
}
/* Voix 2 — 16 px, sous le plancher d'Archivo Black. Inter 700. */
.mt-sec h3 {
  font-family: var(--font-sans); font-size: 16px; font-weight: 700;
  letter-spacing: -.016em; color: var(--ink); margin: 22px 0 8px;
}
.mt-sec p { font-size: 15px; line-height: 1.75; color: var(--ink2); margin-bottom: 12px; }
.mt-sec ul { margin: 0 0 14px; padding-left: 20px; }
.mt-sec li { font-size: 15px; line-height: 1.7; color: var(--ink2); margin-bottom: 7px; }
.mt-sec a { color: var(--accent); text-decoration: none; }
.mt-sec a:hover { text-decoration: underline; }
.mt-sec strong { color: var(--ink); }

.tpl-row {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding: 4px 0 16px; scrollbar-width: thin;
}
.tpl-row::-webkit-scrollbar { height: 8px; }
.tpl-row::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
.tpl-row::-webkit-scrollbar-track { background: transparent; }

.tpl {
  flex: none; width: 150px; scroll-snap-align: start;
  text-decoration: none; display: block; transition: transform var(--transition);
}
.tpl:hover { transform: translateY(-4px); }
/* Fenêtre sur le HAUT du document. La hauteur est posée en JS et suit
   la largeur : aucune déformation possible. */
.tpl-box {
  display: block; position: relative; width: 100%; height: 100px; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 10px; background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(13,13,13,.06);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tpl-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.92));
  pointer-events: none;
}
.tpl:hover .tpl-box { border-color: var(--accent); box-shadow: 0 10px 28px rgba(13,13,13,.13); }
.tpl-box .cv-page {
  position: absolute; top: 0; left: 0; width: 595px; min-height: 842px;
  margin: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  pointer-events: none;
}
.tpl-n { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tpl-d {
  font-size: 11px; color: var(--ink3); line-height: 1.35; margin-top: 1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tpl:hover .tpl-n { color: var(--accent); }

/* ── Exemples de formulation : le cœur utile de la page ── */
.mt-ex { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; margin: 16px 0 22px; }
.mt-ex-row { display: grid; grid-template-columns: 1fr; }
.mt-ex-row + .mt-ex-row { border-top: 1px solid var(--rule); }
.mt-ex-bad, .mt-ex-good { padding: 14px 16px; font-size: 14.5px; line-height: 1.6; }
.mt-ex-bad { background: var(--ivory2); color: var(--ink3); }
.mt-ex-good { color: var(--ink); }
.mt-ex-bad b, .mt-ex-good b {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; font-weight: 600;
}
.mt-ex-bad b { color: var(--ink3); }
.mt-ex-good b { color: #0E7C50; }   /* le vert de validation de /app */

/* ── Questions fréquentes ── */
.mt-faq details {
  border: 1px solid var(--rule); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; background: var(--ivory);
}
.mt-faq details[open] { border-color: var(--ink3); }
.mt-faq summary { font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.mt-faq details p { font-size: 14.5px; line-height: 1.72; color: var(--ink2); margin: 11px 0 0; }

/* ── Appel à l'action ── */
.mt-cta {
  margin-top: 36px; border: 1px solid var(--rule); border-radius: 16px;
  padding: 26px 20px; text-align: center; background: var(--ivory2);
}
.mt-cta h2 {
  font-family: var(--font-title); font-weight: 400;
  font-size: 22px; letter-spacing: -.022em; line-height: 1.2;
  margin-bottom: 8px; color: var(--ink);
}
.mt-cta p { font-size: 14.5px; color: var(--ink2); margin-bottom: 18px; }
.mt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; border: 1px solid var(--accent);
  transition: all var(--transition);
}
.mt-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }

/* ── Maillage interne ── */
.mt-links { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.mt-links h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 14px;
}
.mt-links .row { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-links a {
  font-size: 13.5px; color: var(--ink2); text-decoration: none;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 11px 15px; min-height: 42px; display: inline-flex; align-items: center;
  transition: all var(--transition);
}
.mt-links a:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 700px) {
  .mt-wrap { padding: 120px 28px 60px; }
  .mt-lede { font-size: 17px; }
  .tpl { width: 166px; }
  .tpl-box { height: 112px; }
  /* Le « avant / après » se lit mieux côte à côte dès qu'il y a la
     place ; empilé, la comparaison se perd au défilement. */
  .mt-ex-row { grid-template-columns: 1fr 1fr; }
  .mt-ex-bad { border-right: 1px solid var(--rule); }
  .mt-btn { width: auto; }
}
