/* TRIBVN — site vitrine (refonte 2026) */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1b1918;
  --ink-soft: #57524e;
  --line: #e7e2dc;
  --red: #9d2a1e;
  --red-dark: #7a1f15;
  --red-tint: #f6ebe8;
  --radius: 18px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(27, 25, 24, .04), 0 12px 32px -12px rgba(27, 25, 24, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 245, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  color: var(--ink) !important;
  background: var(--surface);
}
.lang:hover { border-color: var(--red); color: var(--red) !important; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 72px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 18ch;
}

.hero h1 em { font-style: normal; color: var(--red); }

.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Sociétés ---------- */

.companies { padding: 8px 0 96px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(27,25,24,.05), 0 24px 48px -16px rgba(27,25,24,.22); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #efe9e3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .6s ease, transform .8s ease;
}
.card:hover .card-media img { filter: none; transform: scale(1.03); }


.card-body { padding: 28px 32px 36px; display: flex; flex-direction: column; flex: 1; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  margin-bottom: 18px;
}
.card-head .logo { height: 100%; display: flex; align-items: center; }
.card-head .logo img { width: auto; max-width: 200px; }
.card-head .logo-tlife img { height: 64px; }
.card-head .logo-tribun img { height: 40px; }
.card-head .tag { margin-bottom: 0; }

.tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.card h2 { font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 6px; }
.card .subtitle { font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.card p { color: var(--ink-soft); margin: 0 0 18px; }

.features { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 12px; }
.features li {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.features strong { color: var(--ink); font-weight: 600; }

.cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  transition: background .25s ease, gap .25s ease;
}
.cta:hover { background: var(--red); color: #fff; gap: 14px; }
.cta svg { width: 16px; height: 16px; }

/* ---------- Tribvn Imaging (bandeau discret) ---------- */

.imaging { padding: 0 0 88px; }

.imaging-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  background: transparent;
}
.imaging-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a837c;
  margin-bottom: 8px;
}
.imaging-strip h3 { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -.015em; }
.imaging-strip p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; max-width: 72ch; }
.imaging-strip p.imaging-owner { margin: 0 0 12px; font-size: 13.5px; color: #8a837c; }
.imaging-strip p.imaging-lead { color: var(--ink); font-weight: 500; }

.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
}

.imaging-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.stat strong { display: block; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: 13.5px; color: #8a837c; }

.imaging-strip a.more {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- Histoire ---------- */

.history { border-top: 1px solid var(--line); padding: 80px 0; }

.history .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }

.history h2 { font-size: 1.6rem; letter-spacing: -.015em; margin: 0; line-height: 1.2; }

.history p { color: var(--ink-soft); margin: 0 0 16px; max-width: 65ch; }

.history .note {
  font-size: 14.5px;
  color: #7a736d;
  border-left: 2px solid var(--line);
  padding-left: 16px;
  margin-top: 24px;
}
.history .note a { color: #7a736d; text-decoration: underline; text-underline-offset: 3px; }
.history .note a:hover { color: var(--ink); }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--ink);
  color: #c9c2bb;
  font-size: 14.5px;
  padding: 40px 0;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer strong { color: #fff; letter-spacing: .08em; }
.site-footer a { color: #c9c2bb; }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .history .wrap { grid-template-columns: 1fr; gap: 20px; }
  .imaging-strip { grid-template-columns: 1fr; gap: 24px; }
  .imaging-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .hero { padding: 64px 0 48px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 62px; }
  .brand img { height: 38px; }
  .nav a:not(.lang) { display: none; }
  .card-body { padding: 24px 22px 28px; }
  .features li { grid-template-columns: 1fr; gap: 2px; }
  .card-head { height: 52px; }
  .card-head .logo-tlife img { height: 52px; }
  .card-head .logo-tribun img { height: 32px; }
  .imaging-strip { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.nowrap { white-space: nowrap; }
