/* ============================================================
   Intranet Groupe Bertrand — styles repris du design « Warm start page »
   ============================================================ */
:root {
  --navy: #0f2740;
  --lime: #D4ED64;
  --olive: #6B7F12;
  --bg: #eef1f5;
  --card: #ffffff;
  --line: #dde3ea;
  --line-soft: #f1f4f8;
  --muted: #67788c;
  --muted-2: #8b9bad;
  --muted-3: #9aa8b8;
  --pad-x: clamp(16px, 3vw, 48px);
  --shadow: 0 16px 30px -20px rgba(15, 39, 64, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--navy);
  font-family: Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--olive); }
input, button, select, textarea { font-family: inherit; }
::placeholder { color: var(--muted-3); }
img { max-width: 100%; }
.muted { font-size: 11px; font-weight: 500; color: var(--muted-3); }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- Bandeau ---------- */
.topbar { background: var(--navy); color: #fff; padding: 20px var(--pad-x); }
.topbar__inner { max-width: 1560px; margin: 0 auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; }
.topbar__logo { display: flex; align-items: center; width: clamp(104px, 10vw, 140px); height: 52px; }
.topbar__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.topbar__logo span { color: #9db2c9; font-size: 12px; }
.topbar__sep { width: 2px; height: 44px; background: var(--lime); border-radius: 2px; }
.topbar__titles { display: flex; flex-direction: column; gap: 3px; }
.topbar__kicker { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.topbar__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.topbar__clock { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.clock { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dateline { font-size: 11px; font-weight: 500; color: #9db2c9; letter-spacing: .03em; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--navy); }
.avatar:hover { color: var(--navy); box-shadow: 0 0 0 3px rgba(212, 237, 100, .35); }
.login-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background 140ms ease, color 140ms ease; }
.login-btn:hover { background: #fff; color: var(--navy); }

/* ---------- Page ---------- */
.page { max-width: 1560px; margin: 0 auto; padding: clamp(24px, 3vw, 44px) var(--pad-x) 56px; display: flex; flex-direction: column; gap: clamp(26px, 3vw, 40px); }

/* ---------- Bienvenue ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero__text { display: flex; flex-direction: column; gap: 10px; flex: 1 1 380px; min-width: 0; }
.hero__title { margin: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; max-width: 22ch; text-wrap: pretty; }
.hero__title em { font-style: normal; color: var(--olive); }
.hero__lead { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.stats { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; flex: 0 1 auto; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px clamp(16px, 1.8vw, 30px); border-right: 1px solid var(--bg); }
.stat:last-child { border-right: none; }
.stat__label { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.stat__value { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.stat__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ---------- Recherche ---------- */
.search { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.search__bar { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 16px); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 8px 7px clamp(18px, 2vw, 28px); box-shadow: 0 18px 36px -26px rgba(15, 39, 64, .45); transition: border-color 140ms ease; }
.search__bar:focus-within { border-color: var(--navy); }
.search__icon { width: 17px; height: 17px; border: 2px solid var(--navy); border-radius: 50%; flex: none; position: relative; }
.search__icon::after { content: ""; position: absolute; width: 2px; height: 8px; background: var(--navy); bottom: -7px; right: -2px; transform: rotate(-45deg); border-radius: 2px; }
.search__bar input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 16.5px; font-weight: 500; color: var(--navy); padding: 14px 0; letter-spacing: -.01em; }
.search__bar button { border: none; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 14px clamp(18px, 2.4vw, 30px); border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background 140ms ease, color 140ms ease; }
.search__bar button:hover { background: var(--navy); color: var(--lime); }
.search__scopes { display: flex; gap: 8px; padding-left: 8px; flex-wrap: wrap; }
.search__scopes a { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 15px; transition: all 140ms ease; }
.search__scopes a:hover, .search__scopes a.is-active { color: var(--navy); border-color: var(--navy); }

/* ---------- Sections ---------- */
.section { display: flex; flex-direction: column; gap: 16px; }
.section__head { display: flex; align-items: center; gap: 14px; }
.section__bar { width: 26px; height: 3px; background: var(--lime); border-radius: 2px; flex: none; }
.section__head h2 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section__hint { font-size: 11px; font-weight: 500; color: var(--muted-3); margin-left: auto; white-space: nowrap; }
.section__link { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--olive); margin-left: auto; }

/* ---------- Applications ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy); color: var(--navy); }
.tile__icon { position: relative; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.tile__mark { font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.tile__logo { position: absolute; inset: 0; background: #fff; display: flex; align-items: center; justify-content: center; }
.tile__logo img { width: 26px; height: 26px; object-fit: contain; }
.tile__text { display: flex; flex-direction: column; }
.tile__name { font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.tile__host { font-size: 10.5px; font-weight: 500; color: var(--muted-3); margin-top: 3px; overflow-wrap: anywhere; }

/* ---------- Actualités ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.news__lead { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow 150ms ease, border-color 150ms ease; }
.news__lead:hover { box-shadow: 0 16px 32px -20px rgba(15, 39, 64, .4); border-color: var(--navy); color: var(--navy); }
.news__visual { flex: 1 1 auto; min-height: 200px; position: relative; background: linear-gradient(135deg, #dde3ea, #c9d3de); }
.news__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.news__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--lime); border-radius: 999px; padding: 4px 10px; }
.news__title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; }
.news__blurb { font-size: 12.5px; font-weight: 500; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.news__more { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin-top: 2px; }
.news__list { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.news__item { display: flex; flex-direction: column; gap: 6px; padding: 15px 16px; border-radius: 12px; border-bottom: 1px solid var(--line-soft); transition: background 140ms ease; }
.news__item:last-child { border-bottom: none; }
.news__item:hover { background: #f6f8fa; color: var(--navy); }
.news__itemmeta { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.when { margin-left: auto; font-size: 10.5px; }
.news__itemtitle { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; text-wrap: pretty; }

/* ---------- Page Actualités ---------- */
.back { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--olive); }
.filters { padding-left: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow 150ms ease, border-color 150ms ease; }
.card:hover { box-shadow: 0 16px 32px -20px rgba(15, 39, 64, .4); border-color: var(--navy); color: var(--navy); }
.card__visual { height: 160px; position: relative; background: linear-gradient(135deg, #dde3ea, #c9d3de); }
.card__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.card__title { font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.pager { display: flex; gap: 6px; justify-content: center; }
.pager a { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: 12px; font-weight: 700; }
.pager a.is-active { background: var(--navy); color: var(--lime); border-color: var(--navy); }
.empty { color: var(--muted); font-size: 14px; }

/* ---------- Article ---------- */
.article { max-width: 780px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 48px); }
.article__title { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; text-wrap: pretty; }
.article__chapo { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--muted); }
.article__img { width: 100%; border-radius: 12px; }
.article__content { font-size: 14.5px; line-height: 1.7; }
.article__content a { color: var(--olive); text-decoration: underline; }

.flash { padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; background: #e7f5ec; color: #1f6b3e; }
.flash--warn { background: #fdf3dc; color: #8a5d00; }
.flash--err { background: #fbe4e4; color: #9b2c2c; }

@media (max-width: 640px) {
  .topbar__sep, .topbar__titles { display: none; }
  .clock { font-size: 20px; }
  .section__hint { display: none; }
  .stats { width: 100%; }
  .stat { flex: 1 1 33%; }
}
