/* ==========================================================================
   Financial House S.A — Design system de la maquette
   Blanc dominant · bleu structurel · jaune en accent ponctuel
   ========================================================================== */

/* ---------- Typographie : SF Pro Display (3 graisses seulement) ---------- */
@font-face{
  font-family:"SF Pro Display";
  src:url("fonts/sf-pro-display-cufonfonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"SF Pro Display";
  src:url("fonts/sf-pro-display-cufonfonts/SFPRODISPLAYMEDIUM.OTF") format("opentype");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"SF Pro Display";
  src:url("fonts/sf-pro-display-cufonfonts/SFPRODISPLAYBOLD.OTF") format("opentype");
  font-weight:700; font-style:normal; font-display:swap;
}

:root{
  /* Charte officielle */
  --fh-blue:#1F12D4;
  --fh-yellow:#FCC900;
  --fh-black:#000411;
  --fh-white:#FFFCFF;

  /* Dérivés états & surfaces */
  --fh-blue-900:#150C8F;
  --fh-blue-050:#EEEDFB;
  --fh-grey-600:#5A5C68;
  --fh-green-ok:#1B8A5A;
  --fh-red-err:#C0392B;

  /* Rôles */
  --bg:var(--fh-white);
  --surface:#FFFFFF;
  --surface-alt:#F7F7FB;
  --fg:var(--fh-black);
  --muted:var(--fh-grey-600);
  --border:#E3E3ED;
  --border-strong:#C9C9DA;
  --accent:var(--fh-yellow);

  --font-display:"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-body:"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;

  --wrap:1200px;
  --wrap-narrow:760px;
  --r:6px;
  --r-lg:10px;
  --shadow-1:0 1px 2px rgba(0,4,17,.06),0 2px 8px rgba(0,4,17,.04);
  --shadow-2:0 2px 4px rgba(0,4,17,.08),0 12px 28px rgba(0,4,17,.10);
  --ring:0 0 0 3px rgba(31,18,212,.28);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--fg);
  font-family:var(--font-body); font-size:17px; line-height:1.6;
  font-weight:400; -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%; display:block}
a{color:var(--fh-blue); text-decoration-thickness:1px; text-underline-offset:3px}
a:hover{color:var(--fh-blue-900)}
:focus-visible{outline:3px solid var(--fh-blue); outline-offset:2px; border-radius:2px}
.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--fh-blue); color:#fff; padding:12px 18px; font-weight:500;
}
.skip:focus{left:8px; top:8px}

