/* MAT Consulting — site vitrine statique. Design sobre & professionnel. 2026-05-25 */

:root {
  --ink: #1a2230;
  --ink-soft: #4a5568;
  --muted: #7a869a;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --line: #e4e8ee;
  --brand: #15406b;       /* bleu nuit sobre */
  --brand-2: #2c7a7b;     /* accent discret */
  --tag-transport: #15406b;
  --tag-grossiste: #2c7a7b;
  --tag-resto: #9a3412;
  --tag-conseil: #4a5568;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.brand span { color: var(--brand-2); font-weight: 600; margin-left: 2px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: 0.93rem; font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: none; }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0f2a47 0%, #15406b 60%, #1c5079 100%);
  color: #fff;
  padding: 104px 0 92px;
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  top: -30%; right: -10%; width: 60%; height: 130%;
  background: radial-gradient(closest-side, rgba(120,170,220,0.22), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.74rem; color: #cfe0f1; margin: 0 0 18px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 15px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 16px; color: #fff; letter-spacing: -0.03em; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 620px; color: #dbe7f3; margin: 0 0 32px; }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: transform .08s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--brand); }
.btn-primary:hover { background: #eef4fb; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* SECTIONS */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 22px; letter-spacing: -0.02em; }
.section-intro { color: var(--muted); margin-top: -10px; margin-bottom: 30px; }
.section p { color: var(--ink-soft); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px; margin-top: 42px;
}
.stat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 104px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 22px 24px;
  transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease;
}
.stat::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--brand-2);
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(21,64,107,0.12); border-color: transparent; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1.05; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.82rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Tuile mise en avant : « Depuis 2013 » */
.stat-highlight {
  background: linear-gradient(150deg, #0f2a47 0%, #15406b 70%, #1c5079 100%);
  border-color: transparent;
}
.stat-highlight::before { background: var(--brand-2); width: 4px; }
.stat-highlight .stat-num { color: #fff; font-size: 1.9rem; white-space: nowrap; }
.stat-highlight:hover { box-shadow: 0 16px 38px rgba(15,42,71,0.28); }

/* PÔLES & CARTES */
.pole { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-2); margin: 40px 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.pole:first-of-type { margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .18s ease, transform .1s ease;
}
.card:hover { box-shadow: 0 8px 28px rgba(21,64,107,0.10); transform: translateY(-2px); }
.card h4 { margin: 10px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.card em { color: var(--muted); font-style: italic; }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; padding: 3px 10px; border-radius: 999px; }
.tag-transport { background: var(--tag-transport); }
.tag-grossiste { background: var(--tag-grossiste); }
.tag-resto { background: var(--tag-resto); }
.tag-conseil { background: var(--tag-conseil); }

/* CONTACT */
.contact-email { font-size: 1.4rem; font-weight: 700; margin: 8px 0 18px; }
.contact-email a { color: var(--brand); }
.muted { color: var(--muted); font-size: 0.92rem; }

/* LÉGAL */
.legal h3 { font-size: 1.05rem; margin: 28px 0 8px; color: var(--ink); }
.legal p { font-size: 0.95rem; }

/* FOOTER */
.site-footer { background: #0f2a47; color: #c6d4e3; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: #c6d4e3; }
.footer-nav a:hover { color: #fff; }

/* SOUS-PAGES (légal) */
.subpage-hero { background: linear-gradient(160deg, #0f2a47, #15406b); color: #fff; padding: 60px 0 44px; }
.subpage-hero .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: #9fc1e0; margin: 0 0 10px; }
.subpage-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; letter-spacing: -0.02em; }
.back-home { display: inline-block; margin-bottom: 16px; color: #9fc1e0; font-size: 0.9rem; font-weight: 500; }
.back-home:hover { color: #fff; }

/* Méta entités */
.entity-meta { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.entity-meta strong { color: var(--ink-soft); font-weight: 600; }
.cards.compact .card { padding: 18px; }
.cards.compact .card h4 { font-size: 1.02rem; }
.todo { color: #9a3412; font-style: italic; }

/* Tableau légal */
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 0.94rem; }
.legal-table td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.legal-table td:first-child { color: var(--muted); width: 250px; white-space: nowrap; padding-right: 16px; }

/* ===================================================================
   VALORISATION DES PÔLES / BRANCHES D'ACTIVITÉ  (refonte design)
   =================================================================== */
:root {
  --transport: #15406b;
  --resto: #b45309;     /* ambre chaud */
  --grossiste: #2c7a7b;
}

/* Accents par pôle (cascade via --accent) */
.pole-transport { --accent: var(--transport); }
.pole-resto     { --accent: var(--resto); }
.pole-grossiste { --accent: var(--grossiste); }

/* --- Aperçu : tuiles de pôles --- */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 22px;
  margin-top: 6px;
}
.pole-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px 26px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease;
}
.pole-tile::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent);
}
.pole-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15,42,71,0.14);
  border-color: transparent;
}
.pole-tile-ico {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
}
.pole-tile-ico svg { width: 28px; height: 28px; }
.pole-tile h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.pole-tile p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 18px; }
.pole-tile-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
}
.pole-tile-meta:hover { text-decoration: none; }
.pole-tile-meta::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* --- Sociétés groupées par pôle --- */
.pole-block { scroll-margin-top: 84px; }
.pole-block + .pole-block { margin-top: 18px; }
.pole {
  display: flex; align-items: center; gap: 13px;
  font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink);
  margin: 42px 0 22px; padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.pole-block:first-child .pole { margin-top: 8px; }
.pole-ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}
.pole-ico svg { width: 20px; height: 20px; }
.pole-count {
  margin-left: auto;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: none;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  padding: 5px 12px; border-radius: 999px;
}
.pole-block .card { border-top: 3px solid var(--accent); }

/* Tags alignés sur les accents de pôle */
.tag-resto { background: var(--resto); }

@media (max-width: 640px) {
  .legal-table td:first-child { width: 140px; white-space: normal; }
  .nav { display: none; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 56px 0; }
  .stats { gap: 32px; }
  .pole-count { display: none; }
  .pole { gap: 11px; }
}
