/* ===== mesoutils.com — style partagé des pages de contenu ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg:#F5F5FA;--surface:#FFFFFF;--ink:#15151F;--muted:#6A6A7C;
  --line:#E6E6EF;--brand:#4F46E5;--brand-soft:#EEEDFD;
  --radius:16px;--shadow:0 1px 2px rgba(20,20,40,.04),0 8px 24px rgba(20,20,40,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3,.brand{font-family:'Space Grotesk',sans-serif;letter-spacing:-.02em}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:760px;margin:0 auto;padding:0 20px}

/* Header */
header{position:sticky;top:0;z-index:50;background:rgba(245,245,250,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;max-width:980px;margin:0 auto;padding:0 20px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand .dot{width:30px;height:30px;border-radius:9px;background:var(--brand);position:relative;flex:none;box-shadow:inset 0 0 0 4px rgba(255,255,255,.25)}
.brand .dot::after{content:"";position:absolute;inset:9px;border-radius:3px;background:#fff;opacity:.9}
.brand small{color:var(--muted);font-weight:500;font-family:'Inter'}
.nav-links{display:flex;gap:6px}
.nav-links a{font-size:14px;font-weight:500;color:var(--muted);padding:8px 12px;border-radius:9px}
.nav-links a:hover{background:var(--surface);color:var(--ink);text-decoration:none}

/* Ad slot */
.ad{margin:18px auto;max-width:760px;border:1px dashed var(--line);border-radius:12px;min-height:90px;display:flex;align-items:center;justify-content:center;color:#B3B3C2;font-size:12px;letter-spacing:.08em;text-transform:uppercase;background:repeating-linear-gradient(45deg,#fafafd,#fafafd 10px,#f4f4fa 10px,#f4f4fa 20px)}

/* Article */
main{padding:36px 0 20px}
.eyebrow{display:inline-block;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);background:var(--brand-soft);padding:6px 12px;border-radius:100px;margin-bottom:16px}
article h1{font-size:clamp(28px,5vw,40px);line-height:1.1;margin-bottom:10px}
article .lead{font-size:18px;color:var(--muted);margin-bottom:26px}
article h2{font-size:23px;margin:34px 0 12px}
article h3{font-size:18px;margin:24px 0 8px}
article p{margin-bottom:14px}
article ul,article ol{margin:0 0 16px 22px}
article li{margin-bottom:7px}
article .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;margin:22px 0}
article strong{color:var(--ink)}
.updated{font-size:13px;color:var(--muted);margin-bottom:26px}
.toc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px;margin-bottom:30px}
.toc strong{display:block;font-family:'Space Grotesk';margin-bottom:10px}
.toc a{display:block;padding:4px 0;color:var(--muted)}
.toc a:hover{color:var(--brand)}
.btn{display:inline-block;font-weight:600;color:#fff;background:var(--brand);border:none;border-radius:11px;padding:12px 20px;cursor:pointer;margin-top:8px}
.btn:hover{filter:brightness(1.08);text-decoration:none;color:#fff}

/* Contact form */
.field{margin-bottom:16px}
label{display:block;font-size:13.5px;font-weight:600;margin-bottom:7px;color:var(--ink)}
input,textarea{width:100%;font-family:inherit;font-size:15px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:#fbfbfe}
input:focus,textarea:focus{outline:none;border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px var(--brand-soft)}
textarea{resize:vertical;min-height:120px}

/* Footer */
footer{margin-top:50px;border-top:1px solid var(--line);background:var(--surface)}
.foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;padding:34px 20px;max-width:980px;margin:0 auto}
.foot p{color:var(--muted);font-size:13.5px;max-width:320px}
.foot-links{display:flex;flex-direction:column;gap:8px;font-size:13.5px}
.foot-links strong{color:var(--ink);font-size:13.5px}
.foot-links a{color:var(--muted)}
.foot-links a:hover{color:var(--ink)}
.copyright{text-align:center;padding:16px;color:#B3B3C2;font-size:12.5px;border-top:1px solid var(--line)}

@media(max-width:600px){.nav-links{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