/* ---------- Titres ---------- */
h1,h2,h3,h4{font-family:var(--font-display); margin:0 0 .5em; font-weight:700}
h1{font-size:clamp(2.1rem,1.35rem + 2.6vw,3.4rem); line-height:1.06; letter-spacing:-.025em}
h2{font-size:clamp(1.6rem,1.2rem + 1.4vw,2.3rem); line-height:1.14; letter-spacing:-.018em}
h3{font-size:clamp(1.15rem,1.05rem + .4vw,1.4rem); line-height:1.25; letter-spacing:-.01em}
h4{font-size:1.05rem; line-height:1.3; letter-spacing:-.005em; font-weight:500}
p{margin:0 0 1rem}
.lead{font-size:clamp(1.05rem,1rem + .45vw,1.28rem); line-height:1.55; color:#22242F}
.muted{color:var(--muted)}
.measure{max-width:65ch}
.small{font-size:.875rem; letter-spacing:.012em}

/* Sur-titre : la signature typographique de la marque */
.eyebrow{
  display:inline-block; font-size:.75rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.1em; color:var(--fh-blue);
  margin:0 0 .85rem;
}
.eyebrow::after{
  content:""; display:block; width:34px; height:4px;
  background:var(--fh-yellow); margin-top:.5rem;
}
.eyebrow--on-blue{color:var(--fh-white)}

/* ---------- Layout ---------- */
.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:20px}
.wrap-narrow{width:100%; max-width:var(--wrap-narrow); margin-inline:auto; padding-inline:20px}
.section{padding-block:clamp(3rem,2rem + 4vw,5.5rem)}
.section--tight{padding-block:clamp(2rem,1.5rem + 2vw,3rem)}
.section--alt{background:var(--surface-alt)}
.section--faint{background:var(--fh-blue-050)}
.section--blue{background:var(--fh-blue); color:var(--fh-white)}
.section--blue h2,.section--blue h3{color:var(--fh-white)}
.section--blue p{color:#DCDAF7}
.grid{display:grid; gap:24px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.split{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(24px,4vw,56px); align-items:start}
.stack>*+*{margin-top:1rem}
.row{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.sec-head{max-width:70ch; margin-bottom:2rem}
@media(max-width:900px){
  .g4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .split{grid-template-columns:1fr}
}
@media(max-width:600px){
  .g2,.g3,.g4{grid-template-columns:1fr}
}

/* ---------- Boutons — un seul primaire par écran ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  min-height:48px; padding:.75rem 1.35rem; border-radius:var(--r);
  font-family:var(--font-display); font-size:1rem; font-weight:500; letter-spacing:.02em;
  border:1.5px solid transparent; cursor:pointer; text-decoration:none;
  transition:transform .12s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active{transform:translateY(2px)}
/* Primaire : jaune en fond, texte noir (le jaune ne passe pas AA en texte) */
.btn-primary{
  background:var(--fh-yellow); color:var(--fh-black); font-weight:700;
  box-shadow:0 2px 0 #C79E00, 0 6px 18px rgba(252,201,0,.32);
}
.btn-primary:hover{background:#FFD62B; color:var(--fh-black); box-shadow:0 2px 0 #C79E00,0 10px 24px rgba(252,201,0,.42)}
.btn-primary:active{box-shadow:0 0 0 #C79E00}
.btn-secondary{background:var(--fh-blue); color:#fff; box-shadow:0 2px 0 var(--fh-blue-900)}
.btn-secondary:hover{background:var(--fh-blue-900); color:#fff}
.btn-secondary:active{box-shadow:0 0 0 var(--fh-blue-900)}
.btn-ghost{background:transparent; color:var(--fh-blue); border-color:var(--border-strong)}
.btn-ghost:hover{border-color:var(--fh-blue); background:var(--fh-blue-050)}
.btn-onblue{background:var(--fh-white); color:var(--fh-blue); box-shadow:0 2px 0 rgba(0,0,0,.25)}
.btn-onblue:hover{background:#fff; color:var(--fh-blue-900)}
.btn-sm{min-height:40px; padding:.4rem .85rem; font-size:.9rem}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45; pointer-events:none}
.btn-block{width:100%}

/* Lien fléché */
.arrow{display:inline-flex; align-items:center; gap:.4rem; font-weight:500; text-decoration:none}
.arrow::after{content:"→"; transition:transform .15s ease}
.arrow:hover::after{transform:translateX(4px)}

/* ---------- En-tête ---------- */
.util{background:var(--fh-blue); color:#fff; font-size:.82rem; letter-spacing:.015em}
.util .wrap{display:flex; align-items:center; justify-content:flex-end; gap:18px; min-height:40px; flex-wrap:wrap}
.util a{color:#fff; text-decoration:none; display:inline-flex; align-items:center; gap:.4rem}
.util a:hover{color:var(--fh-yellow)}
.util .util-left{margin-right:auto; color:#CFCCF6}

.lang{display:inline-flex; border:1px solid rgba(255,255,255,.45); border-radius:4px; overflow:hidden}
.lang a{padding:3px 9px; font-weight:500; font-size:.78rem; letter-spacing:.06em}
.lang a[aria-current="true"]{background:var(--fh-yellow); color:var(--fh-black)}

.site-header{position:sticky; top:0; z-index:50; background:var(--fh-white); border-bottom:1px solid var(--border)}
.site-header .wrap{display:flex; align-items:center; gap:20px; min-height:76px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; flex:0 0 auto}
.brand img{height:38px; width:auto}
.brand-name{display:none}
.nav{margin-left:auto; display:flex; align-items:center; gap:4px}
.nav a{
  display:inline-flex; align-items:center; min-height:44px; padding:0 12px;
  color:var(--fh-black); text-decoration:none; font-weight:500; font-size:.95rem;
  border-bottom:3px solid transparent;
}
.nav a:hover{color:var(--fh-blue); border-bottom-color:var(--fh-yellow)}
.nav a[aria-current="page"]{color:var(--fh-blue); border-bottom-color:var(--fh-blue)}
.nav .btn{margin-left:10px}
.burger{
  margin-left:auto; display:none; width:48px; height:48px; align-items:center; justify-content:center;
  background:none; border:1px solid var(--border-strong); border-radius:var(--r); cursor:pointer;
}
.burger span{display:block; width:20px; height:2px; background:var(--fh-black); position:relative}
.burger span::before,.burger span::after{content:""; position:absolute; left:0; width:20px; height:2px; background:var(--fh-black)}
.burger span::before{top:-6px} .burger span::after{top:6px}
@media(max-width:1040px){
  .nav{
    position:fixed; inset:116px 0 0 0; background:var(--fh-white); flex-direction:column;
    align-items:stretch; gap:0; padding:12px 20px 40px; overflow:auto; display:none;
  }
  .nav[data-open="true"]{display:flex}
  .nav a{min-height:56px; padding:0 4px; font-size:1.1rem; border-bottom:1px solid var(--border)}
  .nav .btn{margin:16px 0 0}
  .burger{display:flex}
}

/* ---------- Fil d'ariane ---------- */
.crumbs{font-size:.85rem; color:var(--muted); padding-block:14px; border-bottom:1px solid var(--border)}
.crumbs a{color:var(--muted); text-decoration:none}
.crumbs a:hover{color:var(--fh-blue); text-decoration:underline}
.crumbs span{margin:0 .45rem; color:var(--border-strong)}

/* ---------- Hero ---------- */
.hero{border-bottom:1px solid var(--border); background:var(--fh-white)}
.hero .wrap{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:clamp(28px,4vw,64px); align-items:center; padding-block:clamp(2.5rem,2rem + 3vw,4.5rem)}
.hero-media{position:relative; border-radius:var(--r-lg); overflow:hidden; background:var(--fh-blue-050); aspect-ratio:4/3}
.hero-media img{width:100%; height:100%; object-fit:cover}
.hero-badge{
  position:absolute; left:16px; bottom:16px; background:var(--fh-white);
  border-radius:var(--r); padding:12px 16px; box-shadow:var(--shadow-2); max-width:min(74%,300px);
}
.hero-badge strong{display:block; font-size:1.5rem; line-height:1.1; letter-spacing:-.02em; color:var(--fh-blue)}
.hero-badge span{font-size:.8rem; color:var(--muted); letter-spacing:.015em}
@media(max-width:900px){.hero .wrap{grid-template-columns:1fr}}

.page-head{background:var(--fh-blue-050); border-bottom:1px solid var(--border); padding-block:clamp(2rem,1.5rem + 2.5vw,3.5rem)}
.page-head h1{margin-bottom:.35em}
.page-head .lead{max-width:62ch; color:#2A2C38}

/* ---------- Cartes ---------- */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r);
  padding:24px; display:flex; flex-direction:column; gap:.6rem;
}
.card h3{margin:0}
.card p{margin:0; color:var(--muted); font-size:.95rem}
.card .arrow{margin-top:auto; padding-top:.6rem}
a.card{text-decoration:none; color:inherit; transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease}
a.card:hover{border-color:var(--fh-blue); box-shadow:var(--shadow-2); transform:translateY(-2px); color:inherit}
.card--flag{border-top:4px solid var(--fh-blue)}
.card--pad-lg{padding:32px}

.ico{width:40px; height:40px; color:var(--fh-blue); flex:0 0 auto}
.ico-box{
  width:52px; height:52px; border-radius:var(--r); background:var(--fh-blue-050);
  display:flex; align-items:center; justify-content:center; margin-bottom:.35rem;
}
.ico-box svg{width:26px; height:26px; color:var(--fh-blue)}
.ico-box--yellow{background:var(--fh-yellow)}
.ico-box--yellow svg{color:var(--fh-black)}

/* ---------- Chiffres clés ---------- */
.kpis{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border:1px solid var(--border); border-radius:var(--r); overflow:hidden; background:var(--surface)}
.kpi{padding:26px 22px; border-right:1px solid var(--border)}
.kpi:last-child{border-right:0}
.kpi b{
  display:block; font-family:var(--font-display); font-weight:700; color:var(--fh-blue);
  font-size:clamp(2rem,1.4rem + 2vw,2.9rem); line-height:1; letter-spacing:-.03em;
}
.kpi span{display:block; margin-top:.5rem; font-size:.88rem; color:var(--muted); letter-spacing:.012em}
@media(max-width:900px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi{border-bottom:1px solid var(--border)}
  .kpi:nth-child(2n){border-right:0}
}
@media(max-width:480px){.kpis{grid-template-columns:1fr} .kpi{border-right:0}}

/* ---------- Formulaires ---------- */
.field{display:block; margin-bottom:18px}
.field>label,.legend{display:block; font-weight:500; font-size:.92rem; margin-bottom:.35rem; letter-spacing:.01em}
.hint{display:block; font-size:.82rem; color:var(--muted); margin-top:.3rem; letter-spacing:.012em}
.input,.select,.textarea{
  width:100%; min-height:48px; padding:.7rem .85rem; font:inherit; font-size:1rem;
  color:var(--fg); background:var(--surface); border:1.5px solid var(--border-strong);
  border-radius:var(--r); transition:border-color .15s ease, box-shadow .15s ease;
}
.input:hover,.select:hover,.textarea:hover{border-color:#A9A9C4}
.input:focus,.select:focus,.textarea:focus{outline:none; border-color:var(--fh-blue); box-shadow:var(--ring)}
.textarea{min-height:130px; resize:vertical}
.select{appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5C68' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:18px; padding-right:40px}
.field--err .input,.field--err .select,.field--err .textarea{border-color:var(--fh-red-err); background:#FDF3F2}
.field--ok .input,.field--ok .select{border-color:var(--fh-green-ok)}
.err-msg{display:flex; gap:.4rem; align-items:center; color:var(--fh-red-err); font-size:.85rem; margin-top:.35rem; font-weight:500}
.ok-msg{display:flex; gap:.4rem; align-items:center; color:var(--fh-green-ok); font-size:.85rem; margin-top:.35rem; font-weight:500}
fieldset{border:0; padding:0; margin:0 0 18px}
.choice{display:flex; gap:.7rem; align-items:flex-start; padding:14px; border:1.5px solid var(--border-strong); border-radius:var(--r); cursor:pointer; min-height:48px; background:var(--surface)}
.choice:hover{border-color:var(--fh-blue); background:var(--fh-blue-050)}
.choice input{margin-top:.25rem; width:20px; height:20px; accent-color:var(--fh-blue); flex:0 0 auto}
.choice input:checked~.choice-txt{font-weight:500}
.choice-txt small{display:block; color:var(--muted); font-weight:400; font-size:.84rem}
.choice:has(input:checked){border-color:var(--fh-blue); background:var(--fh-blue-050); box-shadow:inset 0 0 0 1px var(--fh-blue)}
.form-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:clamp(20px,3vw,34px); box-shadow:var(--shadow-1)}
.range{width:100%; accent-color:var(--fh-blue); height:44px}
.req{color:var(--fh-red-err)}

/* Alertes */
.note{
  border:1px solid var(--border); border-left:4px solid var(--fh-blue); background:var(--surface-alt);
  padding:14px 16px; border-radius:0 var(--r) var(--r) 0; font-size:.92rem;
}
.note--warn{border-left-color:var(--fh-yellow); background:#FFFAE6}
.note--err{border-left-color:var(--fh-red-err); background:#FDF3F2}
.note--ok{border-left-color:var(--fh-green-ok); background:#F0F9F4}
.note strong{display:block; margin-bottom:.2rem}

/* Placeholder de données non fournies */
.ph{
  display:inline-block; font-family:var(--font-mono); font-size:.76rem; letter-spacing:.02em;
  background:#FFF3C4; color:#6B5200; border:1px dashed #C79E00; border-radius:3px; padding:1px 6px;
}
.ph-block{display:block; padding:12px 14px; margin:0 0 1rem}
.ph-img{
  background:repeating-linear-gradient(45deg,#EFEFF6 0 10px,#E6E6F0 10px 20px);
  display:flex; align-items:center; justify-content:center; color:var(--muted);
  font-size:.8rem; letter-spacing:.02em; text-align:center; padding:12px;
}

/* Étiquettes */
.tag{
  display:inline-flex; align-items:center; gap:.35rem; font-size:.74rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.08em; padding:.28rem .6rem; border-radius:3px;
  background:var(--fh-blue-050); color:var(--fh-blue-900);
}
.tag--yellow{background:var(--fh-yellow); color:var(--fh-black)}
.tag--ok{background:#E4F4EC; color:#146C46}
.tag--wait{background:#FFF3C4; color:#6B5200}
.tag--err{background:#FBE8E6; color:#8E2B20}
.tag--neutral{background:var(--surface-alt); color:var(--muted)}

/* Tableaux */
.table-wrap{overflow-x:auto; border:1px solid var(--border); border-radius:var(--r); background:var(--surface)}
table.tbl{width:100%; border-collapse:collapse; font-size:.92rem; min-width:560px}
.tbl th,.tbl td{padding:12px 16px; text-align:left; border-bottom:1px solid var(--border)}
.tbl thead th{background:var(--surface-alt); font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:700; white-space:nowrap}
.tbl tbody tr:last-child td{border-bottom:0}
.tbl tbody tr:hover{background:#FAFAFE}
.num{font-family:var(--font-mono); font-variant-numeric:tabular-nums; text-align:right; letter-spacing:-.01em}

/* Onglets / filtres */
.tabs{display:flex; gap:8px; flex-wrap:wrap; border-bottom:1px solid var(--border); margin-bottom:24px}
.tabs button{
  min-height:44px; padding:0 14px; background:none; border:0; border-bottom:3px solid transparent;
  font:inherit; font-weight:500; font-size:.95rem; color:var(--muted); cursor:pointer;
}
.tabs button:hover{color:var(--fh-blue)}
.tabs button[aria-selected="true"]{color:var(--fh-blue); border-bottom-color:var(--fh-yellow)}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  min-height:44px; display:inline-flex; align-items:center; padding:0 14px; border-radius:999px;
  border:1.5px solid var(--border-strong); background:var(--surface); font:inherit; font-size:.9rem;
  font-weight:500; color:var(--fg); cursor:pointer;
}
.chip:hover{border-color:var(--fh-blue); color:var(--fh-blue)}
.chip[aria-pressed="true"]{background:var(--fh-blue); border-color:var(--fh-blue); color:#fff}

/* Accordéon */
.acc{border:1px solid var(--border); border-radius:var(--r); background:var(--surface); overflow:hidden}
.acc+.acc{margin-top:10px}
.acc summary{
  cursor:pointer; padding:16px 20px; font-weight:500; list-style:none; min-height:56px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{content:"+"; font-size:1.4rem; color:var(--fh-blue); line-height:1}
.acc[open] summary::after{content:"–"}
.acc summary:hover{background:var(--fh-blue-050)}
.acc .acc-body{padding:0 20px 18px; color:var(--muted); font-size:.95rem}
.acc .acc-body p:last-child{margin-bottom:0}

/* Étapes */
.steps{display:flex; gap:0; list-style:none; padding:0; margin:0 0 32px; flex-wrap:wrap}
.steps li{flex:1 1 130px; padding:0 0 12px; border-bottom:4px solid var(--border); font-size:.85rem; color:var(--muted); letter-spacing:.015em}
.steps li b{display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.09em; margin-bottom:.2rem}
.steps li[data-state="done"]{border-bottom-color:var(--fh-blue); color:var(--fh-blue)}
.steps li[data-state="current"]{border-bottom-color:var(--fh-yellow); color:var(--fh-black); font-weight:500}

/* Timeline */
.tl{list-style:none; margin:0; padding:0 0 0 26px; border-left:2px solid var(--border)}
.tl li{position:relative; padding:0 0 26px 12px}
.tl li::before{content:""; position:absolute; left:-33px; top:6px; width:12px; height:12px; border-radius:50%; background:var(--fh-yellow); border:2px solid var(--fh-white)}
.tl b{display:block; font-family:var(--font-mono); font-size:.8rem; color:var(--fh-blue); letter-spacing:.02em}

/* ---------- FINA widget ---------- */
.fina-launch{
  position:fixed; right:18px; bottom:18px; z-index:60; display:inline-flex; align-items:center; gap:.55rem;
  min-height:52px; padding:0 18px; border-radius:999px; border:0; cursor:pointer;
  background:var(--fh-blue); color:#fff; font:inherit; font-weight:500; box-shadow:var(--shadow-2);
}
.fina-launch:hover{background:var(--fh-blue-900)}
.fina-launch .dot{width:9px; height:9px; border-radius:50%; background:var(--fh-yellow)}
.fina-panel{
  position:fixed; right:18px; bottom:18px; z-index:61; width:min(380px,calc(100vw - 36px));
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-2); overflow:hidden; display:none; flex-direction:column; max-height:min(620px,calc(100vh - 36px));
}
.fina-panel[data-open="true"]{display:flex}
.fina-head{background:var(--fh-blue); color:#fff; padding:14px 16px; display:flex; align-items:center; gap:10px}
.fina-head b{font-size:1rem}
.fina-head small{display:block; color:#CFCCF6; font-size:.75rem}
.fina-head button{margin-left:auto; background:none; border:0; color:#fff; font-size:1.4rem; cursor:pointer; width:44px; height:44px}
.fina-body{padding:16px; overflow:auto; display:flex; flex-direction:column; gap:12px; background:var(--surface-alt)}
.msg{max-width:86%; padding:11px 14px; border-radius:12px; font-size:.93rem; line-height:1.5}
.msg-bot{background:var(--surface); border:1px solid var(--border); border-bottom-left-radius:3px}
.msg-user{background:var(--fh-blue); color:#fff; align-self:flex-end; border-bottom-right-radius:3px}
.msg-hand{background:#FFFAE6; border:1px solid var(--fh-yellow); border-bottom-left-radius:3px}
.fina-foot{padding:12px 14px; border-top:1px solid var(--border); display:flex; gap:8px; background:var(--surface)}
.fina-foot .input{min-height:44px}

/* ---------- Pied de page ---------- */
.site-footer{background:var(--fh-blue); color:var(--fh-white); padding-block:52px 28px; margin-top:0}
.site-footer a{color:#DCDAF7; text-decoration:none}
.site-footer a:hover{color:var(--fh-yellow); text-decoration:underline}
.site-footer h4{color:var(--fh-white); font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; font-weight:700; margin-bottom:1rem}
.site-footer ul{list-style:none; margin:0; padding:0; display:grid; gap:.55rem; font-size:.92rem}
.footer-grid{display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px}
.footer-brand img{height:44px; margin-bottom:16px}
.footer-brand p{color:#CFCCF6; font-size:.92rem; max-width:34ch}
.footer-slogan{
  font-family:var(--font-display); font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--fh-yellow); font-size:.86rem; margin-top:14px;
}
.footer-bottom{
  margin-top:40px; padding-top:20px; border-top:1px solid rgba(255,255,255,.22);
  display:flex; flex-wrap:wrap; gap:14px 24px; align-items:center; font-size:.83rem; color:#CFCCF6;
}
.footer-bottom .sep{margin-left:auto}
@media(max-width:1040px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}}

/* ---------- Espace client ---------- */
.app{display:grid; grid-template-columns:250px minmax(0,1fr); gap:0; min-height:70vh}
.app-side{background:var(--surface-alt); border-right:1px solid var(--border); padding:24px 16px}
.app-side nav{display:grid; gap:4px}
.app-side a{
  display:flex; align-items:center; gap:.6rem; min-height:46px; padding:0 12px; border-radius:var(--r);
  color:var(--fg); text-decoration:none; font-size:.94rem; font-weight:500;
}
.app-side a:hover{background:var(--fh-blue-050); color:var(--fh-blue)}
.app-side a[aria-current="page"]{background:var(--fh-blue); color:#fff}
.app-main{padding:clamp(20px,3vw,36px)}
.app-user{padding:12px; border:1px solid var(--border); border-radius:var(--r); background:var(--surface); margin-bottom:20px; font-size:.9rem}
.app-user b{display:block}
@media(max-width:860px){.app{grid-template-columns:1fr} .app-side{border-right:0; border-bottom:1px solid var(--border)} .app-side nav{grid-template-columns:repeat(2,1fr); display:grid}}

.empty{
  border:1.5px dashed var(--border-strong); border-radius:var(--r-lg); padding:44px 24px;
  text-align:center; background:var(--surface);
}
.empty .ico-box{margin:0 auto 12px}

/* ---------- Aperçu mobile (page de démonstration) ---------- */
.device{width:390px; max-width:100%; border:12px solid #16171F; border-radius:38px; overflow:hidden; background:#000; box-shadow:var(--shadow-2)}
.device iframe{width:390px; height:780px; border:0; background:#fff; display:block; max-width:100%}

/* ---------- Navigation : libellés à deux lignes + actions d'en-tête ---------- */
.nav a{flex-direction:column; align-items:flex-start; justify-content:center; line-height:1.15}
.nav a small{font-size:.68rem; font-weight:400; color:var(--muted); letter-spacing:.015em}
.nav a[aria-current="page"] small{color:var(--fh-blue)}
.header-actions{margin-left:0; display:flex; align-items:center; gap:10px; flex:0 0 auto}
.search-btn{
  width:48px; height:48px; display:inline-flex; align-items:center; justify-content:center;
  background:none; border:1px solid var(--border-strong); border-radius:var(--r);
  color:var(--fh-black); cursor:pointer;
}
.search-btn:hover{border-color:var(--fh-blue); color:var(--fh-blue); background:var(--fh-blue-050)}
.search-pop{
  position:absolute; top:calc(100% + 8px); right:20px; z-index:70; width:min(440px,calc(100vw - 40px));
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-2); padding:16px;
}
.search-pop ul{list-style:none; margin:10px 0; padding:0; display:grid; gap:2px}
.search-pop ul a{
  display:block; padding:10px 12px; border-radius:var(--r); text-decoration:none;
  color:var(--fg); font-size:.93rem;
}
.search-pop ul a:hover{background:var(--fh-blue-050); color:var(--fh-blue)}
.site-header .wrap{position:relative}
.nav .nav-only{display:none}
@media(max-width:1040px){
  .header-actions .btn{display:none}
  .nav .nav-only{display:inline-flex; flex-direction:row; align-items:center}
  .nav a small{font-size:.78rem}
}

/* ---------- Vignettes & médias de cartes ---------- */
.card-media{
  margin:-24px -24px 12px; border-radius:var(--r) var(--r) 0 0; overflow:hidden;
  aspect-ratio:16/9; background:var(--fh-blue-050); position:relative;
}
.card-media img{width:100%; height:100%; object-fit:cover}
.card-media .tag{position:absolute; top:12px; left:12px; box-shadow:var(--shadow-1)}
.card--pad-lg .card-media{margin:-32px -32px 14px}
.avatar{width:44px; height:44px; border-radius:50%; object-fit:cover; flex:0 0 auto}
.testi{border:1px solid var(--border); border-radius:var(--r); padding:24px; background:var(--surface); display:flex; flex-direction:column; gap:14px}
.testi blockquote{margin:0; font-size:1.02rem; line-height:1.55}
.testi .who{display:flex; gap:12px; align-items:center; margin-top:auto}
.testi .who b{display:block; font-size:.95rem}
.testi .who span{font-size:.83rem; color:var(--muted)}
.testi::before{content:"“"; font-family:var(--font-display); font-size:2.6rem; line-height:.6; color:var(--fh-yellow); font-weight:700}

/* ---------- MFA / code TOTP ---------- */
.mfa{display:flex; gap:10px; justify-content:flex-start}
.mfa input{
  width:52px; height:60px; text-align:center; font-family:var(--font-mono); font-size:1.5rem;
  border:1.5px solid var(--border-strong); border-radius:var(--r); background:var(--surface);
}
.mfa input:focus{outline:none; border-color:var(--fh-blue); box-shadow:var(--ring)}

/* ---------- Messagerie sécurisée ---------- */
.thread{display:flex; flex-direction:column; gap:14px; padding:20px; background:var(--surface-alt); border:1px solid var(--border); border-radius:var(--r-lg); max-height:480px; overflow:auto}
.thread .msg small{display:block; margin-top:.35rem; font-size:.72rem; opacity:.75; letter-spacing:.02em}

/* ---------- Bandeau institutions ---------- */
.instits{display:flex; flex-wrap:wrap; gap:12px 36px; align-items:center}
.instits span{
  font-family:var(--font-display); font-weight:700; letter-spacing:.14em; font-size:.95rem;
  color:var(--fh-grey-600);
}
.instits .lbl{font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; font-weight:500; color:var(--muted); flex-basis:100%;}
@media(min-width:900px){.instits .lbl{flex-basis:auto; margin-right:12px}}

/* ---------- Utilitaires ---------- */
.center{text-align:center}
.mt0{margin-top:0}.mb0{margin-bottom:0}
.mt-2{margin-top:2rem}.mt-1{margin-top:1rem}.mt-3{margin-top:3rem}
.hr{border:0; border-top:1px solid var(--border); margin:2.5rem 0}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}
.hide{display:none !important}
@media(prefers-reduced-motion:reduce){*{animation:none !important; transition:none !important}}
@media print{.site-header,.util,.fina-launch,.site-footer{display:none}}
