/* =====================================================================
 * style-commun.css — feuille partagee par les sections editoriales
 *                    (/metiers/ et /prix-site-internet-suisse/)
 * ---------------------------------------------------------------------
 * Une seule feuille pour toutes ces pages : elle est mise en cache apres la
 * premiere visite, et les pages suivantes ne coutent plus que leur HTML.
 * Referencee en chemin absolu (/style-commun.css) pour fonctionner depuis
 * n'importe quelle profondeur de dossier.
 * Les jetons de couleur et de typographie sont ceux du reste du site, pour
 * que ces pages n'aient pas l'air rapportees.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * Reprises metriques des polices de secours.
 * Mesure faite le 2026-08-26 sur la police reellement chargee :
 *   Fraunces 100px = 2468 px de large   Georgia = 2844   Times = 2575
 *   Inter    100px = 3029 px de large   Segoe UI = 2822
 * Georgia est 15 % plus large que Fraunces : c'est exactement ce qui
 * produisait le saut de mise en page (CLS 0.174 sur /tarifs/) au moment ou
 * la police d'origine finissait de charger. On corrige la largeur de la
 * police de secours pour que l'echange ne deplace plus rien.
 * ------------------------------------------------------------------- */
@font-face{
  font-family:'Fraunces secours';
  src:local('Times New Roman'),local('Times');
  size-adjust:95.8%;
  ascent-override:92%;
  descent-override:23%;
  line-gap-override:0%;
}
@font-face{
  font-family:'Inter secours';
  src:local('Segoe UI'),local('Arial');
  size-adjust:107.3%;
  ascent-override:90%;
  descent-override:22.4%;
  line-gap-override:0%;
}

