/* CNIProSanté — design institutionnel, sobre, confiance.
   Zéro dépendance externe (pas de Google Fonts : RGPD). */

:root {
  --navy: #16324f;
  --navy-deep: #0f2438;
  --teal: #2f7d6d;
  --teal-soft: #e7f1ee;
  --ink: #24313f;
  --muted: #5b6b7b;
  --bg: #f7f7f4;
  --card: #ffffff;
  --border: #e2e5e1;
  --gold: #b08d3f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16.5px; }
img, svg { vertical-align: middle; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-deep); color: #c9d4de; font-size: 13px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar span { letter-spacing: .02em; }

/* ---------- Header ---------- */
header.site { background: #fff; border-bottom: 3px solid var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .mark { flex: none; }
.brand .name { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.brand .sub { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
nav.main { display: flex; gap: 6px; flex-wrap: wrap; }
nav.main a { color: var(--navy); font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 4px; }
nav.main a:hover { background: var(--teal-soft); text-decoration: none; }
nav.main a.active { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 72px 0 64px; }
.hero .overline { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #9fb8c9; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: 42px; line-height: 1.18; font-weight: 700; max-width: 780px; }
.hero p.lede { font-size: 19px; color: #d4dee6; max-width: 700px; margin-top: 20px; }
.hero .disclaimer { display: inline-block; margin-top: 26px; font-size: 13.5px; color: #b9c9d6; border-left: 3px solid var(--gold); padding: 6px 14px; background: rgba(255,255,255,.05); }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 4px; font-weight: 700; font-size: 15.5px; border: 2px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #276a5c; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section.band { padding: 64px 0; }
section.band.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.overline { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 10px; }
h2.section { font-family: var(--serif); font-size: 30px; color: var(--navy); margin-bottom: 18px; line-height: 1.25; }
.section-intro { max-width: 760px; color: var(--muted); margin-bottom: 36px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 28px 26px; display: flex; flex-direction: column; }
.card:hover { border-color: var(--teal); }
.card .icon { width: 44px; height: 44px; border-radius: 6px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--teal); font-family: var(--serif); font-size: 21px; font-weight: 700; }
.card h3 { font-family: var(--serif); font-size: 20.5px; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); flex: 1; }
.card .more { margin-top: 16px; font-weight: 700; font-size: 14.5px; }
.card.topline { border-top: 4px solid var(--navy); }

/* ---------- Listes à puces institutionnelles ---------- */
ul.checks { list-style: none; margin: 18px 0; }
ul.checks li { padding: 7px 0 7px 30px; position: relative; }
ul.checks li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-soft); border: 2px solid var(--teal); }
ul.dashes { list-style: none; margin: 14px 0; }
ul.dashes li { padding: 5px 0 5px 24px; position: relative; }
ul.dashes li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Encadrés ---------- */
.callout { background: var(--teal-soft); border-left: 4px solid var(--teal); padding: 20px 24px; border-radius: 0 6px 6px 0; margin: 26px 0; }
.callout.gray { background: #f0f1ee; border-left-color: var(--muted); }
.callout.navy { background: #eef2f6; border-left-color: var(--navy); }
.callout h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.callout p, .callout li { font-size: 15px; }

/* ---------- Page interne ---------- */
.page-head { background: var(--navy); color: #fff; padding: 46px 0 40px; }
.page-head h1 { font-family: var(--serif); font-size: 34px; line-height: 1.2; max-width: 820px; }
.page-head p { color: #c6d2dc; margin-top: 12px; max-width: 760px; font-size: 17px; }
.breadcrumb { font-size: 13px; color: #9fb8c9; margin-bottom: 14px; }
.breadcrumb a { color: #9fb8c9; }
article.content { padding: 56px 0 72px; }
article.content .container { max-width: 860px; }
article.content h2 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin: 42px 0 14px; }
article.content h2:first-child { margin-top: 0; }
article.content h3 { font-size: 18.5px; color: var(--navy); margin: 28px 0 10px; }
article.content p { margin-bottom: 14px; }
article.content ul { margin-bottom: 14px; }

/* ---------- Charte numérotée ---------- */
.charte-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.charte-item:last-child { border-bottom: none; }
.charte-item .num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.charte-item h3 { margin: 2px 0 6px; }
.charte-item p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Ressources ---------- */
.res-item { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px 22px; margin-bottom: 14px; }
.res-item .tag { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: var(--teal-soft); color: var(--teal); margin-top: 3px; }
.res-item .tag.soon { background: #f3ede0; color: var(--gold); }
.res-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.res-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Bloc transparence pré-footer ---------- */
.trust-band { background: var(--navy-deep); color: #c9d4de; padding: 40px 0; }
.trust-band .container { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.trust-band h3 { font-family: var(--serif); color: #fff; font-size: 21px; margin-bottom: 6px; }
.trust-band p { font-size: 14.5px; max-width: 640px; }
.trust-band a.btn { flex: none; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-deep); color: #9fb0bf; padding: 44px 0 30px; border-top: 1px solid rgba(255,255,255,.08); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
footer.site h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
footer.site a { color: #b9c9d6; font-size: 14.5px; display: block; padding: 3px 0; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; line-height: 1.7; }
footer.site .brandline { font-family: var(--serif); color: #fff; font-size: 19px; margin-bottom: 8px; }

/* ---------- Portail v2 ---------- */
header.site { border-bottom: none; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.masthead-right { text-align: right; }
.masthead-right .mr-title { font-family: var(--serif); color: var(--navy); font-size: 17px; font-weight: 700; }
.masthead-right .mr-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.navband { background: var(--navy); border-bottom: 4px solid var(--teal); }
.navband nav.main { display: flex; flex-wrap: wrap; gap: 0; }
.navband nav.main a { color: #e8eef3; padding: 13px 18px; border-radius: 0; font-size: 14.5px; font-weight: 600; }
.navband nav.main a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.navband nav.main a.active { background: var(--teal); color: #fff; }
.hero-photo { background: linear-gradient(100deg, rgba(15,36,56,.94) 40%, rgba(15,36,56,.55) 100%), url('/assets/img/hero-equipe.jpg') center 30%/cover no-repeat; }
.facts { background: #fff; border-bottom: 1px solid var(--border); padding: 26px 0; }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { text-align: center; border-left: 1px solid var(--border); }
.fact:first-child { border-left: none; }
.fact .n { font-family: var(--serif); font-size: 30px; color: var(--navy); font-weight: 700; }
.fact .l { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card.has-photo { padding: 0; overflow: hidden; }
.card.has-photo img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card.has-photo .card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
a.tile { display: block; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--navy); padding: 20px 22px; }
a.tile:hover { border-left-color: var(--teal); text-decoration: none; }
a.tile h3 { font-family: var(--serif); font-size: 18px; color: var(--navy); margin-bottom: 6px; }
a.tile p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Institutionnel v3 ---------- */
.page-head { border-bottom: 4px solid var(--gold); }
.page-head.ph-photo { background: linear-gradient(100deg, rgba(15,36,56,.95) 35%, rgba(15,36,56,.62) 100%), var(--ph) center 32%/cover no-repeat; padding: 60px 0 52px; }
.photo-band { background: linear-gradient(rgba(15,36,56,.88), rgba(15,36,56,.9)), var(--ph) center 40%/cover no-repeat; color: #fff; padding: 64px 0; }
.photo-band h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 14px; }
.photo-band p { color: #ccd7e0; max-width: 780px; font-size: 17px; }
.photo-band .overline { color: #9fb8c9; }
article.content h2 { border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.meta-plate { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 12px 18px; font-size: 13.5px; color: var(--muted); display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 34px; }
.meta-plate strong { color: var(--navy); }
.ref-box { background: #eef2f6; border: 1px solid #d8e0e8; border-top: 4px solid var(--navy); padding: 22px 26px; margin: 34px 0; }
.ref-box h4 { font-family: var(--serif); color: var(--navy); font-size: 17px; margin-bottom: 10px; }
.ref-box ul { list-style: none; }
.ref-box li { padding: 4px 0 4px 22px; position: relative; font-size: 14.5px; }
.ref-box li::before { content: "§"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.disclaimer-plate { background: #f0f1ee; border: 1px solid var(--border); padding: 16px 20px; font-size: 13px; color: var(--muted); margin-top: 40px; }
.related { margin-top: 40px; }
.related h4 { font-family: var(--serif); color: var(--navy); font-size: 18px; margin-bottom: 12px; }

/* ---------- Masthead institutionnel v4 ---------- */
.masthead { padding: 24px 0; }
.brand { gap: 18px; }
.brand .mark { width: 86px; height: 86px; }
.brand .name { font-size: 38px; }
.brand .fullname { display: block; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--navy); border-top: 2px solid var(--gold); margin-top: 8px; padding-top: 7px; font-weight: 600; line-height: 1.55; }
.mr-plate { border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 12px 18px; background: #fff; text-align: left; }
.mr-plate .t1 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 16.5px; }
.mr-plate .t2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.mr-plate .t2.gold { color: var(--gold); }
.prof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prof-grid a { position: relative; display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.prof-grid img { width: 100%; height: 190px; object-fit: cover; display: block; }
.prof-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(15,36,56,.92)); color: #fff; font-family: var(--serif); font-size: 16.5px; padding: 26px 14px 10px; }
@media (max-width: 860px) { .prof-grid { grid-template-columns: repeat(2, 1fr); } .brand .name { font-size: 30px; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .tiles { grid-template-columns: 1fr; }
  .facts .container { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .header-inner, .masthead { justify-content: center; text-align: center; }
  .masthead-right { text-align: center; }
  footer.site .cols { grid-template-columns: 1fr; }
  .trust-band .container { flex-direction: column; align-items: flex-start; }
}
