/* Portail Fidura: large, readable, high contrast. Colors of the Fidura brand. */
:root {
  --navy: #1f3a5f; --navy-dark: #162a45; --night: #12233a; --gold: #b8913a; --gold-light: #e8cf8f;
  --paper: #f7f5f0; --text: #23272f; --muted: #545b67; --line: #dfe3ea; --line-soft: #eef0f4;
  --ok: #1f6f43; --error: #a32121;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-size: 19px; line-height: 1.55; }
a { color: var(--navy); } a:hover { color: var(--navy-dark); }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; color: var(--navy); }
h1 { font-size: 40px; margin: 0; line-height: 1.2; }
h2 { font-size: 26px; margin: 0; }
h3 { font-size: 21px; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.small { font-size: 16px; }

/* Header */
.top { color: #fff; background: radial-gradient(900px 300px at 85% 0%, #2b4d78 0%, transparent 60%),
  linear-gradient(160deg, var(--navy) 0%, var(--night) 100%); }
.top > .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand { align-items: center; }
.brand .logo { display: block; line-height: 0; }
.brand .logo img { height: 72px; width: auto; display: block; }
@media (max-width: 860px) { .brand .logo img { height: 40px; } }
.brand b { font-family: "Source Serif 4", Georgia, serif; font-size: 30px; font-weight: 600; letter-spacing: .5px; }
.brand span, .who { font-size: 17px; color: #dbe4f0; }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.top form { margin: 0; }
.btn-outline-light { font: inherit; font-size: 17px; color: #fff; background: transparent;
  border: 1px solid #8fa5c2; border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
nav.menu { background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.08); }
nav.menu .wrap { display: flex; flex-wrap: wrap; gap: 4px; }
nav.menu a { color: #dbe4f0; text-decoration: none; padding: 14px 18px; font-weight: 600; }
nav.menu a.on { color: #fff; font-weight: 700; box-shadow: inset 0 -4px 0 var(--gold); }
nav.menu a:hover { color: #fff; }
.services-menu { position: relative; }
.services-menu summary { list-style: none; cursor: pointer; color: #dbe4f0; padding: 14px 18px; font-weight: 600; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary:hover, .services-menu[open] summary { color: #fff; }
.services-menu summary.on { color: #fff; font-weight: 700; box-shadow: inset 0 -4px 0 var(--gold); }
.services-panel { position: absolute; left: 0; top: 100%; z-index: 20; min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 8px 0; }
nav.menu .services-panel a { display: block; color: var(--navy); padding: 12px 20px; font-weight: 600; }
nav.menu .services-panel a:hover, nav.menu .services-panel a.current { background: #f1f4f8; color: var(--navy-dark); }
.relative-band { background: #fbf3df; border-bottom: 1px solid #ecdcb0; }
.relative-band .wrap { padding-top: 14px; padding-bottom: 14px; }

main { padding: 36px 0 56px; }
main .wrap { display: flex; flex-direction: column; gap: 24px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head p { margin: 6px 0 0; color: var(--muted); }
.tag-demo { background: #fff4d6; color: #6b4e0a; border: 1px solid #ecd28f; border-radius: 999px;
  padding: 4px 14px; font-size: 15px; font-weight: 600; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } h1 { font-size: 32px; } .wrap { padding: 0 16px; } }
.figure h2 { font-family: inherit; font-size: 17px; font-weight: 600; color: var(--muted); }
.figure .big { font-size: 36px; font-weight: 700; color: var(--navy); margin: 6px 0 4px; }
.figure .big.green { color: var(--ok); }
.figure p { margin: 0; color: var(--muted); font-size: 16px; }
.mini .label { font-size: 16px; color: var(--muted); } .mini .value { font-size: 26px; font-weight: 700; color: var(--navy); }

.bar { height: 22px; background: #e8edf3; border-radius: 999px; overflow: hidden; margin: 16px 0 8px; }
.bar div { height: 100%; background: linear-gradient(90deg, var(--navy), #3d6597); border-radius: 999px; }
.bar-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 16px; color: var(--muted); }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 18px; }
th { text-align: left; color: var(--muted); font-size: 16px; font-weight: 600; padding: 12px 8px; border-bottom: 2px solid var(--line); }
td { padding: 13px 8px; border-bottom: 1px solid var(--line-soft); }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.pill { background: #eef2f7; color: var(--navy); border-radius: 999px; padding: 3px 12px; font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Buttons and forms */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 10px; padding: 12px 20px; border: 2px solid var(--navy); min-height: 48px; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--night); } .btn-primary:hover { background: #a7822f; border-color: #a7822f; color: var(--night); }
.btn-secondary { background: #fff; color: var(--navy); } .btn-secondary:hover { background: #f1f4f8; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-block { display: block; width: 100%; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters a { text-decoration: none; font-size: 17px; font-weight: 700; border-radius: 999px; padding: 10px 20px;
  min-height: 44px; background: #fff; color: var(--navy); border: 2px solid #b9c2cf; }
.filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=email], input[type=text], input[type=password] { width: 100%; font: inherit; font-size: 20px;
  padding: 12px 14px; border: 2px solid #9aa6b6; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, .btn:focus, a:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.error { color: var(--error); font-weight: 600; }
.notice { background: #eef4ec; border: 1px solid #c9dcc4; color: #1f4d2c; border-radius: 10px; padding: 12px 16px; }
.demo-box { background: #fff4d6; border: 1px solid #ecd28f; color: #4d3907; border-radius: 10px; padding: 12px 16px; }

/* Login */
.login { max-width: 560px; margin: 0 auto; }
.login .card { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.help-box { background: #eef2f7; border-radius: 10px; padding: 14px 18px; font-size: 17px; }

/* Lists */
.row-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.row-item:last-child { border-bottom: 0; }
.row-item .name { font-weight: 700; } .row-item .detail { font-size: 16px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.check .state { margin-left: auto; font-weight: 700; font-size: 16px; }
.yes { color: var(--ok); } .no { color: #5b6370; }

/* Coffret */
.vault-banner { background: var(--night); color: #fff; border-radius: 14px; padding: 26px 30px; display: flex;
  flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 4px solid var(--gold); }
.vault-banner h2 { color: #fff; } .vault-banner p { margin: 4px 0 0; color: #c9d3e1; }
.vault-page { background: var(--night); color: #f2f4f7; min-height: 100vh; display: flex; flex-direction: column; }
.vault-page h1 { color: #fff; } .vault-page a { color: var(--gold-light); }
.vault-top { border-bottom: 1px solid #2a3f5c; } .vault-top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.vault-top a { color: #dbe4f0; font-weight: 600; text-decoration: none; }
.vault-center { flex: 1; display: flex; justify-content: center; padding: 56px 24px; }
.vault-center .box { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.vault-center input { font-size: 32px; letter-spacing: 14px; text-align: center; border: 2px solid var(--gold);
  background: #0d1a2c; color: #fff; max-width: 360px; }
.vault-tagline { color: var(--gold-light); font-weight: 600; letter-spacing: 1px; font-size: 16px; margin: 6px 0 0; }
.vault-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 16px; color: #b9c6d8;
  border-top: 1px solid #2a3f5c; padding-top: 18px; width: 100%; }
.vault-head { background: var(--night); color: #fff; }
.vault-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.vault-head b { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; }
.vault-head form { margin: 0; }
.vault-head .btn-outline-light { border-color: var(--gold); color: var(--gold-light); }
.asset h3 { display: flex; justify-content: space-between; gap: 8px; }
.asset .count { font-family: "Source Sans 3", sans-serif; font-size: 15px; color: var(--muted); font-weight: 600; }
.asset .item { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.asset .item:last-child { border-bottom: 0; }

footer.bottom { background: var(--night); color: #9fb0c6; font-size: 15px; }
footer.bottom .wrap { padding-top: 18px; padding-bottom: 18px; }
.vault-page footer.bottom { border-color: #2a3f5c; color: #9fb0c6; }

/* Login: the same look as the front page of fidura.ca (gradient, photo, gold) */
.login-page .top { position: absolute; left: 0; right: 0; background: transparent; z-index: 2; }
.login-page .brand .logo img { height: 96px; }
.login-hero .hero-photo { align-self: end; }  /* bottom aligned with the login box */
.login-hero { color: #fff; background: radial-gradient(1200px 520px at 85% 20%, #2b4d78 0%, transparent 60%),
  linear-gradient(160deg, var(--navy) 0%, var(--night) 100%); }
.login-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding-top: 180px; padding-bottom: 90px; }
.login-hero .eyebrow { display: inline-block; color: var(--gold-light); font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 14px; margin-bottom: 14px; }
.login-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0 0 14px; }
.login-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.login-hero .lead { color: #d6deea; font-size: 1.15rem; margin: 0 0 24px; max-width: 32em; }
.login-hero .login-box { max-width: 520px; color: var(--text); }
.login-hero .login-box .card { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.login-hero .login-box > div:last-child .btn-secondary { background: transparent; color: #fff; border-color: rgba(219,228,240,.55); }
.hero-photo { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; justify-self: center;
  object-position: center 30%; border-radius: 24px; border: 4px solid rgba(232,207,143,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (max-width: 860px) {
  .login-hero .wrap { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-photo { max-width: 280px; order: -1; }
  .login-page .brand .logo img { height: 64px; }
  .login-hero .hero-photo { align-self: center; }
  .brand .logo img { height: 48px; }
}

/* "Besoin d'aide ?" at the top right of the login pages, like "Accès partenaires" on fidura.ca */
.help-pill { position: relative; }
.help-pill summary { list-style: none; cursor: pointer; color: #dbe4f0; font-weight: 600; font-size: 16px;
  border: 1px solid rgba(219,228,240,.45); border-radius: 999px; padding: 8px 18px; }
.help-pill summary::-webkit-details-marker { display: none; }
.help-pill summary:hover, .help-pill[open] summary { border-color: var(--gold-light); color: #fff; }
.help-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(360px, 90vw);
  background: #fff; color: var(--text); border-radius: 14px; padding: 18px 20px; box-shadow: 0 16px 40px rgba(0,0,0,.3);
  font-size: 16px; }
.help-panel p { margin: 0 0 10px; } .help-panel p:last-child { margin: 0; color: var(--muted); }