:root{
  --bg:#FAF6F0; --bg2:#F3EADF; --dark:#140E0B;
  --ink:#241C16; --cream:#F4ECE2; --cream-dim:#C7B7A4;
  --accent:#D2674A; --accent-dk:#B14D2E; --accent-lt:#E8A07F;
  --gold:#C8A96E;
  --muted:#6C635B; --line:#E9E0D4; --card:#FFFFFF;
  --font-display:"Fraunces",'Fraunces secours',Georgia,serif;
  --font-body:"Inter",'Inter secours',system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow:0 1px 2px rgba(20,14,11,.05),0 18px 40px -16px rgba(20,14,11,.18);
  --r:18px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{font:17px/1.65 var(--font-body);color:var(--ink);background:var(--bg);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
a{color:inherit}

.wrap{max-width:1080px;margin:0 auto;padding:0 24px}
.narrow{max-width:720px}

h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.1;letter-spacing:-.015em}
h1{font-size:clamp(2.05rem,4.6vw,3.15rem)}
h2{font-size:clamp(1.5rem,2.9vw,2.1rem)}
h3{font-size:1.09rem;line-height:1.28}

/* ===== en-tete ===== */
header.mt-hd{position:sticky;top:0;z-index:30;background:rgba(250,246,240,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.mt-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;height:68px}
.mt-brand{font-family:var(--font-display);font-weight:600;font-size:1.16rem;text-decoration:none;line-height:1.1}
.mt-brand span{color:var(--accent-dk)}
.mt-brand small{display:block;font-family:var(--font-body);font-size:.66rem;font-weight:500;
  letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-top:3px}
.mt-links{display:flex;align-items:center;gap:22px;font-size:.92rem}
.mt-links a{text-decoration:none;color:var(--muted);transition:color .15s}
.mt-links a:hover,.mt-links a[aria-current]{color:var(--ink)}
/* Le selecteur « .mt-links a » (0,1,1) l'emporte sur « .btn » (0,1,0) : sans
   cette ligne le libelle du bouton heritait du gris de la navigation sur fond
   orange — contraste mesure 1.11:1, texte invisible. */
.mt-links a.btn{color:#fff}
.mt-links a.btn:hover{color:#fff}
@media(max-width:800px){.mt-links a:not(.btn){display:none}}

.btn{display:inline-flex;align-items:center;gap:.5em;background:var(--accent-dk);color:#fff;
  font-weight:600;font-size:.95rem;padding:13px 24px;border-radius:999px;text-decoration:none;
  border:0;cursor:pointer;transition:background .15s,transform .15s;white-space:nowrap}
.btn:hover{background:#943f26;transform:translateY(-1px)}
.btn.ghost{background:transparent;color:var(--accent-dk);border:1.5px solid var(--accent-dk)}
.btn.ghost:hover{background:rgba(210,103,74,.08);transform:none}

/* ===== fil d'ariane ===== */
.mt-fil{font-size:.8rem;color:var(--muted);padding:20px 0 0}
.mt-fil a{text-decoration:none;border-bottom:1px solid var(--line)}
.mt-fil a:hover{border-color:var(--accent)}
.mt-fil span[aria-current]{color:var(--ink)}

/* ===== hero ===== */
.mt-hero{padding:26px 0 clamp(46px,6vw,72px)}
.mt-eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.17em;text-transform:uppercase;
  color:var(--accent-dk);display:inline-flex;align-items:center;gap:.7em;margin-bottom:16px}
.mt-eyebrow::before{content:"";width:26px;height:1px;background:var(--accent)}
.mt-hero h1{max-width:16ch}
.mt-hero h1 em{font-style:italic;color:var(--accent-dk)}
.mt-lead{font-size:1.14rem;color:#43392f;margin-top:20px;max-width:56ch}
.mt-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

/* le moment cle — la phrase qui doit etre fausse pour tout autre metier */
.mt-moment{margin:clamp(40px,5vw,60px) 0 0;padding:26px 30px;border-left:3px solid var(--accent);
  background:var(--bg2);border-radius:0 var(--r) var(--r) 0}
.mt-moment p{font-family:var(--font-display);font-size:clamp(1.15rem,2.1vw,1.42rem);
  line-height:1.38;font-style:italic;max-width:44ch}
.mt-moment small{display:block;margin-top:12px;font-size:.74rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--muted);font-style:normal}

/* ===== sections ===== */
section{padding:clamp(48px,6.5vw,84px) 0}
.mt-sec-t{margin-bottom:36px;max-width:56ch}
.mt-sec-t h2{max-width:24ch}
.mt-sec-t p{font-size:1.02rem;color:var(--muted);margin-top:12px;max-width:52ch}

.mt-grid{display:grid;gap:20px}
.mt-grid.g3{grid-template-columns:repeat(3,1fr)}
.mt-grid.g2{grid-template-columns:repeat(2,1fr)}
@media(max-width:860px){.mt-grid.g3{grid-template-columns:1fr}.mt-grid.g2{grid-template-columns:1fr}}

.mt-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);
  padding:26px 24px 28px}
.mt-card h3{margin-bottom:10px}
.mt-card p{font-size:.97rem;color:#4a4038}
.mt-card .n{display:block;font-family:var(--font-display);font-size:.86rem;color:var(--accent);
  margin-bottom:12px;font-variant-numeric:tabular-nums}

.mt-probs{background:var(--bg2)}

/* ===== demo ===== */
.mt-demo{background:var(--dark);color:var(--cream)}
.mt-demo h2{color:var(--cream)}
.mt-demo .mt-sec-t p{color:var(--cream-dim)}
.mt-shot{border-radius:var(--r);overflow:hidden;border:1px solid rgba(200,169,110,.22);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.6);margin-top:8px}
.mt-shot img{width:100%}
.mt-demo-bas{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:26px}
.mt-avert{font-size:.86rem;color:var(--cream-dim);max-width:46ch;line-height:1.5}
.mt-avert b{color:var(--gold);font-weight:600}

/* ===== prix ===== */
.mt-prix{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:30px 32px}
.mt-prix p{max-width:44ch;color:#4a4038;font-size:.99rem}
.mt-prix strong{font-family:var(--font-display);font-size:1.3rem;display:block;margin-bottom:8px;color:var(--ink)}

/* ===== faq ===== */
.mt-faq{border-top:1px solid var(--line)}
.mt-q{border-bottom:1px solid var(--line);padding:22px 0}
.mt-q h3{margin-bottom:9px}
.mt-q p{color:#4a4038;font-size:.99rem;max-width:62ch}

/* ===== autres metiers ===== */
.mt-autres{background:var(--bg2)}
.mt-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.mt-tags a{background:var(--card);border:1px solid var(--line);border-radius:999px;
  padding:9px 18px;font-size:.9rem;text-decoration:none;color:#4a4038;transition:.15s}
.mt-tags a:hover{border-color:var(--accent);color:var(--accent-dk)}

/* ===== appel final ===== */
.mt-fin{background:var(--dark);color:var(--cream);text-align:center}
.mt-fin h2{color:var(--cream);max-width:20ch;margin:0 auto}
.mt-fin p{color:var(--cream-dim);margin:16px auto 0;max-width:48ch}
.mt-fin .mt-actions{justify-content:center}
.mt-fin .btn.ghost{color:var(--gold);border-color:rgba(200,169,110,.5)}
.mt-fin .btn.ghost:hover{background:rgba(200,169,110,.1)}

/* ===== pied ===== */
footer.mt-ft{background:var(--dark);color:var(--cream-dim);padding:46px 0 40px;
  border-top:1px solid rgba(200,169,110,.16);font-size:.88rem}
.mt-ft a{color:var(--cream-dim);text-decoration:none}
.mt-ft a.btn{color:#fff}
.mt-ft a:hover{color:var(--gold)}
.mt-ft nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0 20px}
.mt-ft .mt-brand{color:var(--cream)}
.mt-ft .mt-brand span{color:var(--gold)}
.mt-ft small{display:block;line-height:1.7}

/* ===== index /metiers/ ===== */
.mt-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:20px;margin-top:34px}
.mt-tuile{background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
  text-decoration:none;display:flex;flex-direction:column;transition:border-color .18s,transform .18s}
.mt-tuile:hover{border-color:var(--accent-lt);transform:translateY(-3px)}
.mt-tuile img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top center}
.mt-tuile .t{padding:20px 22px 24px}
.mt-tuile h3{margin-bottom:7px}
.mt-tuile p{font-size:.92rem;color:var(--muted);line-height:1.5}
.mt-tuile .fl{margin-top:14px;font-size:.86rem;font-weight:600;color:var(--accent-dk)}
