/* ==========================================================================
   Technicien Yao Jacques — Blog d'un technicien bâtiment
   Feuille de style commune
   ========================================================================== */

:root {
  --bg:        #0f1720;
  --bg-soft:   #17222e;
  --surface:   #ffffff;
  --surface-2: #f4f6f8;
  --ink:       #1b2733;
  --ink-soft:  #4a5a6a;
  --line:      #e2e8ee;
  --brand:     #f28c18;   /* orange chantier */
  --brand-2:   #ffb454;
  --accent:    #1f6feb;   /* bleu technique */
  --slate:     #24313f;
  --radius:    14px;
  --shadow:    0 10px 30px -12px rgba(15,23,32,.25);
  --wrap:      1120px;
  --font:      'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,32,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; letter-spacing: .3px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #10161d; font-size: 20px;
  box-shadow: 0 6px 16px -6px var(--brand);
}
.brand small { display: block; font-weight: 500; font-size: 11px; color: #8fa2b3; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: #c7d2dd; font-weight: 600; font-size: 15px;
  padding: 9px 15px; border-radius: 9px; transition: .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--brand-2); }
.nav-cta {
  background: var(--brand); color: #10161d !important; font-weight: 700;
}
.nav-cta:hover { background: var(--brand-2) !important; }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(242,140,24,.22), transparent 60%),
    linear-gradient(180deg, #0f1720, #16222f);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 84px 0 92px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242,140,24,.14); color: var(--brand-2);
  border: 1px solid rgba(242,140,24,.3);
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; letter-spacing: .4px;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.5px; }
.hero h1 span { color: var(--brand-2); }
.hero p.lead { font-size: 1.15rem; color: #b9c6d3; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 0; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #10161d; box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.hero-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.stat-row:last-child { border-bottom: 0; }
.stat-row b { color: var(--brand-2); font-size: 1.5rem; }
.stat-row span { color: #9fb0bf; font-size: 14px; align-self: center; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; font-size: 13px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 8px 0 12px; color: var(--slate); letter-spacing: -.4px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.alt { background: var(--surface-2); }

/* ---------- Grille d'articles ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .22s; box-shadow: 0 1px 2px rgba(15,23,32,.04);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdd8e2; }
.card .thumb { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; color: #fff; font-size: 54px; }
.thumb.t1 { background: linear-gradient(135deg,#1f6feb,#0b3d91); }
.thumb.t2 { background: linear-gradient(135deg,#f28c18,#c2410c); }
.thumb.t3 { background: linear-gradient(135deg,#0ea5a3,#065f5d); }
.thumb.t4 { background: linear-gradient(135deg,#7c3aed,#4c1d95); }
.thumb.t5 { background: linear-gradient(135deg,#dc2626,#7f1d1d); }
.thumb.t6 { background: linear-gradient(135deg,#334155,#0f172a); }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--brand);
  background: #fff3e4; padding: 4px 11px; border-radius: 100px; margin-bottom: 12px; letter-spacing: .3px;
}
.card h3 { font-size: 1.22rem; line-height: 1.3; color: var(--slate); margin-bottom: 10px; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.card .meta { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 13px; color: #8595a4; }
.card .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #c4cfd8; }

/* ---------- Rubriques ---------- */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; transition: .2s;
}
.topic:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.topic .ico { font-size: 30px; margin-bottom: 12px; }
.topic h4 { color: var(--slate); font-size: 1.08rem; margin-bottom: 6px; }
.topic p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Newsletter ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--slate), #0f1720);
  color: #fff; border-radius: 20px; padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: 10px; }
.cta-band p { color: #b9c6d3; max-width: 480px; margin: 0 auto 26px; }
.subscribe { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.subscribe input {
  flex: 1; padding: 14px 16px; border-radius: 11px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: 15px;
}
.subscribe input::placeholder { color: #9fb0bf; }
.subscribe input:focus { outline: 2px solid var(--brand); }

/* ---------- Article page ---------- */
.article-hero { background: var(--bg); color: #fff; padding: 56px 0 40px; }
.crumbs { font-size: 13px; color: #8fa2b3; margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand-2); }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin: 10px 0 16px; letter-spacing: -.5px; max-width: 800px; }
.byline { display: flex; align-items: center; gap: 14px; color: #b9c6d3; font-size: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--brand),var(--brand-2)); display: grid; place-items: center; color: #10161d; font-weight: 800; }

.article-body { padding: 50px 0 70px; }
.prose { max-width: 760px; margin-inline: auto; font-size: 1.08rem; color: #2b3947; }
.prose h2 { font-size: 1.7rem; color: var(--slate); margin: 40px 0 14px; letter-spacing: -.3px; }
.prose h3 { font-size: 1.3rem; color: var(--slate); margin: 30px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 24px 0; }
.prose blockquote {
  border-left: 4px solid var(--brand); background: var(--surface-2);
  padding: 16px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; color: var(--ink-soft); font-style: italic;
}
.callout {
  background: #fff3e4; border: 1px solid #ffd9a8; border-radius: 12px; padding: 20px 22px; margin: 26px 0;
}
.callout b { color: var(--brand); }
.prose code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: .92em; }

.figure-note { text-align: center; font-size: 13px; color: #8595a4; margin-top: -14px; margin-bottom: 24px; }

/* ---------- About / Contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.big-avatar { width: 96px; height: 96px; border-radius: 22px; background: linear-gradient(135deg,var(--brand),var(--brand-2)); display: grid; place-items: center; color: #10161d; font-size: 40px; font-weight: 800; margin-bottom: 18px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skill { background: var(--surface-2); border: 1px solid var(--line); padding: 6px 13px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--slate); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form-note { display: none; margin-top: 14px; padding: 12px 16px; background: #e7f7ee; border: 1px solid #a7e3c1; border-radius: 10px; color: #12744a; font-weight: 600; font-size: 14px; }

.contact-list { list-style: none; margin-top: 24px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; }
.contact-list b { display: block; color: var(--slate); }
.contact-list span { color: var(--ink-soft); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #9fb0bf; padding: 56px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-grid h5 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-grid a { display: block; padding: 5px 0; font-size: 14px; transition: .15s; }
.foot-grid a:hover { color: var(--brand-2); }
.foot-brand p { font-size: 14px; margin-top: 12px; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #c7d2dd; transition: .2s; }
.socials a:hover { background: var(--brand); color: #10161d; }

/* ---------- Page header (blog list, etc.) ---------- */
.page-head { background: var(--bg); color: #fff; padding: 60px 0; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.5px; margin-bottom: 10px; }
.page-head p { color: #b9c6d3; font-size: 1.1rem; max-width: 560px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  padding: 9px 18px; border-radius: 100px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .18s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--slate); color: #fff; border-color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: #0f1720; padding: 16px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); transform: translateY(-140%); transition: .28s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid, .topics { grid-template-columns: 1fr; }
  .subscribe { flex-direction: column; }
  .cta-band { padding: 32px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
}
