:root{--blue:#0b3a66;--gold:#f7c948;--red:#c9252d;--ink:#152033;--muted:#667085;--bg:#f3f6fb;--card:#fff;--shadow:0 14px 40px rgba(16,24,40,.10)}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink);padding-bottom:58px}.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:10px 20px;background:linear-gradient(135deg,#062949,#0b3a66 60%,#124b80);color:#fff;box-shadow:var(--shadow)}.brand-block{flex:1;text-align:center}.brand-block strong{display:block;font-size:22px;letter-spacing:.5px;text-transform:uppercase}.brand-block span,.brand-block em{display:block;font-size:12px;opacity:.92}.logo-box{width:58px;height:58px;border:2px solid rgba(255,255,255,.75);border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--blue);font-weight:bold;overflow:hidden}.logo-box img{width:100%;height:100%;object-fit:cover}.flag-mini{width:70px;height:46px;border:2px solid #fff;border-radius:6px;background:#00a3e0;position:relative;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,.25)}.flag-mini:before{content:"";position:absolute;width:120px;height:13px;background:#f7d618;left:-18px;top:21px;transform:rotate(-25deg)}.flag-mini:after{content:"";position:absolute;width:120px;height:6px;background:#ce1021;left:-18px;top:25px;transform:rotate(-25deg);box-shadow:-31px -19px 0 -1px #f7d618}.top-nav{display:flex;gap:8px;justify-content:center;position:sticky;top:78px;z-index:19;background:#fff;border-bottom:1px solid #d8e0ea;padding:8px}.top-nav a{padding:9px 14px;border-radius:999px;text-decoration:none;color:var(--blue);font-weight:700}.top-nav a:hover{background:#eaf1f9}.main-content{max-width:1180px;margin:auto;padding:22px}.fixed-footer{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:18px;justify-content:center;align-items:center;background:#071d33;color:#fff;padding:12px 16px;box-shadow:0 -10px 25px rgba(0,0,0,.16)}.fixed-footer a{color:#fff;text-decoration:none;font-weight:700}.hero{height:470px;border-radius:28px;overflow:hidden;position:relative;box-shadow:var(--shadow);margin-bottom:22px}.slides,.slide{position:absolute;inset:0}.slide{background-size:cover;background-position:center;opacity:0;animation:fadeSlides 24s infinite}.slide:nth-child(1){animation-delay:0s}.slide:nth-child(2){animation-delay:6s}.slide:nth-child(3){animation-delay:12s}.slide:nth-child(4){animation-delay:18s}.fallback{opacity:1!important;background:linear-gradient(135deg,#0b3a66,#1f7abb)}@keyframes fadeSlides{0%,20%{opacity:1}25%,100%{opacity:0}}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,18,34,.82),rgba(5,18,34,.35),rgba(5,18,34,.75));z-index:1}.hero-overlay{position:relative;z-index:2;color:#fff;padding:82px 45px;max-width:760px}.hero-overlay h1{font-size:48px;margin:0 0 10px;text-transform:uppercase;line-height:1.05}.hero-overlay p{font-size:21px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 16px;border-radius:12px;background:#e8eef6;color:var(--blue);border:0;text-decoration:none;font-weight:800;cursor:pointer}.btn.primary{background:var(--gold);color:#172033}.btn.light{background:#fff;color:var(--blue)}.btn.danger{background:#ffe4e8;color:#9d1020}.btn.small{padding:7px 10px;border-radius:9px;font-size:12px}.card{background:var(--card);border-radius:24px;padding:24px;box-shadow:var(--shadow);margin-bottom:22px}.grid{display:grid;gap:22px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.large-text p{font-size:18px;line-height:1.7}.section-title{font-size:30px;text-align:center}.activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.activity-card{border:1px solid #e5eaf2;border-radius:20px;padding:16px;background:#fff}.activity-card img{width:100%;height:150px;object-fit:cover;border-radius:16px}.activity-card h3{font-size:24px;color:var(--blue);margin:10px 0 5px}.video-grid{display:grid;gap:14px}.video-grid iframe,.activity-card iframe{width:100%;min-height:205px;border:0;border-radius:16px}.payment-box{border-left:8px solid var(--gold)}.steps li{margin:10px 0}.auth-card{max-width:560px;margin:28px auto}.form{display:grid;gap:14px}.form label{font-weight:800;color:#1d2939}.form input,.form select,.form textarea,.filters input,.filters select{width:100%;padding:12px;border:1px solid #cfd8e5;border-radius:12px;background:#fff;font:inherit;margin-top:6px}.full{grid-column:1/-1}.links-row{display:flex;justify-content:space-between;margin-top:16px}.flash-zone{display:grid;gap:8px;margin-bottom:14px}.flash{padding:12px 14px;border-radius:12px;background:#eef2ff;color:#233}.flash.success{background:#e8fff1}.flash.danger{background:#ffe8e8}.flash.warning{background:#fff6da}.dashboard-head{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:18px}.stat{background:#fff;border-radius:24px;padding:28px;text-align:center;box-shadow:var(--shadow);border-top:6px solid var(--gold)}.stat span{display:block;font-size:42px;font-weight:900;color:var(--blue)}.stat small{color:var(--muted);font-weight:800}.admin-menu{display:flex;gap:12px;flex-wrap:wrap}.list-item{border-bottom:1px solid #e6ebf2;padding:12px 0;display:flex;gap:12px;justify-content:space-between}.list-item strong{color:var(--blue)}.list-item span{color:var(--muted)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:12px;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:top}th{background:#f0f5fb;color:var(--blue)}.inline{display:inline}.tabs{display:flex;gap:10px;margin:14px 0}.tabs a{padding:10px 14px;background:#eef3f8;border-radius:999px;text-decoration:none;color:var(--blue);font-weight:800}.tabs a.active{background:var(--blue);color:#fff}.filters{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:14px 0}.avatar{width:130px;height:130px;object-fit:cover;border-radius:50%;border:5px solid #fff;box-shadow:var(--shadow)}.member-card-view{text-align:center}
@media(max-width:800px){.grid.two,.dashboard-head,.filters{grid-template-columns:1fr}.brand-block strong{font-size:16px}.site-header{padding:8px}.flag-mini{width:52px;height:36px}.logo-box{width:46px;height:46px}.top-nav{top:66px;overflow:auto;justify-content:flex-start}.hero{height:420px}.hero-overlay{padding:58px 25px}.hero-overlay h1{font-size:34px}.main-content{padding:14px}.fixed-footer{font-size:12px;gap:8px;overflow:auto;justify-content:flex-start}}
@media print{.site-header,.top-nav,.fixed-footer,.filters,.btn,.flash-zone{display:none!important}body{background:white;padding:0}.main-content{max-width:none;padding:0}.card{box-shadow:none;border-radius:0}.printable table{font-size:11px}}
.center{text-align:center}.muted{color:var(--muted)}.light-btn{background:#fff;border:1px solid #cfd8e5}.adhesion-paper{border:1px solid #d7deea;background:linear-gradient(#fff,#fff)}.paper-head{display:grid;grid-template-columns:1fr 90px 100px;gap:18px;align-items:start;border-bottom:2px solid #e7edf5;padding-bottom:18px;margin-bottom:16px}.paper-head h2{margin:0;color:#303030;text-transform:uppercase;font-size:20px}.paper-head p{margin:6px 0;color:#555}.paper-head h3{margin:12px 0 0;text-align:center;text-decoration:underline}.paper-logo{width:76px;height:76px;border-radius:50%;border:1px solid #cdd6e4;display:grid;place-items:center;overflow:hidden;font-weight:900;color:var(--blue);margin:auto}.paper-logo img{width:100%;height:100%;object-fit:cover}.photo-preview{width:78px;height:96px;border:2px solid #777;border-radius:18px;display:grid;place-items:center;color:#555;font-weight:900}.form-title{text-align:center;text-decoration:underline;letter-spacing:.5px}.section-line{border-bottom:1px solid #d9e2ee;padding-bottom:8px;color:var(--blue);margin-top:18px}.checkbox-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;background:#f7f9fc;border:1px solid #e4ebf4;border-radius:16px;padding:14px}.checkbox-grid label{font-weight:700}.checkbox-grid input{width:auto;margin-right:6px}.declaration{background:#f8fafc;border-left:5px solid var(--gold);padding:12px;border-radius:12px;line-height:1.6}
@media(max-width:800px){.paper-head{grid-template-columns:1fr}.paper-logo,.photo-preview{margin:0 auto}.checkbox-grid{grid-template-columns:1fr 1fr}}

/* Correctifs nouvelle version */
.flag-mini{background:#00A3E0!important;position:relative;overflow:hidden;border-radius:6px}.flag-mini:before{content:"";position:absolute;left:6px;top:6px;width:10px;height:10px;border-radius:50%;background:#F7D618;box-shadow:none}.flag-mini:after{content:"";position:absolute;left:-8px;bottom:5px;width:95px;height:8px;background:#F7D618;transform:rotate(25deg);box-shadow:0 0 0 3px #CE1021 inset;border-top:0;border-bottom:0}.badge{display:inline-block;padding:5px 9px;border-radius:999px;font-weight:800;font-size:12px;background:#eef3f8;color:#0b3a66}.badge.active{background:#e8fff1;color:#067647}.badge.inactive{background:#fff4e5;color:#9a4f00}.badge.archived{background:#ffe8e8;color:#9d1020}.actions-cell{min-width:150px}.mini-form{display:grid;grid-template-columns:1fr;gap:5px;min-width:220px}.mini-form select,.mini-form input{padding:7px;border:1px solid #cfd8e5;border-radius:8px}.print-head .flag-mini{width:78px;height:52px}.site-header .flag-mini:after,.print-head .flag-mini:after{left:-12px;bottom:7px;width:112px;height:9px}
@media print{.actions-cell,.admin-menu,.top-nav,.site-header,.fixed-footer{display:none!important}.printable{overflow:visible}.printable table{font-size:10px}}

/* Version renforcée : vrai drapeau, filigrane, bande de communiqués et mises en page plus robustes */
body.has-watermark:before{content:"";position:fixed;inset:0;background-image:var(--watermark-url);background-repeat:no-repeat;background-position:center 52%;background-size:min(360px,55vw) auto;opacity:.045;pointer-events:none;z-index:-1}.site-header,.top-nav,.main-content,.fixed-footer,.communique-ticker{position:relative}.flag-real{width:92px;height:58px;border:2px solid rgba(255,255,255,.85);border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 4px 10px rgba(0,0,0,.22);flex:none}.flag-real img{width:100%;height:100%;object-fit:cover;display:block}.site-header .flag-mini{display:none}.communique-ticker{position:fixed;left:0;right:0;bottom:48px;z-index:29;display:flex;gap:12px;align-items:center;background:rgba(247,201,72,.94);color:#172033;border-top:1px solid rgba(0,0,0,.12);height:28px;padding:0 14px;overflow:hidden;font-size:13px}.communique-ticker strong{white-space:nowrap;text-transform:uppercase}.ticker-track{overflow:hidden;white-space:nowrap;flex:1}.ticker-track span{display:inline-block;padding-left:100%;animation:ticker 28s linear infinite}@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}.fixed-footer{min-height:48px;padding:7px 16px}.footer-main{display:flex;flex-direction:column;align-items:flex-start;min-width:220px}.footer-main small{opacity:.78}.official-form-head{grid-template-columns:120px 1fr 90px 100px!important;align-items:center}.paper-flag img{width:118px;height:72px;object-fit:contain;border:1px solid #0B3A66;border-radius:8px;background:#fff}.paper-head h3{text-align:left}.form-signatures{display:grid;grid-template-columns:1fr 1fr;gap:28px;text-align:center;margin:18px 0 8px}.form-signatures div{border-top:1px solid #344054;padding-top:8px}.checkbox-grid.compact{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-top:8px}.rubric-list{display:grid;gap:12px;margin-top:18px}.rubric-item{border:1px solid #e4ebf4;border-radius:16px;padding:14px;background:#f8fafc}.rubric-item .mini-form.grid.two{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.activity-card img{height:210px;aspect-ratio:16/10;background:#eef3f8;object-position:center}.activity-card form{margin-top:10px}.activity-card{display:flex;flex-direction:column}.activity-card p{line-height:1.55}.activity-grid{align-items:stretch}.payment-box{background:linear-gradient(180deg,#fff,#fff9e7)}.paper-head .paper-logo{background:#fff}.print-flag img{display:block}
@media(max-width:800px){.flag-real{width:64px;height:42px}.communique-ticker{bottom:46px}.fixed-footer{overflow:auto;justify-content:flex-start}.footer-main{min-width:180px}.official-form-head{grid-template-columns:1fr!important;text-align:center}.paper-head h3{text-align:center}.rubric-item .mini-form.grid.two{grid-template-columns:1fr}.form-signatures{grid-template-columns:1fr}.paper-flag img{margin:auto}.activity-card img{height:180px}}
@media print{body.has-watermark:before,.communique-ticker{display:none!important}}
.site-header{position:sticky}.top-nav{position:sticky}.fixed-footer{position:fixed}.communique-ticker{position:fixed}body{padding-bottom:92px}
.flag-real img{object-fit:contain;background:#fff}

/* Version PLUS : loader, dashboard professionnel, footer amélioré, carrousel avec légende */
.page-loader{position:fixed;inset:0;background:linear-gradient(135deg,#071d33,#0b3a66);display:grid;place-items:center;z-index:9999;transition:opacity .35s ease,visibility .35s ease}.page-loader.hidden{opacity:0;visibility:hidden}.loader-card{width:min(360px,86vw);background:rgba(255,255,255,.96);border-radius:28px;padding:28px;text-align:center;box-shadow:0 25px 80px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.7)}.loader-logo{width:92px;height:92px;margin:0 auto 12px;border-radius:50%;border:4px solid var(--gold);display:grid;place-items:center;background:#fff;overflow:hidden;color:var(--blue);font-weight:900}.loader-logo img{width:100%;height:100%;object-fit:cover}.loader-card strong{display:block;color:var(--blue);font-size:20px;text-transform:uppercase}.loader-card small{color:var(--muted)}.loader-progress{height:10px;background:#e7edf5;border-radius:999px;overflow:hidden;margin-top:18px}.loader-progress span{display:block;height:100%;width:45%;border-radius:999px;background:linear-gradient(90deg,var(--blue),var(--gold),var(--red));animation:loaderSlide 1.2s infinite ease-in-out}@keyframes loaderSlide{0%{transform:translateX(-120%)}100%{transform:translateX(260%)}}
.pro-footer{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:18px;align-items:center;background:linear-gradient(90deg,#06192d,#0b3a66);border-top:3px solid var(--gold)}.footer-brand,.footer-contact{display:flex;flex-direction:column}.footer-brand strong{text-transform:uppercase}.footer-brand small,.footer-contact small{opacity:.78}.footer-links{display:flex;gap:10px;flex-wrap:wrap}.footer-links a{background:rgba(255,255,255,.10);padding:7px 10px;border-radius:999px}.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(135deg,rgba(11,58,102,.98),rgba(9,35,63,.96));color:white;overflow:hidden;position:relative}.dashboard-hero:after{content:"";position:absolute;right:-60px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(247,201,72,.18)}.dashboard-hero h1{font-size:34px;margin:4px 0;text-transform:uppercase}.dashboard-hero p{font-size:16px;opacity:.92;max-width:720px}.eyebrow{letter-spacing:.15em;text-transform:uppercase;font-weight:900;color:var(--gold)}.dashboard-seal{width:118px;height:118px;border-radius:50%;border:5px solid rgba(247,201,72,.8);background:#fff;color:var(--blue);display:grid;place-items:center;overflow:hidden;font-weight:900;flex:none}.dashboard-seal img{width:100%;height:100%;object-fit:cover}.dashboard-head.enhanced{grid-template-columns:repeat(4,1fr)}.action-dock{border-left:7px solid var(--gold);background:linear-gradient(180deg,#fff,#f9fbff)}.scope{background:#fff6da;color:#9a4f00}.anniversary-card{border-left:7px solid #0b3a66}.slide{background-repeat:no-repeat;background-color:#0b3a66}.slide-message{position:absolute;right:28px;bottom:30px;max-width:520px;background:rgba(6,25,45,.78);color:#fff;border-left:5px solid var(--gold);border-radius:18px;padding:18px 22px;z-index:3;box-shadow:0 16px 45px rgba(0,0,0,.3)}.slide-message strong{display:block;font-size:24px;margin-bottom:4px}.slide-message span{display:block;font-size:15px;line-height:1.45}.public-info-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 22px}.public-info-strip div{background:#fff;border-radius:18px;padding:18px;box-shadow:var(--shadow);border-top:5px solid var(--gold)}.public-info-strip strong{display:block;color:var(--blue);font-size:18px}.public-info-strip span{color:var(--muted)}.actions-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.payments-filters{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.activity-card .badge{align-self:flex-start;margin-top:10px}.activity-card small{color:var(--muted)}
@media(max-width:900px){.pro-footer{grid-template-columns:1fr;position:fixed}.dashboard-head.enhanced,.public-info-strip{grid-template-columns:1fr 1fr}.dashboard-hero{flex-direction:column;align-items:flex-start}.slide-message{left:18px;right:18px;bottom:22px}.fixed-footer{max-height:120px;overflow:auto}body{padding-bottom:150px}.communique-ticker{bottom:118px}}
@media(max-width:600px){.dashboard-head.enhanced,.public-info-strip{grid-template-columns:1fr}.dashboard-seal{width:88px;height:88px}.dashboard-hero h1{font-size:26px}.slide-message strong{font-size:20px}.slide-message{padding:14px}.pro-footer{font-size:12px}}
@media print{.page-loader{display:none!important}.pro-footer{display:none!important}}
/* Carrousel jusqu'à 8 images avec message */
.slide{animation:fadeSlides8 48s infinite;opacity:0}.slide:nth-child(1){animation-delay:0s}.slide:nth-child(2){animation-delay:6s}.slide:nth-child(3){animation-delay:12s}.slide:nth-child(4){animation-delay:18s}.slide:nth-child(5){animation-delay:24s}.slide:nth-child(6){animation-delay:30s}.slide:nth-child(7){animation-delay:36s}.slide:nth-child(8){animation-delay:42s}@keyframes fadeSlides8{0%,10%{opacity:1}12.5%,100%{opacity:0}}

/* =========================================================
   VERSION INSPIREE DU MODELE FOURNI : SIDEBAR, DASHBOARD, FOOTER
   ========================================================= */
:root{--navy:#05365b;--navy2:#062845;--navy3:#0b4f86;--soft:#f4f8fd;--line:#dfe8f4;--card:#ffffff;--text:#172033;--muted:#68778d;--blue:#0b66c3;--gold:#ffd21e;--red:#e3212e;--green:#12a56a;--shadow2:0 14px 38px rgba(5,54,91,.12)}
body.admin-layout{background:linear-gradient(90deg,#05365b 0 280px,#f4f8fd 280px);padding-bottom:0;min-height:100vh;color:var(--text)}
body.public-layout{background:#f4f8fd;padding-bottom:64px}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.side-dashboard{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#073e6a,#052844);color:#fff;padding:22px 14px;display:flex;flex-direction:column;box-shadow:12px 0 35px rgba(4,40,68,.25);z-index:40}.side-dashboard:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 0%,rgba(255,210,30,.18),transparent 28%),radial-gradient(circle at 90% 15%,rgba(11,102,195,.22),transparent 35%);pointer-events:none}.side-top,.side-menu,.side-user,.logout-btn{position:relative}.menu-round{width:44px;height:44px;border:0;border-radius:14px;background:rgba(255,255,255,.15);color:#fff;font-size:22px;cursor:pointer}.side-brand{display:flex;align-items:center;gap:12px;margin:18px 0 20px}.side-logo{width:56px;height:56px;border-radius:50%;background:#fff;border:4px solid rgba(255,255,255,.65);display:grid;place-items:center;overflow:hidden;color:var(--navy);font-weight:900}.side-logo img,.footer-logo img,.dashboard-seal img{width:100%;height:100%;object-fit:cover}.side-brand strong{display:block;font-size:17px;line-height:1.18;text-transform:uppercase}.side-brand small{display:block;opacity:.78;margin-top:4px}.side-menu{display:flex;flex-direction:column;gap:8px;overflow:auto;padding-right:5px;margin-bottom:14px}.side-menu::-webkit-scrollbar{width:7px}.side-menu::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:20px}.side-menu a{display:grid;grid-template-columns:28px 1fr 18px;align-items:center;color:#eef7ff;text-decoration:none;padding:12px 12px;border-radius:14px;font-weight:800;transition:.18s ease;background:transparent}.side-menu a:hover,.side-menu a.active{background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.08));box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}.side-menu a.active span:first-child{filter:drop-shadow(0 0 6px rgba(255,210,30,.6))}.side-menu b{opacity:.6}.side-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px 8px;border-top:1px solid rgba(255,255,255,.18)}.avatar-letter{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#051c31;font-weight:900;font-size:20px}.side-user strong{display:block;max-width:172px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-user small{display:block;font-size:12px;opacity:.82}.logout-btn{display:block;margin:4px 8px 2px;background:#fff;color:#ad1e27!important;text-align:center;border-radius:14px;padding:12px 10px;font-weight:900;text-decoration:none;box-shadow:0 8px 18px rgba(0,0,0,.18)}.workspace{min-width:0;display:flex;flex-direction:column}.workspace-topbar{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 30px;background:rgba(244,248,253,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.workspace-topbar strong{display:block;color:#0b2f52;font-size:18px}.workspace-topbar small{display:block;color:var(--muted);margin-top:4px}.top-actions{display:flex;align-items:center;gap:18px}.top-actions>a{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#123;text-decoration:none;box-shadow:var(--shadow2)}.top-date{border-left:1px solid #b8c6d8;padding-left:18px;text-align:right}.top-date span{display:block;color:#59687b;font-size:12px}.top-date strong{font-size:18px;color:#0b66c3}.workspace-content{padding:24px 30px 0;max-width:1600px;width:100%;box-sizing:border-box}.dashboard-welcome{position:relative;display:flex;justify-content:space-between;align-items:center;gap:22px;background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid var(--line);border-radius:26px;padding:26px 30px;box-shadow:var(--shadow2);overflow:hidden;margin-bottom:18px}.dashboard-welcome:after{content:"";position:absolute;right:-120px;bottom:-140px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(255,210,30,.22),rgba(11,102,195,.04) 55%,transparent 70%)}.dashboard-welcome h1{font-size:32px;margin:6px 0;color:#102b4a}.dashboard-welcome p{max-width:850px;color:#536276;line-height:1.55}.eyebrow{color:#0b66c3;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.large-seal{width:118px;height:118px;border:6px solid #fff;box-shadow:0 16px 38px rgba(5,54,91,.18);z-index:1}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:18px 0}.kpi-card{display:flex;align-items:center;gap:17px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow2)}.kpi-icon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-size:28px;color:#fff;flex:none}.kpi-icon.blue{background:#0b66c3}.kpi-icon.yellow{background:#ffd21e;color:#0a2642}.kpi-icon.red{background:#e3212e}.kpi-card small{display:block;color:#59687b;font-weight:800}.kpi-card strong{display:block;font-size:27px;color:#0a2642;margin:3px 0}.kpi-card span{font-size:12px;color:#69788b}.dashboard-panels{display:grid;grid-template-columns:minmax(360px,1.35fr) minmax(300px,1fr) minmax(300px,.95fr);gap:18px;margin:18px 0}.dashboard-panels.two-columns{grid-template-columns:1fr 1fr}.panel-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow2)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-head h2{font-size:19px;margin:0;color:#112c4d}.panel-head a{color:#0b66c3;text-decoration:none;font-weight:800}.chart-line-demo{height:190px;display:flex;align-items:flex-end;gap:12px;padding:18px 14px;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#eef6ff);border:1px solid #e6eef8}.chart-line-demo span{flex:1;min-width:12px;border-radius:999px 999px 4px 4px;background:linear-gradient(180deg,#0b66c3,#9cc8ff);box-shadow:0 7px 18px rgba(11,102,195,.2)}.quick-actions-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.dash-list{display:grid;grid-template-columns:34px 1fr auto;align-items:start;gap:10px;border-bottom:1px solid #eef2f7;padding:11px 0}.dash-list:last-child{border-bottom:0}.dash-list>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eef6ff}.dash-list strong{display:block;color:#22334a}.dash-list small{display:block;color:#718095;margin-top:3px}.dot{width:8px;height:8px;background:#e3212e;border-radius:50%;margin-top:12px}.admin-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:18px 0}.admin-shortcut{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;text-decoration:none;color:#15273d;box-shadow:var(--shadow2);transition:.18s}.admin-shortcut:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(5,54,91,.16)}.admin-shortcut span{font-size:28px}.admin-shortcut strong{display:block;margin:10px 0 4px}.admin-shortcut small{color:#6a788c}.admin-shortcut.primary{background:linear-gradient(135deg,#063b68,#0b66c3);color:#fff}.admin-shortcut.primary small{color:#d9eaff}.app-footer.dashboard-style-footer{position:relative!important;display:grid;grid-template-columns:1.15fr 1.35fr 1fr 1.15fr;gap:28px;background:linear-gradient(135deg,#073e6a,#0b4f86 60%,#07345a);color:#fff;margin:30px 30px 0;border-radius:24px 24px 0 0;padding:30px 34px 58px;box-shadow:0 -12px 38px rgba(5,54,91,.16);overflow:hidden}.app-footer.dashboard-style-footer:before{content:"";position:absolute;right:-40px;top:0;width:12px;height:100%;background:linear-gradient(180deg,#0b66c3 0 45%,#ffd21e 45% 68%,#e3212e 68% 100%)}.app-footer h3{margin:0 0 12px;color:#ffd21e;font-size:20px}.app-footer p{line-height:1.55;margin:7px 0}.app-footer a{display:block;color:#eef7ff;text-decoration:none;margin:8px 0}.footer-about{display:flex;flex-direction:column;gap:12px}.footer-logo{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#0b3a66;overflow:hidden;border:4px solid rgba(255,255,255,.55);font-weight:900}.socials{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.socials a{display:grid!important;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:#0b4f86!important;font-weight:900;margin:0!important}.language-card{border:1px solid rgba(255,255,255,.25);border-radius:18px;padding:14px;margin-top:12px;background:rgba(255,255,255,.08)}.language-card strong,.language-card span,.language-card small{display:block}.language-card span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:10px 12px;border-radius:999px;margin:10px 0;font-weight:900}.language-card small{opacity:.82}.footer-bottom{position:absolute;left:0;right:0;bottom:0;text-align:center;padding:12px;background:rgba(4,28,50,.55);font-size:13px}.public-header{position:sticky;top:0;z-index:20}.public-nav{position:sticky;top:82px;z-index:19}.public-content{max-width:1200px}.public-footer{max-width:1200px;margin-left:auto!important;margin-right:auto!important}.enhanced-ticker{height:32px;bottom:0!important;background:#ffd21e;color:#071d33;z-index:60}.enhanced-ticker strong{background:#0b3a66;color:#fff;padding:6px 10px;border-radius:999px}.page-loader .loader-professional{padding:30px 28px}.loader-logo-ring{width:112px;height:112px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#0b66c3,#ffd21e,#e3212e,#0b66c3);animation:spinLogo 1.4s linear infinite}.loader-logo-ring .loader-logo{margin:0;width:94px;height:94px;border:5px solid #fff}.loader-card em{display:block;color:#66758a;font-style:normal;font-size:12px;margin-top:9px}@keyframes spinLogo{to{transform:rotate(360deg)}}
body.has-watermark:before{opacity:.035!important}.main-content{position:relative}.top-nav a,.btn{transition:.18s}.badge.scope{background:#fff3c4;color:#835400}.badge.active{background:#dff8eb;color:#0a7a45}
@media(max-width:1100px){body.admin-layout{background:#f4f8fd}.app-shell{grid-template-columns:1fr}.side-dashboard{position:relative;height:auto;border-radius:0 0 24px 24px}.side-menu{max-height:260px}.workspace-topbar{top:0}.kpi-grid,.admin-action-grid{grid-template-columns:repeat(2,1fr)}.dashboard-panels,.dashboard-panels.two-columns{grid-template-columns:1fr}.app-footer.dashboard-style-footer{grid-template-columns:1fr 1fr;margin:20px 16px 0}.workspace-content{padding:18px 16px 0}}
@media(max-width:700px){.workspace-topbar{flex-direction:column;align-items:flex-start}.top-actions{width:100%;justify-content:space-between}.kpi-grid,.admin-action-grid,.app-footer.dashboard-style-footer{grid-template-columns:1fr}.dashboard-welcome{flex-direction:column;align-items:flex-start}.large-seal{width:86px;height:86px}.dashboard-welcome h1{font-size:25px}.workspace-content{padding:14px 12px 0}.app-footer.dashboard-style-footer{padding:24px 20px 62px}.public-nav{top:70px}.side-dashboard{padding:18px 10px}.side-menu a{padding:10px}}
@media print{.side-dashboard,.workspace-topbar,.app-footer,.enhanced-ticker,.page-loader{display:none!important}.app-shell{display:block}.workspace-content{padding:0}.workspace{display:block}body.admin-layout{background:#fff}}

/* Stabilite, support et experience mobile */
.menu-badge{display:grid!important;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#e3212e;color:#fff;font-size:11px;font-weight:900}.top-actions sup{position:absolute;margin-left:18px;margin-top:-12px;background:#e3212e;color:#fff;border-radius:999px;font-size:10px;min-width:18px;height:18px;display:inline-grid;place-items:center}.demo-banner{background:#fff6d6;border:1px solid #ffd21e;color:#593d00;border-radius:14px;padding:11px 14px;margin-bottom:14px;font-weight:800}.demo-banner a{color:#0b66c3}.floating-help{position:fixed;right:18px;bottom:54px;z-index:90;display:flex;align-items:center;gap:7px;background:linear-gradient(135deg,#0b66c3,#073e6a);color:#fff;text-decoration:none;border-radius:999px;padding:12px 16px;box-shadow:0 16px 34px rgba(5,54,91,.28);font-weight:900}.floating-help span{font-size:13px}.lead{font-size:18px;color:#536276}.legal-card{max-width:960px}.legal-text{background:#f8fbff;border:1px solid #e4edf7;border-radius:18px;padding:16px 18px;line-height:1.75}.stability-hero .large-seal{display:grid;place-items:center;background:#fff;font-size:48px}.wide-mobile{min-width:190px}.badge.new{background:#fff0d6;color:#9a6500}.badge.in_progress{background:#dcedff;color:#0b4f86}.badge.resolved{background:#e6faef;color:#08753e}.badge.closed{background:#eef1f5;color:#536276}.badge.high{background:#ffe2e6;color:#a41122}.demo-toggle-form{margin-top:12px;display:inline-block}.mobile-table table{min-width:820px}
@media(max-width:900px){body{padding-bottom:84px}.top-nav.public-nav{display:flex;overflow-x:auto;justify-content:flex-start;gap:6px;padding:8px 10px}.top-nav.public-nav a{white-space:nowrap;padding:12px 14px}.site-header.public-header{gap:8px}.brand-block strong{font-size:16px}.brand-block span,.brand-block em{font-size:11px}.workspace-topbar{padding:14px 16px}.side-dashboard{max-height:none}.side-menu{display:grid;grid-template-columns:1fr 1fr;max-height:none;overflow:visible}.side-menu a{font-size:14px}.mobile-card,.card{border-radius:20px;padding:18px}.mobile-form label,.form label{font-size:14px}.mobile-form input,.mobile-form select,.mobile-form textarea,.form input,.form select,.form textarea{min-height:48px;font-size:16px}.btn{min-height:46px;border-radius:14px}.btn.small{min-height:36px}.wide-mobile{width:100%;margin-top:8px}.filters.mobile-filters,.filters{grid-template-columns:1fr}.floating-help{right:14px;bottom:44px;padding:12px 15px}.enhanced-ticker{font-size:12px;height:34px}.app-footer.dashboard-style-footer{border-radius:22px 22px 0 0}.list-item{flex-direction:column;gap:4px}.quick-actions-row .btn{flex:1 1 190px}}

/* V67 — coordonnées officielles centrées, communes aux formulaires et à l'application. */
.official-contact-footer{grid-column:1/-1;text-align:center;margin-top:8px;color:#fff}.official-double-line{display:grid;gap:4px;margin:2px 0 17px}.official-double-line span:first-child{height:3px;background:#22b7dd}.official-double-line span:last-child{height:2px;background:#f3c72b}.official-contact-items{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 18px;font-size:14px;line-height:1.45}.official-contact-items>a{display:inline-flex!important;align-items:center;gap:7px;overflow-wrap:anywhere;color:#fff!important;text-decoration:none!important;margin:0!important;padding:6px 9px;border-radius:12px;background:rgba(255,255,255,.07)}.official-contact-items>a:hover{background:rgba(255,255,255,.16);transform:translateY(-1px)}.official-contact-items b{width:29px;height:29px;border-radius:50%;display:inline-grid;place-items:center;background:#fff;color:#06466f;font-size:12px;flex:none}.official-contact-items strong{color:#f8ce35}.preview-format-note{text-align:center}.preview-format-note p{margin:7px auto 0;max-width:850px;color:var(--muted)}
@media(max-width:700px){.official-contact-items{display:grid;grid-template-columns:1fr;text-align:left}.official-contact-items>a{justify-content:flex-start}.official-contact-footer{margin-bottom:10px}}
@media print{.official-contact-footer{break-inside:avoid;color:#06466f;background:#fff;padding:8mm 0 2mm}.official-contact-items{font-size:9pt}.official-contact-items b{background:#06466f;color:#fff}.official-contact-items strong{color:#06466f}.official-double-line span:first-child{background:#1aafd7!important}.official-double-line span:last-child{background:#f3c72b!important}}
@media(max-width:560px){.side-menu{grid-template-columns:1fr}.kpi-card{padding:16px}.kpi-icon{width:54px;height:54px}.dashboard-panels{gap:12px}.public-header .flag-real{display:none}.logo-box{width:44px;height:44px}.hero-overlay h1{font-size:27px}.hero-overlay p{font-size:16px}.hero{height:360px}.floating-help span{display:none}.floating-help{width:52px;height:52px;justify-content:center;padding:0}.site-header.public-header{position:sticky}.public-nav{top:62px!important}}

/* Production finale : sécurité, sauvegarde, mobile renforcé */
.badge.warning{background:#fff6d7;color:#855500}.security-card{border-top:7px solid var(--blue)}.production-welcome{background:linear-gradient(135deg,#082b4d,#0b3a66 72%,#f7c948);color:#fff}.production-welcome .eyebrow,.production-welcome p{color:#fff}.production-checks .kpi-card.ok{border-top-color:#12b76a}.production-checks .kpi-card.warning{border-top-color:#c9252d}.form-shortcut{border:0;text-align:left;cursor:default}.form-shortcut button{margin-top:8px;width:max-content}.admin-shortcut.form-shortcut:hover{transform:none}.top-actions a[href*="change-password"]{background:#f7c948;color:#172033}.table-wrap table td form{margin-top:5px}.password-hint{display:block;color:var(--muted);font-size:12px;margin-top:5px}.hardening-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.hardening-strip div{background:#fff;border:1px solid #e5eaf2;border-radius:16px;padding:14px;box-shadow:0 10px 24px rgba(16,24,40,.06)}
@media(max-width:700px){.production-checks{grid-template-columns:1fr}.admin-action-grid{grid-template-columns:1fr}.dashboard-panels.two-columns{grid-template-columns:1fr}.table-wrap table{min-width:760px}.security-card{margin:8px}.form input,.form select,.form textarea{font-size:16px;min-height:46px}.btn{min-height:44px}}
@media print{.floating-help,.communique-ticker,.page-loader,.workspace-topbar,.side-nav,.sidebar,.app-footer{display:none!important}}


/* --- Améliorations Fondation finale : mobile, recherche, langues, carrousel pleine largeur --- */
.global-search-form{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #d8e2ef;border-radius:999px;padding:4px 6px;min-width:min(360px,42vw)}
.global-search-form input{border:0;outline:0;background:transparent;padding:8px 10px;width:100%}.global-search-form button{border:0;background:#0b3a66;color:#fff;border-radius:999px;padding:8px 12px;cursor:pointer}.language-select{border:1px solid #d8e2ef;border-radius:12px;padding:8px 10px;background:#fff;color:#0b3a66;font-weight:700}.public-language{margin-left:auto}.footer-language-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.footer-language-list a{background:rgba(255,255,255,.12);padding:4px 8px;border-radius:999px;color:#fff!important}.hero-fullwidth{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;min-height:72vh}.hero-fullwidth .slides,.hero-fullwidth .slide{border-radius:0}.rotating-watermark-logo{position:absolute;right:6vw;top:18%;width:220px;height:220px;border-radius:50%;display:grid;place-items:center;z-index:2;opacity:.16;animation:fondationSpin 42s linear infinite;pointer-events:none}.rotating-watermark-logo img{max-width:100%;max-height:100%;object-fit:contain}.rotating-watermark-logo span{font-size:54px;font-weight:900;color:#fff}@keyframes fondationSpin{from{transform:rotate(0)}to{transform:rotate(360deg)}}.intelligent-help-card{background:linear-gradient(135deg,#fff,#eef6ff)}.help-question-form textarea{font-size:1.05rem}.ai-answer{margin-top:18px;border-left:5px solid #0b3a66;background:#f3f8ff;padding:16px;border-radius:12px}.search-large{display:flex;gap:10px}.search-large input{font-size:1.05rem;padding:14px}.public-info-strip,.kpi-grid,.admin-action-grid{position:relative;z-index:3}@media(max-width:780px){.global-search-form{min-width:100%;order:5}.workspace-topbar{align-items:stretch}.top-actions{flex-wrap:wrap}.language-select{width:100%}.hero-fullwidth{min-height:62vh}.rotating-watermark-logo{width:150px;height:150px;right:3vw;top:20%}.hero-overlay h1{font-size:2rem}.btn,button,.admin-shortcut{min-height:46px}.form input,.form select,.form textarea{font-size:16px}.side-dashboard{width:86vw}.workspace{margin-left:0}.app-shell{display:block}.public-nav{gap:6px}.public-nav a,.public-nav select{flex:1 1 auto;text-align:center}}


/* Fiche d'adhésion professionnelle */
.phone-composite{display:grid;grid-template-columns:minmax(180px,1.25fr) minmax(150px,1fr);gap:8px}.country-code-select{min-width:0}.photo-capture-widget{border:1px solid #d9e2ec;border-radius:16px;padding:16px;background:#f8fbff}.camera-preview{width:150px;height:185px;border:2px dashed #0b5fa5;border-radius:12px;margin:10px 0;display:flex;align-items:center;justify-content:center;background:white;overflow:hidden}.camera-preview img{width:100%;height:100%;object-fit:cover;display:none}.camera-actions{display:flex;flex-wrap:wrap;gap:8px}.file-btn{position:relative;overflow:hidden}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.camera-video{width:min(100%,480px);border-radius:12px;margin-top:12px}.adhesion-paper{background:linear-gradient(180deg,#fff 0%,#f9fcff 100%);box-shadow:0 20px 50px rgba(8,54,95,.12)}@media(max-width:700px){.phone-composite{grid-template-columns:1fr}.camera-actions .btn{width:100%}}

/* =========================================================
   HARMONISATION GLOBALE DES PAGES — VERSION DESIGN V2
   Unifie les largeurs, couleurs, espacements, en-têtes et pieds.
   ========================================================= */
:root{
  --page-max:1240px;
  --page-gutter:clamp(14px,2.4vw,32px);
  --radius-xs:10px;
  --radius-sm:14px;
  --radius-md:18px;
  --radius-lg:24px;
  --line:#dfe7f1;
  --surface:#ffffff;
  --surface-soft:#f7f9fc;
  --header-gradient:linear-gradient(135deg,#062949 0%,#0b3a66 62%,#124b80 100%);
  --footer-gradient:linear-gradient(135deg,#061b30 0%,#0b3154 100%);
}
html{min-height:100%;background:#f3f6fb;scroll-behavior:smooth}
body{min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden;background:var(--bg);line-height:1.5}
img,video,iframe{max-width:100%}
button,input,select,textarea{font:inherit}

/* Même structure de haut en bas sur toutes les pages publiques */
.public-layout .site-header,
.public-layout .top-nav,
.public-layout .public-content,
.public-layout .public-footer{width:100%}
.site-header.public-header{min-height:78px;padding-left:var(--page-gutter);padding-right:var(--page-gutter);background:var(--header-gradient);border-radius:0}
.site-header.public-header>*{min-width:0}
.flag-real{flex:0 0 74px;height:48px;border-radius:8px;overflow:hidden;border:2px solid rgba(255,255,255,.9);background:#fff;box-shadow:0 5px 14px rgba(0,0,0,.2)}
.flag-real img{width:100%;height:100%;display:block;object-fit:cover}
.logo-box{flex:0 0 58px}
.top-nav.public-nav{min-height:54px;padding:8px var(--page-gutter);border-radius:0;box-shadow:0 5px 16px rgba(16,24,40,.05)}
.top-nav.public-nav a{min-height:38px;display:inline-flex;align-items:center;justify-content:center}
.public-content{width:min(100%,var(--page-max));min-height:calc(100vh - 300px);padding:24px var(--page-gutter) 36px}
.public-footer{margin-top:auto}

/* Même largeur utile et mêmes alignements dans l'administration */
.app-shell{width:100%;min-height:100vh}
.workspace{min-width:0;display:flex;flex-direction:column;min-height:100vh}
.workspace-topbar{width:100%;min-height:76px;padding:12px var(--page-gutter);border-radius:0}
.workspace-content{width:100%;max-width:var(--page-max);margin:0 auto;flex:1;padding:24px var(--page-gutter) 36px}
.dashboard-style-footer{width:100%;margin-top:auto;border-radius:0}
.side-dashboard{border-radius:0}

/* Cartes, formulaires et blocs : même forme partout */
.card,.mobile-card,.legal-text,.activity-card,.hardening-strip div,.kpi-card,.admin-shortcut,.dashboard-panel,.auth-card,.adhesion-paper{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:0 12px 32px rgba(16,24,40,.08);
}
.card,.mobile-card,.adhesion-paper{padding:clamp(18px,2vw,26px)}
.card>h1:first-child,.card>h2:first-child,.card>h3:first-child,
.mobile-card>h1:first-child,.mobile-card>h2:first-child,.mobile-card>h3:first-child{margin-top:0}
.grid,.dashboard-panels,.kpi-grid,.admin-action-grid,.activity-grid{align-items:stretch}
.grid>* ,.dashboard-panels>* ,.kpi-grid>* ,.admin-action-grid>* ,.activity-grid>*{min-width:0}

/* Titres et bandeaux de section cohérents */
h1,h2,h3{line-height:1.2}
.section-title,.form-title{color:var(--blue);margin-top:0}
.section-line{margin:24px 0 14px;padding:0 0 9px;border-bottom:2px solid var(--line);color:var(--blue);font-size:1.05rem}
.dashboard-welcome,.production-welcome{border-radius:var(--radius-lg);overflow:hidden}

/* Champs de même hauteur et largeur */
.form,.mobile-form{gap:16px}
.form label,.mobile-form label{display:block;margin:0;color:#26364a}
.form input,.form select,.form textarea,
.mobile-form input,.mobile-form select,.mobile-form textarea,
.filters input,.filters select,.global-search-form input{
  width:100%;border:1px solid #cbd7e6;border-radius:var(--radius-sm);background:#fff;color:var(--ink);outline:none;transition:border-color .18s,box-shadow .18s,background .18s;
}
.form input,.form select,.mobile-form input,.mobile-form select{min-height:46px}
.form textarea,.mobile-form textarea{min-height:112px;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus,
.mobile-form input:focus,.mobile-form select:focus,.mobile-form textarea:focus,
.filters input:focus,.filters select:focus{border-color:#3b82c4;box-shadow:0 0 0 4px rgba(11,95,165,.12)}

/* Boutons et badges uniformisés */
.btn{min-height:42px;border-radius:var(--radius-sm);padding:10px 16px;line-height:1.2;box-shadow:none}
.btn:hover{transform:translateY(-1px);filter:brightness(.98)}
.btn.primary{background:var(--gold);color:#172033}
.btn.light,.light-btn{background:#fff;color:var(--blue);border:1px solid #cfd8e5}
.badge{line-height:1.25}

/* Tableaux toujours contenus dans leur carte */
.table-wrap,.mobile-table{width:100%;overflow:auto;border:1px solid var(--line);border-radius:var(--radius-md);background:#fff}
.table-wrap table,.mobile-table table{margin:0;border:0}
th{background:#edf4fb;color:var(--blue);white-space:nowrap}
tbody tr:last-child td{border-bottom:0}

/* Pied de page : même largeur, même fond et colonnes régulières */
.app-footer.dashboard-style-footer{position:relative;display:grid;grid-template-columns:1.15fr repeat(3,minmax(0,1fr));gap:26px;padding:34px var(--page-gutter) 74px;background:var(--footer-gradient);color:#fff;border-top:4px solid var(--gold);box-shadow:none}
.app-footer.dashboard-style-footer>div{min-width:0}
.app-footer.dashboard-style-footer h3{margin:0 0 12px;color:#fff}
.app-footer.dashboard-style-footer p{margin:7px 0;color:rgba(255,255,255,.84);overflow-wrap:anywhere}
.app-footer.dashboard-style-footer a{display:block;color:rgba(255,255,255,.9);text-decoration:none;margin:7px 0;overflow-wrap:anywhere}
.app-footer.dashboard-style-footer a:hover{color:#fff;text-decoration:underline}
.footer-about{align-self:start}
.footer-logo{background:#fff}
.footer-bottom{grid-column:1/-1;margin-top:4px;padding-top:18px;border-top:1px solid rgba(255,255,255,.18);text-align:center;color:rgba(255,255,255,.75)}
.socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.socials a{display:grid!important;place-items:center;width:34px;height:34px;margin:0!important;border-radius:50%;background:rgba(255,255,255,.12)}
.language-card{margin-top:14px}

/* La fiche d'adhésion reste centrée et équilibrée */
.adhesion-paper{width:100%;max-width:1040px;margin-left:auto;margin-right:auto}
.paper-head{grid-template-columns:minmax(0,1fr) 90px 104px;align-items:center}
.photo-preview,.camera-preview{background:#fff}
.phone-composite{align-items:end}
.checkbox-grid{border-radius:var(--radius-md)}

/* Éviter les couleurs qui débordent différemment d'une page à l'autre */
.main-content>.card:first-child,.workspace-content>.card:first-child{margin-top:0}
.main-content>:last-child,.workspace-content>:last-child{margin-bottom:0}
.hero-fullwidth{max-width:none}
.flash-zone,.demo-banner{width:100%;max-width:var(--page-max);margin-left:auto;margin-right:auto}

@media(max-width:1100px){
  .app-footer.dashboard-style-footer{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-bottom{grid-column:1/-1}
}
@media(max-width:780px){
  body{padding-bottom:70px}
  .site-header.public-header{min-height:66px;padding:8px 12px}
  .flag-real{flex-basis:54px;height:38px}
  .brand-block{text-align:left}
  .brand-block strong{font-size:15px}
  .logo-box{flex-basis:46px;width:46px;height:46px}
  .top-nav.public-nav{top:66px;padding:7px 10px}
  .public-content,.workspace-content{padding:16px 12px 28px}
  .workspace-topbar{padding:12px}
  .card,.mobile-card,.adhesion-paper{padding:17px;border-radius:20px}
  .paper-head{grid-template-columns:1fr;text-align:center}
  .paper-head .paper-logo,.paper-head .photo-preview{margin:0 auto}
  .app-footer.dashboard-style-footer{grid-template-columns:1fr;padding:28px 18px 72px}
  .footer-bottom{grid-column:1}
}
@media(max-width:520px){
  .brand-block span,.brand-block em{display:none}
  .site-header.public-header{gap:9px}
  .top-nav.public-nav a{padding:10px 12px}
  .section-title{font-size:24px}
  .checkbox-grid{grid-template-columns:1fr}
}
@media print{
  html,body{display:block;background:#fff!important;padding:0!important}
  .public-content,.workspace-content,.main-content{width:100%;max-width:none;padding:0!important;margin:0!important}
  .card,.adhesion-paper{border:0;box-shadow:none;border-radius:0;margin:0;padding:0}
}

/* ===== FOBAK Identité visuelle V3 ===== */
:root{
  --fobak-blue:#175f9d;
  --fobak-cyan:#1fb4ef;
  --fobak-yellow:#f3d51c;
  --fobak-red:#ec2e39;
  --fobak-green:#1a8a52;
  --page-gutter:clamp(14px,2.2vw,30px);
  --line:#d7e4f1;
  --navy:#0f3f69;
  --header-gradient:linear-gradient(135deg,#0d4f87 0%, #1176b8 55%, #18afe2 100%);
  --footer-gradient:linear-gradient(135deg,#0a2f4f 0%, #0f4f83 55%, #136ea9 100%);
  --soft-brand:linear-gradient(180deg,#f7fbff 0%, #eef7fd 100%);
  --shadow2:0 12px 30px rgba(15, 63, 105, .10);
}

body.public-layout,
body.admin-layout{background:linear-gradient(180deg,#f7fbff 0%,#edf5fb 100%)}

.site-header.public-header,
.side-dashboard,
.app-footer.dashboard-style-footer,
.enhanced-ticker strong,
.global-search-form button,
.ai-answer{background-image:none}

.site-header.public-header{
  background:var(--header-gradient)!important;
  border-bottom:3px solid rgba(243,213,28,.85);
  box-shadow:0 10px 28px rgba(15,63,105,.18);
}

.public-nav{
  background:#ffffff!important;
  border-bottom:1px solid var(--line);
}
.top-nav.public-nav a,
.top-nav.public-nav select,
.side-menu a,
.btn,
.tabs a{transition:all .18s ease}
.top-nav.public-nav a:hover,
.top-nav.public-nav a.active{
  background:rgba(31,180,239,.10);
  color:var(--fobak-blue);
}
.top-nav.public-nav a{
  color:#0f4979;
  font-weight:800;
}

.logo-box,
.side-logo,
.footer-logo,
.loader-logo{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
}
.logo-box{
  width:170px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.logo-box img,
.side-logo img,
.footer-logo img,
.loader-logo img,
.paper-logo img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  display:block;
}
.side-brand{align-items:center}
.side-logo{
  width:124px;
  height:48px;
  flex:none;
}
.side-brand strong{font-size:15px;letter-spacing:.04em}
.side-brand small{opacity:.92}
.footer-logo{
  width:190px;
  height:60px;
  display:flex;
  align-items:center;
}
.loader-logo{width:86px!important;height:86px!important}
.loader-logo-ring{
  background:conic-gradient(var(--fobak-blue),var(--fobak-cyan),var(--fobak-yellow),var(--fobak-green),var(--fobak-red),var(--fobak-blue))!important;
}

.brand-block strong{font-size:28px;letter-spacing:.03em}
.brand-block span{font-size:13px;font-weight:700}
.brand-block em{font-size:12px;opacity:.98;letter-spacing:.1em;text-transform:uppercase}

.contact-ribbon{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  padding:10px var(--page-gutter);
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff 0%, #f4f9fe 100%);
}
.public-contact-ribbon{position:sticky;top:136px;z-index:18}
.admin-contact-ribbon{padding-top:0;padding-bottom:14px;background:transparent;border-bottom:0}
.contact-chip{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:9px 14px;
  border:1px solid #d8e7f4;
  border-radius:999px;
  background:#fff;
  box-shadow:var(--shadow2);
  color:#20425f;
  max-width:100%;
}
.contact-chip span{font-size:17px}
.contact-chip strong{color:var(--fobak-blue)}

.workspace-topbar{
  background:rgba(255,255,255,.88)!important;
  border-bottom:1px solid var(--line)!important;
  box-shadow:0 10px 24px rgba(15,63,105,.06);
}
.top-actions>a:hover{transform:translateY(-1px);background:#f0f8ff;color:var(--fobak-blue)}
.global-search-form{border:1px solid #cde0ef;box-shadow:var(--shadow2)}
.global-search-form button{background:linear-gradient(135deg,var(--fobak-blue),var(--fobak-cyan));}
.language-select{color:var(--fobak-blue)}

.card,
.panel-card,
.kpi-card,
.dashboard-welcome,
.mobile-card,
.auth-card,
.activity-card,
.stat,
.table-wrap,
table{
  border:1px solid #dde9f4;
  box-shadow:var(--shadow2)!important;
}
.card,
.panel-card,
.dashboard-welcome,
.kpi-card,
.activity-card,
.auth-card{background:var(--soft-brand)}
.section-title,
.panel-head h2,
.activity-card h3,
.workspace-topbar strong,
.dashboard-welcome h1,
.side-user strong,
.table-wrap th,
th,
.form label,
.list-item strong,
.paper-head h2,
.section-line{color:var(--fobak-blue)!important}

.btn.primary{
  background:linear-gradient(135deg,var(--fobak-yellow),#f7e866)!important;
  color:#163554!important;
}
.btn.light,
.btn{
  background:linear-gradient(135deg,#ffffff,#f2f8fd);
  color:var(--fobak-blue);
  border:1px solid #d8e7f4;
}
.btn:hover,
.tabs a:hover{transform:translateY(-1px)}
.tabs a.active{background:linear-gradient(135deg,var(--fobak-blue),var(--fobak-cyan));color:#fff}
.logout-btn{color:#fff!important;background:linear-gradient(135deg,var(--fobak-red),#c61f29)!important}
.avatar-letter{background:linear-gradient(135deg,var(--fobak-yellow),#ffe65a)!important;color:#17324f!important}
.badge.active{background:#e8fbf0;color:var(--fobak-green)}
.badge.inactive{background:#fff6d6;color:#8a6000}
.badge.archived{background:#ffe8ea;color:#b31625}

.side-dashboard{
  background:linear-gradient(180deg,#0f4f83 0%, #0b3f69 55%, #082c48 100%)!important;
}
.side-dashboard:before{
  background:
    radial-gradient(circle at 10% 0%,rgba(243,213,28,.20),transparent 28%),
    radial-gradient(circle at 88% 10%,rgba(31,180,239,.16),transparent 34%),
    radial-gradient(circle at 80% 70%,rgba(236,46,57,.10),transparent 25%);
}
.side-menu a:hover,
.side-menu a.active{
  background:linear-gradient(90deg,rgba(31,180,239,.24),rgba(243,213,28,.14))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}
.menu-badge,
.top-actions sup{background:var(--fobak-red)!important}

.table-wrap table,
.printable table{border-radius:16px;overflow:hidden}
th{background:linear-gradient(180deg,#edf7ff,#e5f2fd)!important}
tr:nth-child(even) td{background:rgba(31,180,239,.03)}

.app-footer.dashboard-style-footer{
  background:var(--footer-gradient)!important;
  border-top:4px solid var(--fobak-yellow)!important;
}
.app-footer.dashboard-style-footer:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right,rgba(31,180,239,.18),transparent 30%),
    radial-gradient(circle at left center,rgba(243,213,28,.10),transparent 24%);
  pointer-events:none;
}
.footer-about,
.app-footer.dashboard-style-footer > div{position:relative;z-index:1}
.footer-about p{line-height:1.65}
.socials a{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  margin-right:6px!important;
}

.official-form-head,
.adhesion-paper{background:#fff}
.adhesion-paper{
  border:1px solid #d7e4ef;
  box-shadow:0 18px 36px rgba(15,63,105,.08);
}
.paper-head{
  border-bottom:2px solid #d6e5f4;
}
.photo-preview{
  border:2px solid var(--fobak-blue);
  background:linear-gradient(180deg,#fff,#f7fbff);
}
.declaration{
  border-left:5px solid var(--fobak-yellow)!important;
  background:linear-gradient(180deg,#fffefa,#fff)!important;
}

.flag-real,
.paper-flag img{
  border:1px solid rgba(255,255,255,.55);
}

@media(max-width:1100px){
  .public-contact-ribbon{top:124px}
  .logo-box{width:140px;height:50px}
}
@media(max-width:900px){
  .contact-ribbon{gap:8px;padding:8px 12px}
  .contact-chip{width:100%;border-radius:14px;justify-content:flex-start}
  .public-contact-ribbon{position:relative;top:0}
  .admin-contact-ribbon{padding:6px 12px 10px}
  .side-logo{width:108px;height:42px}
  .footer-logo{width:160px;height:52px}
}
@media(max-width:560px){
  .logo-box{width:120px;height:42px}
  .brand-block strong{font-size:17px}
  .brand-block span,.brand-block em{font-size:10px}
}
@media print{
  .contact-ribbon{display:none!important}
  .logo-box,.side-logo,.footer-logo,.loader-logo{background:none!important}
}

/* ===== FOBAK V4 : formulaires, tableaux, accueil et impressions ===== */
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:0 0 18px;padding:22px 24px;border:1px solid #d9e8f4;border-left:6px solid var(--fobak-cyan);border-radius:22px;background:linear-gradient(135deg,#fff,#f0f8fe);box-shadow:var(--shadow2)}
.page-heading h1,.page-heading h2{margin:0;color:var(--fobak-blue);line-height:1.15}.page-heading p{margin:8px 0 0;color:#60758a;line-height:1.55}.page-heading-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.form.grid.two{gap:18px 20px}.form .section-line{position:relative;margin:18px 0 2px;padding:13px 16px;border:1px solid #d5e7f4;border-left:5px solid var(--fobak-cyan);border-radius:14px;background:linear-gradient(90deg,#edf8ff,#fff);font-size:19px;text-decoration:none}.form label{display:block}.form input,.form select,.form textarea,.filters input,.filters select{border:1px solid #c9dbea;background:#fff;box-shadow:inset 0 1px 2px rgba(15,63,105,.03)}.form input:focus,.form select:focus,.form textarea:focus,.filters input:focus,.filters select:focus{outline:0;border-color:var(--fobak-cyan);box-shadow:0 0 0 4px rgba(31,180,239,.13)}
.form small,.field-help{display:block;color:#6c7f91;margin-top:6px;line-height:1.4}.phone-composite{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(180px,1.1fr);gap:9px}.camera-preview{width:150px;height:180px;border:2px dashed #91b8d5;border-radius:16px;background:linear-gradient(180deg,#fff,#eef8ff);display:grid;place-items:center;overflow:hidden;color:#66839a;font-weight:900}.camera-preview img{width:100%;height:100%;object-fit:cover;display:none}.camera-preview img[src]:not([src=""]){display:block}.camera-preview img[src]:not([src=""])+span{display:none}.photo-capture-widget{padding:18px;border:1px solid #d7e7f3;border-radius:18px;background:#f8fcff}.camera-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.file-btn input{display:none}.camera-video{width:min(100%,460px);border-radius:16px;background:#102f49;margin:10px 0}.checkbox-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;background:#f7fbfe!important;border-color:#d7e7f3!important}.checkbox-grid label{padding:8px 10px;border-radius:10px;background:#fff;border:1px solid #e1edf6}
.filters{padding:14px;border:1px solid #d9e7f2;border-radius:18px;background:#f8fbfe;align-items:end}.table-wrap{border-radius:18px!important;overflow:auto;background:#fff}.table-wrap table{min-width:860px}.table-wrap th{position:sticky;top:0;z-index:2;white-space:nowrap}.table-wrap td{vertical-align:middle}.actions-cell .btn{margin:2px}.list-item:hover{background:#f4f9fd}.empty-state{padding:30px;text-align:center;color:#6b7d90}.empty-state strong{display:block;color:var(--fobak-blue);font-size:20px;margin-bottom:6px}
.home-intro{display:grid;grid-template-columns:1.15fr .85fr;gap:20px;margin:24px 0}.home-intro-card{padding:26px;border-radius:24px;border:1px solid #d9e8f4;background:linear-gradient(135deg,#fff,#eff9ff);box-shadow:var(--shadow2)}.home-intro-card h2{margin-top:0;color:var(--fobak-blue)}.home-contact-card{background:linear-gradient(135deg,#0f5f99,#18aee0);color:#fff}.home-contact-card h2{color:#fff}.home-contact-list{display:grid;gap:13px;margin-top:16px}.home-contact-list div{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:12px;border-radius:14px;background:rgba(255,255,255,.12)}.home-contact-list strong{display:block}.home-contact-list span{opacity:.9;overflow-wrap:anywhere}.public-info-strip>div{border-top:4px solid var(--fobak-cyan)}.public-info-strip>div:nth-child(2){border-top-color:var(--fobak-yellow)}.public-info-strip>div:nth-child(3){border-top-color:var(--fobak-green)}.public-info-strip>div:nth-child(4){border-top-color:var(--fobak-red)}
.print-brand-logo{object-fit:contain!important;background:transparent!important;border:0!important}.print-contact-line{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;color:#294a65;font-size:11px}.print-footer-note{margin-top:14px;padding-top:8px;border-top:1px solid #9db7ca;text-align:center;font-size:10px;color:#435d72}
@media(max-width:800px){.page-heading{flex-direction:column;padding:18px}.page-heading-actions{justify-content:flex-start}.phone-composite{grid-template-columns:1fr}.home-intro{grid-template-columns:1fr}.form.grid.two{grid-template-columns:1fr}.camera-preview{width:130px;height:156px}.filters{padding:10px}}
@media print{.page-heading,.camera-actions,.photo-capture-widget small{box-shadow:none!important}.adhesion-paper{box-shadow:none!important;border:0!important}.form input,.form select,.form textarea{border-bottom:1px solid #333!important;border-radius:0!important;box-shadow:none!important}.print-brand-logo{object-fit:contain!important}}

/* FOBAK V5 — outils universels des listes et état de connexion */
.list-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.list-actions{display:flex;gap:9px;flex-wrap:wrap}.universal-filters{grid-template-columns:2fr repeat(3,1fr) auto auto!important;align-items:end}.universal-table-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0;padding:11px;border:1px solid #d8e7f4;border-radius:16px;background:#f7fbff}.universal-table-tools input{flex:1 1 260px;min-height:42px;padding:10px 13px;border:1px solid #cbddeb;border-radius:12px;background:#fff}.visible-row-count{font-weight:800;color:#175f9d;white-space:nowrap}.badge.online{background:#e7f9ef;color:#08753e;display:inline-flex;align-items:center;gap:6px}.badge.online i{width:8px;height:8px;border-radius:50%;background:#18a957;box-shadow:0 0 0 4px rgba(24,169,87,.12)}.badge.offline{background:#edf1f5;color:#59687b}.print-list-page{padding:10mm;font-family:Arial,sans-serif}.print-list-head{display:flex;align-items:center;gap:20px;border-bottom:3px solid #f3d51c;padding-bottom:12px;margin-bottom:16px}.print-list-logo{width:180px;height:64px}.print-list-logo img{width:100%;height:100%;object-fit:contain}.print-list-head h1{margin:0;color:#175f9d}.print-list-page table{width:100%;border-collapse:collapse;font-size:10px}.print-list-page th,.print-list-page td{border:1px solid #cddbe8;padding:6px}.print-list-page th{background:#eaf5fc}.print-list-page footer{text-align:center;margin-top:16px;color:#59687b}@media(max-width:900px){.universal-filters{grid-template-columns:1fr!important}.list-page-head{display:block}.list-actions{margin-top:10px}.universal-table-tools .btn{flex:1 1 160px}}@media print{.no-print,.universal-table-tools,.universal-filters,.list-actions{display:none!important}}

/* ===== FOBAK V6 - CORRECTIONS FINALES D'ALIGNEMENT ===== */
.contact-ribbon{display:none!important}
body{overflow-x:hidden}
.site-header.public-header{display:grid!important;grid-template-columns:190px 1fr 92px;align-items:center;gap:20px;padding:10px clamp(16px,3vw,38px)!important;min-height:92px!important}
.site-header.public-header .logo-box{width:190px!important;height:62px!important;justify-content:flex-start!important}
.site-header.public-header .logo-box img{max-width:100%;max-height:100%;object-fit:contain!important;object-position:left center}
.site-header.public-header .flag-real{justify-self:end;width:82px;height:54px}
.site-header.public-header .brand-block{text-align:center}
.site-header.public-header .brand-block strong{font-size:25px;line-height:1.1}
.site-header.public-header .brand-block span{margin-top:4px}
.top-nav.public-nav{top:92px!important;align-items:center;justify-content:center;flex-wrap:wrap}
.public-content{padding-top:22px!important}
.side-logo{width:150px!important;height:54px!important}
.side-logo img{object-position:left center}
.side-brand>div:last-child{min-width:0}
.side-brand strong{white-space:normal!important}
.workspace-topbar{min-height:88px;align-items:center}
.workspace-topbar>div:first-child{min-width:190px}
.workspace-content{padding-top:22px!important}

.hero-fullwidth{width:100%!important;margin:0!important;min-height:430px!important;height:430px!important;border-radius:26px!important}
.hero-fullwidth .slides,.hero-fullwidth .slide{border-radius:26px!important}
.brand-fallback{opacity:1!important;background:linear-gradient(135deg,#0b3f69 0%,#126aa8 52%,#1fb4ef 100%)!important}
.brand-fallback:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 22%,rgba(243,213,28,.22),transparent 25%),radial-gradient(circle at 18% 80%,rgba(26,138,82,.14),transparent 28%)}
.fallback-brand-logo{position:absolute;right:7%;top:50%;transform:translateY(-50%);width:min(400px,38vw);height:180px;display:flex;align-items:center;justify-content:center;opacity:.23}
.fallback-brand-logo img{width:100%;height:100%;object-fit:contain}
.hero:before{background:linear-gradient(90deg,rgba(5,29,50,.86),rgba(5,29,50,.46),rgba(5,29,50,.20))!important}
.hero-overlay{padding:80px 44px!important;max-width:700px}
.hero-overlay h1{font-size:44px!important}
.rotating-watermark-logo{display:none!important}

.app-footer.dashboard-style-footer{width:100%!important;max-width:none!important;margin:24px 0 0!important;border-radius:0!important}
.public-footer{max-width:none!important}
.footer-logo{width:210px!important;height:66px!important;background:transparent!important}
.footer-logo img{object-fit:contain!important;object-position:left center}
.footer-about{max-width:310px}
.footer-bottom{left:0!important;right:0!important}

.paper-logo{width:150px!important;height:52px!important;border:0!important;border-radius:0!important;background:transparent!important}
.paper-logo img{object-fit:contain!important}
.official-form-head{grid-template-columns:150px 1fr 150px 105px!important;gap:16px!important;align-items:center!important}
.paper-flag img{width:120px!important;height:72px!important}
.photo-preview{width:88px!important;height:108px!important;border-radius:4px!important}
.adhesion-paper{max-width:1050px;margin-left:auto;margin-right:auto}

@media(max-width:900px){
  .site-header.public-header{grid-template-columns:130px 1fr 64px;gap:10px;min-height:78px!important;padding:8px 12px!important}
  .site-header.public-header .logo-box{width:130px!important;height:48px!important}
  .site-header.public-header .flag-real{width:58px;height:40px}
  .site-header.public-header .brand-block strong{font-size:18px}
  .site-header.public-header .brand-block span,.site-header.public-header .brand-block em{font-size:10px}
  .top-nav.public-nav{top:78px!important;justify-content:flex-start;flex-wrap:nowrap}
  .hero-fullwidth{height:390px!important;min-height:390px!important;border-radius:18px!important}
  .hero-fullwidth .slides,.hero-fullwidth .slide{border-radius:18px!important}
  .hero-overlay{padding:62px 24px!important}
  .hero-overlay h1{font-size:34px!important}
  .fallback-brand-logo{width:44vw;height:130px;right:3%}
  .official-form-head{grid-template-columns:1fr!important;text-align:center}
  .paper-logo,.photo-preview,.paper-flag img{margin-left:auto!important;margin-right:auto!important}
}
@media(max-width:560px){
  .site-header.public-header{grid-template-columns:105px 1fr;min-height:70px!important}
  .site-header.public-header .logo-box{width:105px!important;height:42px!important}
  .site-header.public-header .flag-real{display:none!important}
  .site-header.public-header .brand-block strong{font-size:15px}
  .top-nav.public-nav{top:70px!important}
  .hero-fullwidth{height:350px!important;min-height:350px!important}
  .hero-overlay h1{font-size:28px!important}
  .fallback-brand-logo{display:none}
}

/* ===== Corrections logo FOBAK V7 ===== */
:root{--fobak-logo-width:240px;--fobak-logo-height:76px}
.logo-box,
.side-logo,
.footer-logo,
.loader-logo,
.paper-logo,
.print-logo,
.print-list-logo,
.fallback-brand-logo{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
}
.logo-box{width:var(--fobak-logo-width)!important;height:var(--fobak-logo-height)!important;display:flex;align-items:center;justify-content:flex-start}
.side-logo{width:170px!important;height:58px!important;display:flex;align-items:center;justify-content:flex-start}
.footer-logo{width:240px!important;height:76px!important}
.loader-logo{width:104px!important;height:56px!important}
.paper-logo{width:180px!important;height:62px!important;display:flex;align-items:center;justify-content:flex-start}
.paper-head .paper-logo img,
.logo-box img,
.side-logo img,
.footer-logo img,
.loader-logo img,
.paper-logo img,
.print-logo img,
.print-list-logo img,
.fallback-brand-logo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:left center!important;
  display:block;
}
.official-form-head{grid-template-columns:180px minmax(280px,1fr) 120px 100px!important}
.paper-flag{display:flex;align-items:center;justify-content:center}
.print-head{grid-template-columns:170px 1fr 120px!important}
.print-list-head{grid-template-columns:180px 1fr 120px!important}
.head{grid-template-columns:170px 1fr 120px!important}
.site-header.public-header{display:grid;grid-template-columns:var(--fobak-logo-width) 1fr 120px;align-items:center;gap:16px}
.brand-block{text-align:center}
.flag-real{justify-self:end}
.fallback-brand-logo{width:300px;height:95px;max-width:62vw}
@media(max-width:900px){
  .site-header.public-header{grid-template-columns:150px 1fr 78px!important;gap:10px}
  .logo-box{width:150px!important;height:52px!important}
  .side-logo{width:138px!important;height:50px!important}
  .footer-logo{width:180px!important;height:58px!important}
  .paper-logo{width:150px!important;height:54px!important}
  .official-form-head{grid-template-columns:1fr!important}
  .brand-block{text-align:left}
}
@media(max-width:560px){
  .site-header.public-header{grid-template-columns:1fr!important}
  .logo-box,.flag-real{justify-self:start}
  .brand-block{text-align:left}
}

body.has-watermark:before{display:none!important}


/* ===== Ajustement entête formulaire adhésion V10 ===== */
.form-top-heading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:14px;
  padding:24px 28px;
}
.form-top-heading .heading-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}
.heading-form-logo{
  width:min(340px, 70vw);
  max-height:110px;
  object-fit:contain;
  object-position:center;
  display:block;
}
.form-top-heading .heading-copy{
  max-width:820px;
  margin:0 auto;
}
.form-top-heading h1{
  margin:0;
  font-size:clamp(30px, 3vw, 40px);
  line-height:1.15;
  text-align:center;
  color:var(--fobak-blue);
}
.form-top-heading p{
  margin:10px auto 0;
  text-align:center;
  max-width:760px;
  font-size:17px;
  color:#52687d;
}
@media (max-width:800px){
  .form-top-heading{padding:18px 16px;gap:10px}
  .heading-form-logo{width:min(260px, 78vw);max-height:82px}
  .form-top-heading p{font-size:15px}
}

/* ===== Nettoyage formulaire, recherche latérale et caméra V11 ===== */
.side-menu-search{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 28px;
  align-items:center;
  gap:6px;
  margin:0 4px 14px;
  padding:7px 8px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(6px);
}
.side-menu-search span{display:grid;place-items:center;font-size:14px}
.side-menu-search input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  padding:7px 2px;
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:13px;
}
.side-menu-search input::placeholder{color:rgba(255,255,255,.72)}
.side-menu-search button{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  color:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.side-menu-search button:hover{background:rgba(255,255,255,.25)}
.side-menu-search-empty{position:relative;z-index:2;display:block;margin:-5px 9px 12px;color:#ffe98a;font-size:12px}
.side-menu a[hidden]{display:none!important}

.adhesion-paper{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
  padding:clamp(18px,3vw,32px)!important;
  border-radius:24px!important;
}
.adhesion-paper .form-title{
  margin:20px 0 4px;
  color:#123f68;
  font-size:clamp(28px,3vw,38px);
  text-decoration:none;
}
.adhesion-paper .form-title:after{
  content:"";
  display:block;
  width:94px;
  height:4px;
  margin:10px auto 0;
  border-radius:999px;
  background:linear-gradient(90deg,var(--fobak-blue),var(--fobak-cyan),var(--fobak-yellow));
}
.adhesion-paper .section-line{
  display:flex;
  align-items:center;
  gap:12px;
  margin:28px 0 6px;
  padding:12px 16px;
  border:0;
  border-left:5px solid var(--fobak-cyan);
  border-radius:12px;
  background:linear-gradient(90deg,#eef8ff,#f8fcff);
  font-size:19px;
}
.adhesion-paper .form.grid.two{gap:18px 20px}
.adhesion-paper .form label{display:block;color:#183b5a}
.adhesion-paper .form input,
.adhesion-paper .form select,
.adhesion-paper .form textarea{
  border:1px solid #cbddec;
  background:#fff;
  box-shadow:0 3px 10px rgba(15,63,105,.035);
}
.adhesion-paper .form input:focus,
.adhesion-paper .form select:focus,
.adhesion-paper .form textarea:focus{
  outline:0;
  border-color:var(--fobak-cyan);
  box-shadow:0 0 0 4px rgba(31,180,239,.13);
}
.photo-capture-widget{
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  gap:16px 22px;
  align-items:start;
  padding:18px;
  border:1px dashed #a9c8df;
  border-radius:18px;
  background:linear-gradient(135deg,#f9fcff,#eef8ff);
}
.photo-capture-widget>label{grid-column:1/-1;margin:0;font-size:16px}
.camera-preview{
  grid-column:1;
  grid-row:2 / span 4;
  width:150px;
  height:190px;
  border:2px solid #5f86a5;
  border-radius:16px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#fff;
}
.camera-preview img{width:100%;height:100%;object-fit:cover;display:none}
.camera-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.camera-video{grid-column:2;width:min(100%,520px);max-height:360px;border-radius:16px;background:#102b43;object-fit:cover}
.take-snapshot{grid-column:2;width:max-content}
.camera-status{
  grid-column:2;
  min-height:22px;
  padding:8px 10px;
  border-radius:10px;
  color:#52687d;
  font-size:13px;
}
.camera-status.success{background:#e9f9ef;color:#08753e}
.camera-status.error{background:#fff0f1;color:#a31624}
.camera-status.info{background:#eef7ff;color:#145985}
.photo-capture-widget>small{grid-column:2;color:#60758a}
.file-btn input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}

@media(max-width:800px){
  .photo-capture-widget{grid-template-columns:1fr}
  .photo-capture-widget>label,.camera-preview,.camera-actions,.camera-video,.take-snapshot,.camera-status,.photo-capture-widget>small{grid-column:1;grid-row:auto}
  .camera-preview{margin:0 auto;width:150px;height:190px}
  .camera-actions{justify-content:center}
  .take-snapshot{width:100%}
}

/* Module cartes PVC V12 */
.card-actions-cell{min-width:230px}.card-actions-cell .btn,.card-actions-cell form{margin:3px 2px;display:inline-flex}.card-actions-cell form.inline{display:inline-block}.card-expired{background:#ffe8ea;color:#a41122}.card-soon{background:#fff6d6;color:#855500}

/* ===== Révision internationale et cohérence générale V13 ===== */
:root{--public-max:1280px;--public-gap:14px}
body.public-layout{background:#eef4fa;padding:14px 0 64px!important}
body.public-layout>.site-header,
body.public-layout>.top-nav,
body.public-layout>.main-content,
body.public-layout>.app-footer{
  width:min(calc(100% - 28px),var(--public-max))!important;
  max-width:var(--public-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.site-header.public-header{position:sticky;top:0;border-radius:18px 18px 0 0!important;overflow:hidden}
.top-nav.public-nav{top:92px;border-radius:0 0 16px 16px!important}
.public-content{padding:22px 0 34px!important;min-height:520px!important}
.public-footer{border-radius:22px 22px 0 0!important;margin-top:26px!important}

/* Toujours garder le vrai logo horizontal, jamais dans un rond. */
.logo-box,.side-logo,.footer-logo,.loader-logo,.dashboard-seal.logo-seal,
.dashboard-seal:has(img),.large-seal:has(img){
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;overflow:visible!important;
}
.logo-box img,.side-logo img,.footer-logo img,.loader-logo img,
.dashboard-seal img,.large-seal img{
  object-fit:contain!important;object-position:center!important;width:100%!important;height:100%!important;
}
.site-header.public-header .logo-box{width:230px!important;height:70px!important}
.side-logo{width:190px!important;height:60px!important}
.footer-logo{width:230px!important;height:72px!important}
.loader-logo-ring{width:180px!important;height:86px!important;border-radius:18px!important;background:#fff!important;animation:none!important;padding:10px!important}
.loader-logo-ring .loader-logo{width:100%!important;height:100%!important;border:0!important}
.dashboard-seal:has(img),.large-seal:has(img){width:240px!important;height:84px!important;flex:none!important}

.welcome-hero{
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:28px;align-items:center;
  min-height:420px;padding:clamp(30px,5vw,64px);border-radius:28px;
  background:linear-gradient(135deg,#073c69 0%,#0e68a8 58%,#24b9e7 100%);
  color:#fff;box-shadow:0 22px 55px rgba(8,58,99,.20);overflow:hidden;position:relative;
}
.welcome-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 88% 18%,rgba(255,216,30,.20),transparent 24%),radial-gradient(circle at 10% 100%,rgba(255,255,255,.12),transparent 34%);pointer-events:none}
.welcome-copy,.welcome-visual{position:relative;z-index:1}
.welcome-kicker{display:inline-block;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.13);font-weight:800;letter-spacing:.04em}
.welcome-hero h1{font-size:clamp(36px,4.5vw,62px);line-height:1.05;margin:18px 0 14px;max-width:850px}
.welcome-hero p{font-size:19px;line-height:1.65;max-width:760px;color:rgba(255,255,255,.9)}
.welcome-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:24px}
.welcome-trust{display:flex;flex-wrap:wrap;gap:16px;margin-top:25px;color:#eaf7ff;font-size:14px;font-weight:700}
.welcome-visual{min-height:260px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:24px;border-radius:24px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px)}
.welcome-visual img{width:min(100%,360px);max-height:125px;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(0,0,0,.16))}
.welcome-badge{text-align:center;margin-top:20px}.welcome-badge strong{display:block;font-size:30px}.welcome-badge small{font-size:15px;opacity:.9}
.public-carousel-compact{position:relative;height:310px;border-radius:24px;overflow:hidden;margin:22px 0;box-shadow:var(--shadow2)}
.public-carousel-compact .slides,.public-carousel-compact .slide{position:absolute;inset:0;border-radius:24px}

.home-intro{align-items:stretch}.home-intro-card{height:100%}
.home-contact-list a,.home-contact-list div{display:grid!important;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:12px;border-radius:14px;background:rgba(255,255,255,.12);color:inherit;text-decoration:none}
.home-contact-list a:hover{background:rgba(255,255,255,.20);transform:translateY(-1px)}
.contact-detail-list{display:grid;gap:12px;margin:18px 0}
.contact-detail-list>a,.contact-detail-list>div{display:flex;flex-direction:column;gap:5px;padding:15px;border-radius:14px;background:#f2f8fd;border:1px solid #d9e8f4;color:#173b5d;text-decoration:none}
.footer-map-link{display:inline!important;color:inherit!important;text-decoration:underline!important}

/* Alignement typographique et suppression des éléments inutiles. */
.home-contact-list strong{margin-right:6px}
.public-info-strip{margin-top:22px}
.public-info-strip>div{min-height:112px;display:flex;flex-direction:column;justify-content:center}
.app-footer.dashboard-style-footer{width:min(calc(100% - 28px),var(--public-max));box-sizing:border-box}
.app-footer.dashboard-style-footer .footer-bottom{border-radius:0 0 18px 18px}

@media(max-width:900px){
  body.public-layout{padding-top:8px!important}
  body.public-layout>.site-header,body.public-layout>.top-nav,body.public-layout>.main-content,body.public-layout>.app-footer{width:calc(100% - 16px)!important}
  .welcome-hero{grid-template-columns:1fr;min-height:auto;padding:30px 22px}
  .welcome-visual{min-height:180px}.welcome-visual img{max-height:95px}
  .site-header.public-header .logo-box{width:160px!important;height:52px!important}
  .top-nav.public-nav{top:78px}
}
@media(max-width:560px){
  .site-header.public-header{grid-template-columns:1fr 70px!important}
  .site-header.public-header .brand-block{display:none}
  .site-header.public-header .flag-real{display:block!important;width:62px!important;height:42px!important;justify-self:end!important}
  .site-header.public-header .logo-box{width:190px!important;height:54px!important}
  .welcome-hero h1{font-size:34px}.welcome-hero p{font-size:16px}
  .welcome-actions .btn{width:100%}.welcome-trust{display:grid;gap:8px}
  .public-carousel-compact{height:230px}
}

/* ===== Stabilisation commerciale et carrousel V14 ===== */
.public-carousel-compact .slide{opacity:0!important;animation:none!important;transition:opacity .65s ease;pointer-events:none}
.public-carousel-compact .slide.is-active{opacity:1!important;pointer-events:auto}
.carousel-control{position:absolute;top:50%;z-index:7;transform:translateY(-50%);width:46px;height:46px;border:1px solid rgba(255,255,255,.65);border-radius:50%;background:rgba(7,48,82,.72);color:#fff;font-size:31px;line-height:1;cursor:pointer;backdrop-filter:blur(5px)}
.carousel-control:hover{background:#0b66c3}.carousel-control.prev{left:16px}.carousel-control.next{right:16px}
.carousel-dots{position:absolute;z-index:8;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:8px}
.carousel-dots button{width:10px;height:10px;border-radius:999px;border:1px solid #fff;background:rgba(255,255,255,.45);padding:0;cursor:pointer}
.carousel-dots button.is-active{width:28px;background:#ffd21e}
.carousel-fallback-slide{background:linear-gradient(135deg,#082f51 0%,#0b66a7 55%,#1eb5df 100%);display:flex;align-items:center;justify-content:center}
.carousel-fallback-slide:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 30%,rgba(255,210,30,.23),transparent 26%),linear-gradient(120deg,transparent 48%,rgba(255,255,255,.08) 49%,transparent 51%)}
.carousel-fallback-logo{position:relative;z-index:2;width:min(470px,60vw);height:150px;display:flex;align-items:center;justify-content:center;opacity:.94}
.carousel-fallback-logo img{width:100%;height:100%;object-fit:contain}
.readiness-score{width:150px;height:150px;border-radius:50%;display:grid;place-content:center;text-align:center;background:#fff;color:#0b4f86;box-shadow:0 18px 44px rgba(0,0,0,.22);z-index:1}.readiness-score strong{font-size:38px}.readiness-score span{font-size:12px;font-weight:800}
.readiness-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:18px 0}.readiness-item{display:flex;gap:14px;align-items:flex-start;padding:17px;border-radius:18px;background:#fff;border:1px solid #dce8f2;box-shadow:var(--shadow2)}.readiness-item>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:900;color:#fff;flex:none}.readiness-item.ready>span{background:#138a50}.readiness-item.todo>span{background:#d12231}.readiness-item strong,.readiness-item small{display:block}.readiness-item small{margin-top:5px;color:#63778b;overflow-wrap:anywhere}
@media(max-width:700px){.carousel-control{width:40px;height:40px}.carousel-fallback-logo{width:70vw;height:100px}.readiness-score{width:110px;height:110px}.readiness-score strong{font-size:29px}}


/* ===== Correctifs V15 : logo officiel horizontal et mots de passe ===== */
.logo-box,.side-logo,.footer-logo,.loader-logo,.paper-logo,.dashboard-seal.logo-seal,
.dashboard-seal:has(img),.large-seal:has(img),.print-logo,.print-list-logo{
  border-radius:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  clip-path:none!important;
}
.logo-box img,.side-logo img,.footer-logo img,.loader-logo img,.paper-logo img,
.dashboard-seal img,.large-seal img,.print-logo img,.print-list-logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  clip-path:none!important;
  transform:none!important;
}
.side-brand{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:6px!important}
.side-logo{width:220px!important;height:74px!important;max-width:100%!important}
.side-brand>div:last-child{display:none!important}
.site-header.public-header .logo-box{width:250px!important;height:82px!important}
.footer-logo{width:250px!important;height:82px!important}
.loader-logo-ring{width:220px!important;height:100px!important;border-radius:16px!important;padding:10px!important}

.password-field-wrap{position:relative;display:block;width:100%}
.password-field-wrap>input{padding-right:48px!important;width:100%!important}
.password-toggle-btn{
  position:absolute;right:7px;top:50%;transform:translateY(-50%);z-index:3;
  width:36px;height:36px;border:0;border-radius:10px;background:#eef6fd;color:#0b4f86;
  display:grid;place-items:center;cursor:pointer;font-size:17px;line-height:1;
}
.password-toggle-btn:hover,.password-toggle-btn:focus-visible{background:#dceeff;outline:2px solid #7dbce8;outline-offset:1px}
@media(max-width:900px){
  .side-logo{width:190px!important;height:64px!important}
  .site-header.public-header .logo-box{width:200px!important;height:66px!important}
}


/* ===== Logo transparent officiel FOBAK V16 ===== */
.logo-box,.side-logo,.footer-logo,.loader-logo,.paper-logo,.print-logo,.print-list-logo,.fallback-brand-logo,.dashboard-seal{
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.logo-box img,.side-logo img,.footer-logo img,.loader-logo img,.paper-logo img,.print-logo img,.print-list-logo img,.fallback-brand-logo img,.dashboard-seal img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  clip-path:none!important;
  mask:none!important;
  background:transparent!important;
}
.side-logo{width:190px!important;height:64px!important}
.logo-box{width:250px!important;height:82px!important}
.footer-logo{width:250px!important;height:84px!important}
.loader-logo{width:150px!important;height:60px!important}
@media(max-width:900px){.side-logo{width:155px!important;height:54px!important}.logo-box{width:170px!important;height:58px!important}.footer-logo{width:190px!important;height:65px!important}}


/* Installation sur ordinateur/téléphone */
.install-pwa-button{position:fixed;right:18px;bottom:108px;z-index:91;display:flex;align-items:center;gap:7px;border:0;background:linear-gradient(135deg,#159ad6,#0b5d94);color:#fff;border-radius:999px;padding:12px 16px;box-shadow:0 16px 34px rgba(5,54,91,.28);font:inherit;font-weight:900;cursor:pointer}
.install-pwa-button[hidden]{display:none!important}
@media(max-width:560px){.install-pwa-button{right:14px;bottom:104px;width:52px;height:52px;justify-content:center;padding:0}.install-pwa-button span{display:none}}

/* ===== Stratégie logo FOBAK V18 : visibilité professionnelle ===== */
:root{
  --logo-panel-bg: rgba(255,255,255,.98);
  --logo-panel-border: rgba(11,58,102,.12);
  --logo-panel-shadow: 0 10px 24px rgba(4,28,50,.18);
}

/* 1) Toujours préserver la forme horizontale complète du logo */
.logo-box,
.side-logo,
.footer-logo,
.loader-logo,
.paper-logo,
.print-logo,
.print-list-logo,
.dashboard-seal.logo-seal,
.carousel-fallback-logo,
.heading-form-logo{
  border-radius: 0 !important;
  overflow: visible !important;
}
.logo-box img,
.side-logo img,
.footer-logo img,
.loader-logo img,
.paper-logo img,
.print-logo img,
.print-list-logo img,
.dashboard-seal.logo-seal img,
.carousel-fallback-logo img,
.heading-form-logo{
  object-fit: contain !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  image-rendering: -webkit-optimize-contrast;
  filter: saturate(1.04) contrast(1.06);
}

/* 2) Sur fonds sombres, utiliser une plaque blanche légère pour rendre le logo bien visible */
.site-header.public-header .logo-box,
.side-logo,
.app-footer .footer-logo,
.loader-logo,
.fixed-footer .footer-logo{
  background: var(--logo-panel-bg) !important;
  border: 1px solid var(--logo-panel-border) !important;
  box-shadow: var(--logo-panel-shadow) !important;
  padding: 10px 14px !important;
}
.site-header.public-header .logo-box{width: 280px !important; height: 92px !important;}
.side-logo{width: 230px !important; height: 82px !important;}
.app-footer .footer-logo,
.fixed-footer .footer-logo{width: 260px !important; height: 88px !important;}
.loader-logo{width: 170px !important; height: 74px !important; padding: 10px 12px !important;}
.loader-logo-ring{
  width: 210px !important;
  height: 96px !important;
  border-radius: 20px !important;
  background: transparent !important;
  animation: none !important;
  box-shadow: none !important;
}
.loader-card{max-width: 420px !important;}

/* 3) Sur fonds clairs, laisser le logo respirer, sans l'affadir */
.paper-logo,
.print-logo,
.print-list-logo,
.carousel-fallback-logo,
.dashboard-seal.logo-seal{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.paper-logo{width: 200px !important; height: 72px !important;}
.print-logo{width: 190px !important; height: 68px !important;}
.print-list-logo{width: 200px !important; height: 70px !important;}
.carousel-fallback-logo{width: 320px; height: 120px; margin-bottom: 16px;}
.dashboard-seal.logo-seal{width: 320px !important; height: 120px !important; padding: 0 !important; display:flex; align-items:center; justify-content:center;}
.heading-form-logo{display:block; width:min(380px, 76vw) !important; max-height:120px !important; margin-inline:auto;}

/* 4) Éviter toute opacité involontaire sur les zones contenant le logo */
.logo-box,
.side-logo,
.footer-logo,
.loader-logo,
.paper-logo,
.print-logo,
.print-list-logo,
.dashboard-seal.logo-seal,
.carousel-fallback-logo{opacity:1 !important;}

/* 5) Ajustements responsives */
@media (max-width: 900px){
  .site-header.public-header .logo-box{width: 210px !important; height: 72px !important; padding: 8px 10px !important;}
  .side-logo{width: 180px !important; height: 64px !important;}
  .app-footer .footer-logo,
  .fixed-footer .footer-logo{width: 200px !important; height: 68px !important;}
  .loader-logo-ring{width: 180px !important; height: 86px !important;}
  .loader-logo{width: 145px !important; height: 62px !important;}
}
@media (max-width: 600px){
  .site-header.public-header .logo-box{width: 165px !important; height: 60px !important;}
  .heading-form-logo{width:min(290px, 84vw) !important; max-height:96px !important;}
}

/* ===== Logo FOBAK V19 : contraste professionnel multi-support ===== */
/* Aucun panneau blanc rectangulaire : le logo sombre possède son propre liseré discret. */
.site-header.public-header .logo-box,
.side-logo,
.app-footer .footer-logo,
.fixed-footer .footer-logo,
.loader-logo{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}

/* Le logo principal reste vif sur les fonds clairs. */
.paper-logo img,
.print-logo img,
.print-list-logo img,
.heading-form-logo,
.carousel-fallback-logo img,
.dashboard-seal.logo-seal img{
  filter:saturate(1.10) contrast(1.08) brightness(1.01)!important;
}

/* La variante fond sombre reçoit un halo intégré + une ombre très légère. */
.site-header.public-header .logo-box img,
.side-logo img,
.app-footer .footer-logo img,
.fixed-footer .footer-logo img,
.loader-logo img{
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.24)) saturate(1.08) contrast(1.06)!important;
}

/* Dimensions équilibrées pour garantir lisibilité sans déformer l'en-tête. */
.site-header.public-header .logo-box{width:270px!important;height:82px!important}
.side-logo{width:220px!important;height:72px!important}
.app-footer .footer-logo,.fixed-footer .footer-logo{width:245px!important;height:78px!important}
.loader-logo{width:175px!important;height:62px!important}
.loader-logo-ring{width:205px!important;height:90px!important;padding:8px!important}

/* Filigrane séparé : discret uniquement dans le corps/document, jamais utilisé comme logo principal. */
body.has-watermark:before{
  display:block!important;
  opacity:.035!important;
  background-size:min(420px,48vw) auto!important;
  filter:none!important;
}

@media(max-width:900px){
  .site-header.public-header .logo-box{width:205px!important;height:64px!important}
  .side-logo{width:175px!important;height:60px!important}
  .app-footer .footer-logo,.fixed-footer .footer-logo{width:195px!important;height:64px!important}
  .loader-logo{width:150px!important;height:54px!important}
}
@media(max-width:560px){
  .site-header.public-header .logo-box{width:170px!important;height:56px!important}
}

/* ===== V20 : Visibilité frappante et contextuelle du logo FOBAK ===== */
:root{
  --fobak-logo-shadow: 0 10px 28px rgba(3, 35, 63, .22);
  --fobak-logo-light-panel: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.97));
  --fobak-logo-dark-panel: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
}

/* Règles globales des images de logo */
.logo-box img,
.side-logo img,
.footer-logo img,
.loader-logo img,
.paper-logo img,
.print-logo img,
.print-list-logo img,
.dashboard-seal.logo-seal img,
.fallback-brand-logo img{
  object-fit: contain !important;
  object-position: center left !important;
  filter: saturate(1.18) contrast(1.14) drop-shadow(0 3px 12px rgba(8,58,101,.18));
}

/* Sur fond sombre : panneau d'appui discret + halo professionnel */
.site-header.public-header .logo-box,
.side-logo,
.app-footer .footer-logo,
.fixed-footer .footer-logo,
.loader-logo,
.dashboard-seal.logo-seal{
  background: var(--fobak-logo-dark-panel) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 18px !important;
  box-shadow: var(--fobak-logo-shadow), inset 0 0 0 1px rgba(255,255,255,.06) !important;
  padding: 8px 12px !important;
}
.site-header.public-header .logo-box img,
.side-logo img,
.app-footer .footer-logo img,
.fixed-footer .footer-logo img,
.loader-logo img,
.dashboard-seal.logo-seal img{
  filter: saturate(1.22) contrast(1.16) drop-shadow(0 0 12px rgba(255,255,255,.18)) drop-shadow(0 7px 16px rgba(0,0,0,.18));
}

/* Sur fond clair : logo fort, net et propre */
.paper-logo,
.print-logo,
.print-list-logo,
.fallback-brand-logo{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.paper-logo img,
.print-logo img,
.print-list-logo img,
.fallback-brand-logo img{
  filter: saturate(1.16) contrast(1.15) drop-shadow(0 2px 6px rgba(8,58,101,.12));
}

/* Dimensions plus frappantes selon l'emplacement */
.site-header.public-header .logo-box{
  width: 310px !important;
  height: 102px !important;
}
.side-logo{
  width: 240px !important;
  height: 86px !important;
}
.app-footer .footer-logo,
.fixed-footer .footer-logo{
  width: 270px !important;
  height: 90px !important;
}
.loader-logo{
  width: 185px !important;
  height: 70px !important;
}
.loader-logo-ring{
  width: 230px !important;
  height: 112px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: var(--fobak-logo-shadow) !important;
  animation: none !important;
}
.dashboard-seal.logo-seal{
  width: 340px !important;
  height: 126px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.paper-logo{width: 210px !important; height: 78px !important;}
.print-logo,.print-list-logo{width: 210px !important; height: 74px !important;}
.fallback-brand-logo{width: min(420px, 42vw) !important; height: 160px !important; opacity: .33 !important;}
body.has-watermark:before{opacity:.065 !important;background-size:min(420px, 58vw) auto !important;}

/* Petites optimisations de lisibilité du nom institutionnel près du logo */
.site-header.public-header .brand-block strong,
.side-brand strong{
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

@media (max-width: 900px){
  .site-header.public-header .logo-box{width:240px !important;height:78px !important;padding:7px 10px !important;}
  .side-logo{width:190px !important;height:68px !important;}
  .app-footer .footer-logo,.fixed-footer .footer-logo{width:210px !important;height:72px !important;}
  .loader-logo-ring{width:190px !important;height:94px !important;}
  .loader-logo{width:150px !important;height:58px !important;}
  .dashboard-seal.logo-seal{width:260px !important;height:100px !important;}
  .paper-logo{width:170px !important;height:64px !important;}
}
@media (max-width: 560px){
  .site-header.public-header .logo-box{width:190px !important;height:62px !important;}
  .side-logo{width:160px !important;height:58px !important;}
  .app-footer .footer-logo,.fixed-footer .footer-logo{width:185px !important;height:62px !important;}
  .loader-logo{width:130px !important;height:50px !important;}
  .loader-logo-ring{width:165px !important;height:80px !important;}
}

/* ===== V21 : logo FOBAK exact, forme d'origine conservée ===== */
:root{
  --fobak-logo-bg-dark: rgba(255,255,255,.10);
  --fobak-logo-border-dark: rgba(255,255,255,.14);
}
/* Aucune présentation ronde pour le logo institutionnel */
.logo-box,
.side-logo,
.footer-logo,
.loader-logo,
.paper-logo,
.print-logo,
.print-list-logo,
.dashboard-seal.logo-seal,
.fallback-brand-logo{
  border-radius: 0 !important;
  overflow: visible !important;
}
/* Toujours respecter la forme horizontale originale */
.logo-box img,
.side-logo img,
.footer-logo img,
.loader-logo img,
.paper-logo img,
.print-logo img,
.print-list-logo img,
.dashboard-seal.logo-seal img,
.fallback-brand-logo img{
  width:100% !important;
  height:100% !important;
  object-fit: contain !important;
  object-position: center left !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
/* Emplacements sombres : appui discret, sans cercle */
.site-header.public-header .logo-box,
.side-logo,
.app-footer .footer-logo,
.fixed-footer .footer-logo,
.loader-logo,
.dashboard-seal.logo-seal{
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08)) !important;
  border: 1px solid var(--fobak-logo-border-dark) !important;
  border-radius: 18px !important;
  padding: 8px 10px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.18) !important;
}
/* Emplacements clairs : pas de fond inutile */
.paper-logo,
.print-logo,
.print-list-logo,
.fallback-brand-logo{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* Tailles hiérarchisées */
.site-header.public-header .logo-box{width:300px !important;height:92px !important;}
.side-logo{width:230px !important;height:78px !important;}
.app-footer .footer-logo,
.fixed-footer .footer-logo{width:250px !important;height:84px !important;}
.loader-logo{width:180px !important;height:62px !important;}
.loader-logo-ring{width:220px !important;height:102px !important;border-radius:22px !important;animation:none !important;background:rgba(255,255,255,.10) !important;border:1px solid rgba(255,255,255,.15) !important;}
.dashboard-seal.logo-seal{width:320px !important;height:110px !important;display:flex !important;align-items:center !important;justify-content:center !important;}
.paper-logo{width:190px !important;height:68px !important;}
.print-logo,.print-list-logo{width:190px !important;height:66px !important;}
.fallback-brand-logo{width:min(400px,40vw) !important;height:120px !important;opacity:.28 !important;}
body.has-watermark:before{background-image:none !important;}
@media(max-width:900px){
  .site-header.public-header .logo-box{width:230px !important;height:72px !important;}
  .side-logo{width:190px !important;height:64px !important;}
  .app-footer .footer-logo,.fixed-footer .footer-logo{width:205px !important;height:70px !important;}
  .dashboard-seal.logo-seal{width:250px !important;height:92px !important;}
}
@media(max-width:560px){
  .site-header.public-header .logo-box{width:180px !important;height:58px !important;}
  .side-logo{width:160px !important;height:56px !important;}
  .app-footer .footer-logo,.fixed-footer .footer-logo{width:180px !important;height:60px !important;}
}

/* ===== V22 : corrections menu, utilisateur et cartes ===== */
.side-menu-search-empty[hidden]{display:none!important}
.side-user{
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:18px!important;
  padding:12px 10px!important;
  margin:8px 4px 10px!important;
}
.side-user strong{
  color:#ffffff!important;
  text-shadow:0 2px 8px rgba(0,0,0,.35)!important;
  font-size:15px!important;
  font-weight:900!important;
}
.side-user small{
  color:#eaf7ff!important;
  opacity:1!important;
  font-weight:700!important;
}
.avatar-letter{
  box-shadow:0 7px 18px rgba(0,0,0,.25)!important;
  border:2px solid rgba(255,255,255,.6)!important;
}
.side-menu-search-empty{
  color:#ffe46b!important;
  font-weight:800!important;
  background:rgba(0,0,0,.18)!important;
  padding:8px 10px!important;
  border-radius:10px!important;
}

/* ===== V24 : Statuts et règlement intérieur ===== */
.statute-heading{align-items:center}
.official-document-summary{display:flex;justify-content:space-between;align-items:center;gap:22px;border-left:7px solid var(--fobak-blue)}
.document-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.document-meta span{background:#eef7ff;border:1px solid #d5e8f7;border-radius:999px;padding:8px 12px;color:#274964}
.document-icon{font-size:58px}
.statute-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px;margin:18px 0}
.statute-section{margin:0!important;border-top:5px solid var(--fobak-cyan)}
.statute-section h2{font-size:20px;margin-top:0;color:var(--fobak-blue)}
.statute-section p{line-height:1.65;white-space:pre-line}
.statute-edit-form{margin-top:14px;border-top:1px solid #dce8f2;padding-top:14px}
.statute-viewer iframe{width:100%;height:78vh;min-height:650px;border:1px solid #cadbea;border-radius:16px;background:#f5f7fa}
.admin-statute-tools{align-items:start}
@media(max-width:700px){.official-document-summary{align-items:flex-start}.document-icon{display:none}.statute-viewer iframe{height:65vh;min-height:480px}}
@media print{.statute-viewer,.admin-statute-tools,.statute-section details,.page-heading-actions{display:none!important}.statute-grid{grid-template-columns:1fr 1fr}.statute-section{break-inside:avoid;box-shadow:none!important}}

/* ===== V25 : logo horizontal propre, sans cartes blanches ni déformation ===== */
.logo-box,.side-logo,.footer-logo,.loader-logo,.paper-logo,.print-logo,.print-list-logo,.dashboard-seal.logo-seal,.fallback-brand-logo{
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important;
}
.logo-box img,.side-logo img,.footer-logo img,.loader-logo img,.paper-logo img,.print-logo img,.print-list-logo img,.dashboard-seal.logo-seal img,.fallback-brand-logo img{
  width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;filter:none!important;display:block!important;
}
.site-header.public-header .logo-box{width:250px!important;height:74px!important;align-self:center!important;}
.side-logo{width:210px!important;height:62px!important;margin:0 auto!important;}
.side-brand{display:block!important;text-align:center!important;margin:12px 0 16px!important;}
.side-brand>div:last-child{display:none!important;}
.app-footer .footer-logo,.fixed-footer .footer-logo{width:215px!important;height:64px!important;}
.loader-logo{width:175px!important;height:54px!important;}
.loader-logo-ring{width:205px!important;height:78px!important;background:transparent!important;border:0!important;box-shadow:none!important;animation:none!important;}
.dashboard-seal.logo-seal{width:290px!important;height:88px!important;}
.fallback-brand-logo{width:min(360px,34vw)!important;height:110px!important;opacity:.18!important;}
.hero .dashboard-seal.logo-seal,.hero-brand-card .dashboard-seal.logo-seal{background:transparent!important;}
body.has-watermark:before{opacity:.025!important;background-size:min(380px,48vw) auto!important;}
@media(max-width:900px){.site-header.public-header .logo-box{width:190px!important;height:58px!important}.side-logo{width:180px!important;height:54px!important}.app-footer .footer-logo{width:185px!important;height:56px!important}}
@media(max-width:560px){.site-header.public-header .logo-box{width:160px!important;height:48px!important}.side-logo{width:160px!important;height:48px!important}}

/* En-tête et pied de page uniformes à l'impression */
@media print{
  body{background:#fff!important;color:#111!important}
  .no-print,.universal-table-tools,.floating-help,.install-pwa-button,.communique-ticker{display:none!important}
  table{page-break-inside:auto}tr{page-break-inside:avoid;page-break-after:auto}
  thead{display:table-header-group}tfoot{display:table-footer-group}
}

/* ===== V27 : téléchargement multi-appareils et état hors connexion ===== */
.download-app-section{
  margin:22px 0;
  padding:30px;
  border-radius:26px;
  background:linear-gradient(135deg,#073e6a,#0b66a8 58%,#16a9d6);
  color:#fff;
  box-shadow:0 18px 42px rgba(4,52,88,.20);
}
.download-app-copy{max-width:900px;margin:0 auto 22px;text-align:center}
.download-app-copy .eyebrow{color:#ffe057}
.download-app-copy h2{font-size:clamp(28px,3vw,40px);margin:8px 0}
.download-app-copy p{line-height:1.65;color:#e7f5ff}
.download-app-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.download-choice{display:flex;flex-direction:column;align-items:flex-start;min-height:265px;padding:20px;border:1px solid rgba(255,255,255,.24);border-radius:20px;background:rgba(255,255,255,.11);backdrop-filter:blur(8px)}
.download-choice h3{font-size:21px;margin:10px 0 6px;color:#fff}
.download-choice p{line-height:1.5;flex:1;color:#e7f5ff}
.download-choice small{display:block;margin-top:12px;color:#cfe9f8;line-height:1.4}
.download-icon{font-size:32px}
.connection-state{display:inline-flex;align-items:center;gap:9px;padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24)}
.connection-state span{width:10px;height:10px;border-radius:50%;background:#f2ce32;box-shadow:0 0 0 4px rgba(242,206,50,.18)}
.connection-state.is-online span{background:#38d67a;box-shadow:0 0 0 4px rgba(56,214,122,.18)}
.connection-state.is-offline span{background:#ff626e;box-shadow:0 0 0 4px rgba(255,98,110,.18)}
.offline-screen{max-width:760px;margin:60px auto;text-align:center;padding:42px}
.offline-symbol{font-size:64px}
.offline-screen h1{font-size:36px;color:#0b3a66}
.offline-screen p{font-size:17px;line-height:1.7;color:#52677c}
@media(max-width:1050px){.download-app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.download-app-section{padding:20px 14px}.download-app-grid{grid-template-columns:1fr}.download-choice{min-height:auto}}

/* V34 — Navigation mobile : menu latéral coulissant et liens réellement accessibles */
.mobile-menu-backdrop{display:none}
@media (max-width:780px){
  body.admin-layout{overflow-x:hidden}
  .app-shell{display:block!important}
  .side-dashboard{
    position:fixed!important;
    top:0;left:0;bottom:0;
    width:min(88vw,340px)!important;
    height:100dvh!important;
    max-height:100dvh!important;
    z-index:1000!important;
    overflow-y:auto!important;
    border-radius:0 24px 24px 0!important;
    transform:translateX(-105%);
    transition:transform .24s ease;
    box-shadow:18px 0 48px rgba(3,24,45,.30);
  }
  body.side-open .side-dashboard{transform:translateX(0)}
  .workspace{width:100%!important;margin-left:0!important;min-width:0}
  .workspace-topbar{position:sticky;top:0;z-index:60}
  .menu-round{position:relative;z-index:1002;touch-action:manipulation}
  .side-menu{display:grid!important;grid-template-columns:1fr!important;max-height:none!important;overflow:visible!important}
  .side-menu a{position:relative;z-index:1001;pointer-events:auto!important;touch-action:manipulation}
  .mobile-menu-backdrop{
    display:block;
    position:fixed;inset:0;
    z-index:999;
    background:rgba(3,24,45,.48);
    opacity:0;visibility:hidden;
    transition:opacity .24s ease,visibility .24s ease;
  }
  body.side-open .mobile-menu-backdrop{opacity:1;visibility:visible}
}
@media (min-width:781px){.mobile-menu-backdrop{display:none!important}}


/* ===== V35 — Mobile confortable, cartes lisibles et module santé ===== */
.health-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}
.health-kpis a{display:flex;flex-direction:column;padding:22px;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(7,58,102,.10);text-decoration:none;color:#0b3a66}
.health-kpis strong{font-size:clamp(30px,4vw,48px);line-height:1}.health-kpis span{font-size:17px;font-weight:700;margin-top:8px}
.health-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.health-links a{font-size:19px;font-weight:800;text-decoration:none;color:#0b3a66;min-height:95px;display:flex;align-items:center}
.responsive-card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.data-card{padding:20px;border:1px solid #dbe8f2;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(8,49,81,.07)}.data-card strong{display:block;font-size:20px;color:#073e6a}.data-card span{display:block;font-size:15px;font-weight:700;margin:6px 0;color:#47657c}.data-card p{font-size:16px;line-height:1.55}
.permission-role{border:1px solid #d7e5ef;border-radius:18px;margin-bottom:14px;overflow:hidden}.permission-role summary{cursor:pointer;padding:16px 20px;background:#edf6fc;display:flex;justify-content:space-between;gap:15px}.permission-role summary strong{font-size:18px}.permission-role>div{padding:16px}.permission-matrix th,.permission-matrix td{text-align:center;min-width:86px}.permission-matrix th:first-child,.permission-matrix td:first-child{text-align:left;min-width:190px;position:sticky;left:0;background:#fff;z-index:2}.permission-matrix input[type=checkbox]{width:21px;height:21px}
@media(max-width:900px){.health-kpis{grid-template-columns:repeat(2,1fr)}.health-links{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){
  html{font-size:17px}body{font-size:17px}.workspace{padding:0!important}.workspace-main,.content-area,main{min-width:0!important;padding-left:12px!important;padding-right:12px!important}.workspace-topbar{padding:10px 12px!important;gap:8px;flex-wrap:wrap}.workspace-topbar>div:first-child{max-width:calc(100% - 58px)}.workspace-topbar strong{font-size:17px}.workspace-topbar small{font-size:13px}.global-search-form{order:3;width:100%;max-width:none!important}.global-search-form input{font-size:16px;min-height:44px}.menu-round{position:fixed!important;top:12px;left:12px;width:48px!important;height:48px!important;background:#0b5f9e!important;color:#fff!important;box-shadow:0 8px 22px rgba(0,0,0,.24)}.workspace-topbar{padding-left:72px!important}.side-top .menu-round{display:none!important}.side-dashboard{width:min(92vw,370px)!important}.side-menu a{min-height:51px!important;font-size:17px!important;padding:13px 16px!important}.side-menu a span{font-size:21px}.card{padding:16px!important;border-radius:18px!important}.dashboard-welcome{padding:18px!important;border-radius:20px!important}.dashboard-welcome h1{font-size:clamp(25px,8vw,34px)!important}.dashboard-welcome p{font-size:16px!important;line-height:1.55}.form-grid{grid-template-columns:1fr!important}.form-grid label.full{grid-column:1!important}input,select,textarea,button{font-size:16px!important}input,select,textarea{min-height:46px}.btn{min-height:46px;padding:12px 17px!important}.table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch;border-radius:14px}.table-wrap table{min-width:720px}.table-wrap th,.table-wrap td{font-size:15px!important;padding:12px 10px!important}.health-links{grid-template-columns:1fr}.health-links a{font-size:18px;min-height:75px}.responsive-card-list{grid-template-columns:1fr}.data-card strong{font-size:21px}.data-card span,.data-card p{font-size:16px}.app-footer{grid-template-columns:1fr!important;padding:24px 16px!important}.socials a{width:44px!important;height:44px!important;font-size:20px!important}.floating-help{bottom:14px!important;right:12px!important}.permission-role summary{padding:14px}.permission-matrix th:first-child,.permission-matrix td:first-child{min-width:160px}
}
@media(max-width:430px){.health-kpis{grid-template-columns:1fr 1fr;gap:10px}.health-kpis a{padding:16px}.health-kpis strong{font-size:31px}.health-kpis span{font-size:15px}.dashboard-seal{display:none!important}.top-actions{gap:4px!important}.top-actions a{width:38px!important;height:38px!important}}

/* V39 — consolidation mobile, notifications, services et formulaires */
.side-menu-group{margin:.2rem .45rem;border-radius:14px;overflow:hidden}.side-menu-group summary{display:flex;align-items:center;gap:.7rem;padding:.8rem .9rem;color:inherit;cursor:pointer;font-weight:700;list-style:none}.side-menu-group summary::-webkit-details-marker{display:none}.side-menu-group summary b{margin-left:auto}.side-submenu{display:grid;padding:0 .4rem .45rem}.side-submenu a{margin:.12rem 0;padding-left:1.35rem!important;font-size:.92rem}
.notification-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(340px,1.15fr);gap:1rem}.notification-row{display:grid;grid-template-columns:30px 1fr 20px;gap:.7rem;align-items:center;padding:1rem;border-radius:14px;text-decoration:none;color:inherit;border:1px solid var(--border,#dbe4ee);margin:.55rem 0;background:#fff}.notification-row.is-unread{border-left:5px solid #0b66c3;background:#f5faff}.notification-row span:nth-child(2){display:grid;gap:.25rem}.notification-row small{line-height:1.45}.notification-row em{font-size:.78rem;opacity:.68}.notification-icon{font-weight:900;color:#0b66c3}.notification-detail{border-left:6px solid #0b66c3}
.login-experience{max-width:1050px;margin:3rem auto;display:grid;grid-template-columns:1.05fr .95fr;min-height:590px;border-radius:28px;overflow:hidden;box-shadow:0 24px 70px rgba(3,31,56,.18);background:#fff}.login-visual{padding:4rem;background:linear-gradient(145deg,#072e55,#0a5d91 60%,#0b7a76);color:#fff;display:flex;flex-direction:column;justify-content:center}.login-brand-mark img{width:140px;max-height:120px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.2))}.login-visual h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.05;margin:.8rem 0}.login-points{display:grid;gap:.7rem;margin-top:1.5rem}.login-panel{padding:3.7rem;display:flex;flex-direction:column;justify-content:center}.login-panel h2{font-size:2.1rem;margin:.8rem 0}.login-back{font-weight:700;text-decoration:none}.input-with-icon{display:grid;grid-template-columns:32px 1fr auto;align-items:center;border:1px solid #cdd9e6;border-radius:14px;padding:.15rem .55rem;background:#fff}.input-with-icon input{border:0!important;box-shadow:none!important}.password-toggle{border:0;background:transparent;cursor:pointer;font-size:1.1rem}.login-submit{width:100%;min-height:50px;font-size:1rem}.login-links{display:flex;justify-content:space-between;gap:1rem;margin:1.1rem 0}.login-security{display:block;padding:.8rem;border-radius:12px;background:#f3f7fb}
.adhesion-inspired-form{background:linear-gradient(180deg,#fbfdff,#f4f8fc);padding:1.15rem;border:1px solid #dce7f1;border-radius:18px;gap:1rem}.adhesion-inspired-form label{font-weight:750;color:#17334c}.adhesion-inspired-form input,.adhesion-inspired-form select,.adhesion-inspired-form textarea{margin-top:.38rem;min-height:46px;border-radius:12px;border:1px solid #bfcddd;background:#fff}.adhesion-inspired-form textarea{min-height:110px}.adhesion-inspired-form .full{grid-column:1/-1}
.dashboard-module-catalog{margin:1.4rem 0}.section-heading{margin-bottom:1rem}.module-groups{display:grid;gap:1rem}.module-group{background:#fff;border:1px solid #dfe8f1;border-radius:20px;padding:1.15rem;box-shadow:0 10px 30px rgba(15,49,78,.06)}.module-group h3{margin:.1rem 0 1rem}.module-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.75rem}.module-card-grid a{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;gap:.1rem .65rem;padding:1rem;border:1px solid #e0e8f0;border-radius:15px;text-decoration:none;color:inherit;background:linear-gradient(180deg,#fff,#f8fbfd);transition:.2s}.module-card-grid a:hover{transform:translateY(-2px);border-color:#79a9d2;box-shadow:0 9px 20px rgba(20,70,110,.11)}.module-card-grid a>span{grid-row:1/3;font-size:1.65rem}.module-card-grid strong{font-size:1rem}.module-card-grid small{opacity:.72}.service-highlight{border-left:6px solid #0b7a76}
@media(max-width:820px){.notification-layout,.login-experience{grid-template-columns:1fr}.login-experience{margin:1rem;min-height:0}.login-visual{padding:2rem;min-height:280px}.login-panel{padding:2rem}.module-card-grid{grid-template-columns:1fr 1fr}.adhesion-inspired-form{padding:.85rem}.side-menu-group{margin:.1rem .25rem}}
@media(max-width:520px){.module-card-grid{grid-template-columns:1fr}.login-links{flex-direction:column}.notification-row{padding:.8rem}.login-visual h1{font-size:2rem}}

/* FOBAK V39 — Audit professionnel et espace membre */
.audit-kpis,.member-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.audit-kpis .metric-card,.member-stats article{background:#fff;border:1px solid #dbe5ef;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(15,50,80,.07)}.audit-kpis span,.member-stats small{display:block;color:#64748b;margin-bottom:8px}.audit-kpis strong,.member-stats strong{font-size:1.45rem;color:#0b3a66}.audit-filters{display:grid;grid-template-columns:2fr 1.3fr 1fr auto auto;gap:12px;align-items:end;margin-bottom:16px}.audit-filters label{font-weight:700;color:#26445f}.audit-filters input,.audit-filters select{width:100%;margin-top:6px}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:800}.status-pill.success{background:#dcfce7;color:#166534}.status-pill.danger{background:#fee2e2;color:#991b1b}.member-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#ffffff,#edf7ff)}.member-identity{display:flex;align-items:center;gap:18px}.member-avatar-large,.member-avatar-placeholder{width:112px;height:132px;border-radius:18px;object-fit:cover;border:4px solid #fff;box-shadow:0 8px 24px rgba(11,58,102,.18)}.member-avatar-placeholder{display:grid;place-items:center;background:#0b3a66;color:#fff;font-size:2rem;font-weight:900}.profile-progress{min-width:280px;max-width:390px}.profile-progress>div{height:11px;border-radius:999px;background:#dbe7f1;overflow:hidden;margin:8px 0}.profile-progress>div span{display:block;height:100%;background:linear-gradient(90deg,#0b5594,#18a0a8);border-radius:inherit}.member-stats article span{font-size:1.55rem;float:right}.member-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.member-quick-actions a{display:flex;flex-direction:column;gap:5px;padding:18px;border-radius:18px;background:#fff;border:1px solid #dbe5ef;text-decoration:none;color:#173b57;box-shadow:0 8px 20px rgba(15,50,80,.06);transition:.2s}.member-quick-actions a:hover{transform:translateY(-3px);border-color:#0b79b7}.member-quick-actions span{font-size:1.65rem}.member-quick-actions small{color:#64748b}.notification-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;text-decoration:none;color:inherit;padding:12px;border-radius:14px;border:1px solid #e2e8f0;margin:8px 0}.notification-row.is-unread{background:#eff8ff;border-color:#8fc8ea}.notification-row small,.notification-row em{display:block;color:#64748b;font-style:normal;margin-top:3px}
@media(max-width:900px){.audit-kpis,.member-stats,.member-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-filters{grid-template-columns:1fr 1fr}.member-hero{align-items:flex-start;flex-direction:column}.profile-progress{min-width:0;width:100%}}
@media(max-width:560px){.audit-kpis,.member-stats,.member-quick-actions,.audit-filters{grid-template-columns:1fr}.member-identity{align-items:flex-start}.member-avatar-large,.member-avatar-placeholder{width:86px;height:104px}.member-hero h1{font-size:1.35rem}.table-wrap table{min-width:900px}}

/* V40 rapports sanitaires, listes compactes et capture photo */
.health-report-kpis{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.danger-stat{border-color:#f1b7b7;background:#fff7f7}.health-report-form textarea{min-height:115px}.report-filter{align-items:end}.members-compact table{table-layout:auto}.members-compact td{vertical-align:top}.members-compact tr{height:auto}.camera-file-input{cursor:pointer}@media(max-width:760px){.health-report-kpis{grid-template-columns:1fr 1fr}.health-report-form{grid-template-columns:1fr}.report-filter>*{width:100%}}


/* V41 : fiches santé, en-têtes configurables et rognage photo passeport */
.health-form-card{padding:22px}.sheet-header-clean{display:grid;grid-template-columns:110px 1fr 110px;gap:16px;align-items:center;padding-bottom:16px;margin-bottom:18px;border-bottom:2px solid #dbe7f2}.sheet-logo-stack,.sheet-flag-stack{display:grid;place-items:center}.sheet-foundation-logo,.sheet-flag-stack img{max-width:100%;max-height:82px;object-fit:contain}.sheet-title-stack{text-align:center}.sheet-title-stack h2{margin:0 0 8px;color:#0b3a66;text-transform:uppercase;font-size:22px}.sheet-title-stack p{margin:0;color:#5b6f82;line-height:1.55}.sheet-center-placeholder{width:84px;height:84px;border:2px dashed #93b7d3;border-radius:18px;display:grid;place-items:center;color:#5d7c96;font-weight:800;background:#f8fcff}.clean-form-grid{row-gap:16px!important}.clean-form-grid textarea{min-height:95px;resize:vertical}.sheet-footer-clean{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px;padding-top:14px;border-top:1px solid #d9e6f0;color:#516678}.sheet-footer-clean>div{background:#f8fbfe;border:1px solid #e0ebf4;border-radius:12px;padding:12px 14px;line-height:1.55}.passport-cropper{display:none;margin-top:12px;border:1px solid #d8e6f3;border-radius:16px;background:#f8fcff;padding:14px}.passport-cropper.active{display:block}.passport-cropper-title{font-weight:800;color:#0b3a66;margin-bottom:10px}.passport-cropper-body{display:grid;grid-template-columns:190px 1fr;gap:16px;align-items:start}.passport-cropper-preview{width:180px;height:240px;border-radius:12px;border:2px solid #0b5fa5;background:#fff}.passport-cropper-controls label{display:block;font-weight:700;color:#36506a;margin-bottom:10px}.passport-cropper-controls input[type=range]{width:100%;margin-top:6px}.passport-cropper-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.passport-cropper small{display:block;color:#678097;margin-top:10px}.camera-preview{width:150px!important;height:200px!important;border-radius:10px!important}.camera-preview img{object-fit:cover!important}@media(max-width:860px){.sheet-header-clean{grid-template-columns:1fr;text-align:center}.sheet-footer-clean,.passport-cropper-body{grid-template-columns:1fr}.passport-cropper-preview{margin:0 auto}}

.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.login-alt{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.passkey-item{display:flex;justify-content:space-between;align-items:center;border:1px solid #dbe7f1;border-radius:12px;padding:10px;margin-top:10px}@media(max-width:760px){.security-grid,.login-alt{grid-template-columns:1fr}}

/* V46 — Connexion propre par mot de passe, PIN et biométrie */
.login-security-redesign{min-height:620px}.login-security-redesign .login-panel{justify-content:flex-start;padding:2.6rem 3rem}.login-heading{display:flex;align-items:center;gap:14px;margin:12px 0 18px}.login-heading h2{margin:0;font-size:2rem}.login-heading p{margin:4px 0 0;color:#65778a}.login-lock{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#eef6ff;font-size:22px}.auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:6px;background:#eef4fa;border:1px solid #d9e5f0;border-radius:18px;margin-bottom:18px}.auth-tab{border:0;border-radius:13px;background:transparent;color:#31506d;padding:11px 8px;font-weight:850;cursor:pointer;line-height:1.2}.auth-tab span{display:block;font-size:18px;margin-bottom:3px}.auth-tab.is-active{background:#fff;color:#0b4f86;box-shadow:0 7px 18px rgba(7,59,102,.12)}.auth-panels{min-height:292px}.auth-panel{animation:authFade .18s ease}.auth-panel[hidden]{display:none!important}.auth-method-form{display:grid;gap:14px}.auth-method-form label{margin:0}.auth-method-form label>span{display:block;margin:0 0 7px;font-weight:800;color:#163e65}.auth-method-form .input-with-icon{min-height:54px;background:#f9fbfe}.auth-method-form .input-with-icon input{background:transparent!important;padding:12px 6px!important}.auth-method-note{display:grid;gap:4px;background:#f3f8fd;border-left:4px solid #0b66c3;border-radius:12px;padding:12px 14px;margin-bottom:14px}.auth-method-note strong{color:#123f68}.auth-method-note span{font-size:13px;color:#63768a;line-height:1.45}.auth-status{min-height:22px;margin-top:10px;padding:0 2px;color:#a21c2b;font-weight:700}.login-security-redesign .password-field-wrap{width:100%}.login-security-redesign .password-toggle-btn{right:8px}.login-security-redesign .input-with-icon .password-field-wrap input{padding-right:44px!important}.login-security-redesign .login-links{border-top:1px solid #e3ebf3;padding-top:14px;margin-top:16px}.login-security-redesign .login-security{margin-top:4px}.login-security-redesign .btn.login-submit{border-radius:14px;background:linear-gradient(90deg,#0b5fa5,#087b8e);color:#fff;border:0;box-shadow:0 10px 22px rgba(11,95,165,.2)}@keyframes authFade{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:820px){.login-security-redesign .login-panel{padding:1.5rem}.auth-tabs{grid-template-columns:1fr}.auth-tab span{display:inline;margin-right:6px}.auth-panels{min-height:0}.login-security-redesign .login-visual{min-height:220px}}@media(max-width:520px){.login-security-redesign{margin:.5rem}.login-security-redesign .login-panel{padding:1.2rem}.login-heading h2{font-size:1.65rem}.auth-tab{padding:10px}.login-links{gap:8px}}

.auth-method-form .remember-identifier{display:grid;grid-template-columns:22px 1fr;align-items:start;gap:10px;padding:11px 12px;border:1px solid #d9e5f0;border-radius:13px;background:#f7faff;cursor:pointer}.auth-method-form .remember-identifier input{width:18px;height:18px;margin:2px 0 0;accent-color:#0b66c3}.auth-method-form .remember-identifier>span{margin:0;font-weight:400}.remember-identifier strong{display:block;color:#163e65;font-size:.94rem}.remember-identifier small{display:block;margin-top:3px;color:#65778a;font-size:.78rem;line-height:1.4}


/* V47 — menu mobile permanent, masquable et déconnexion accessible */
.mobile-sidebar-toggle{display:none}
@media(max-width:780px){
  body.admin-layout{overflow-x:hidden}
  .mobile-sidebar-toggle{
    display:grid!important;place-items:center;position:fixed!important;
    top:max(10px,env(safe-area-inset-top));left:12px;z-index:1205;
    width:50px;height:50px;border:0;border-radius:15px;
    background:#075b96;color:#fff;font-size:26px;font-weight:900;
    box-shadow:0 10px 26px rgba(0,0,0,.28);cursor:pointer;
    touch-action:manipulation;-webkit-tap-highlight-color:transparent
  }
  body.side-open .mobile-sidebar-toggle{background:#b51e2a}
  .side-dashboard{
    display:flex!important;flex-direction:column!important;
    padding-top:72px!important;overflow:hidden!important;
    visibility:hidden;pointer-events:none
  }
  body.side-open .side-dashboard{visibility:visible;pointer-events:auto}
  .side-top{flex:0 0 auto}
  .side-top .sidebar-close-button{display:none!important}
  .side-menu-search,.side-menu-search-empty{flex:0 0 auto}
  .side-menu{
    display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
    min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    padding-bottom:12px!important;-webkit-overflow-scrolling:touch
  }
  .side-user{flex:0 0 auto;margin-top:0!important;background:rgba(4,41,70,.96)}
  .logout-btn{
    flex:0 0 auto;display:block!important;position:sticky!important;bottom:0!important;
    z-index:4;margin:4px 8px max(10px,env(safe-area-inset-bottom))!important;
    min-height:48px;line-height:24px
  }
  .workspace-topbar{padding-left:76px!important;min-height:68px}
  body.side-open{overflow:hidden}
  body.side-open .mobile-menu-backdrop{display:block!important;opacity:1!important;visibility:visible!important}
}


/* V48 — stabilisation complète de l'interface téléphone */
html,body{max-width:100%;overflow-x:hidden}.image-load-failed{visibility:hidden!important}.ticker-close{border:0;background:rgba(255,255,255,.25);color:#102d47;width:30px;height:30px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;flex:0 0 auto}.communique-ticker[hidden]{display:none!important}
@media(max-width:780px){
  :root{--mobile-gutter:12px}
  body.admin-layout{padding-bottom:0!important;background:#f5f9fc}
  .app-shell,.workspace,.workspace-content,.main-content{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
  .workspace-content{padding:12px var(--mobile-gutter) 28px!important}
  .workspace-topbar{position:relative!important;top:auto!important;z-index:40!important;display:grid!important;grid-template-columns:1fr!important;padding:18px var(--mobile-gutter) 12px 82px!important;gap:12px!important;min-height:0!important;background:#fff!important}
  .workspace-topbar>div:first-child{max-width:100%!important;min-width:0!important}.workspace-topbar>div:first-child strong{display:block;font-size:24px!important;line-height:1.2;overflow-wrap:anywhere}.workspace-topbar>div:first-child small{display:block;font-size:15px!important;line-height:1.5}
  .language-select{width:100%!important;min-width:0!important;height:52px!important}.top-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(4,48px) 1fr!important;align-items:center!important;gap:8px!important}.top-actions>a{width:48px!important;height:48px!important;display:grid!important;place-items:center!important;border-radius:50%!important}.top-date{min-width:0!important;text-align:right!important}.global-search-form{display:grid!important;grid-template-columns:1fr 52px!important;gap:8px!important;width:100%!important;min-width:0!important}.global-search-form input{width:100%!important;min-width:0!important}.global-search-form button{width:52px!important;height:52px!important;padding:0!important}
  .mobile-sidebar-toggle{top:calc(env(safe-area-inset-top) + 10px)!important;left:12px!important;width:56px!important;height:56px!important;border-radius:18px!important;font-size:30px!important;z-index:1400!important}
  .side-dashboard{position:fixed!important;inset:0 auto 0 0!important;width:min(88vw,360px)!important;height:100dvh!important;max-height:100dvh!important;transform:translateX(-105%)!important;transition:transform .24s ease!important;z-index:1390!important;padding:72px 0 0!important;visibility:visible!important;pointer-events:auto!important;overflow:hidden!important}
  body.side-open .side-dashboard{transform:translateX(0)!important}.side-menu{padding:8px 10px 16px!important}.side-user{padding:10px 12px!important}.logout-btn{position:relative!important;bottom:auto!important;margin:8px 12px max(12px,env(safe-area-inset-bottom))!important}
  .mobile-menu-backdrop{position:fixed!important;inset:0!important;background:rgba(3,20,35,.6)!important;z-index:1380!important;display:block!important;opacity:0!important;visibility:hidden!important;transition:.2s!important}.side-open .mobile-menu-backdrop{opacity:1!important;visibility:visible!important}
  .dashboard-welcome{display:flex!important;flex-direction:column!important;gap:16px!important;margin:0 0 14px!important;padding:22px 18px!important}.dashboard-welcome>div{width:100%!important;min-width:0!important}.dashboard-welcome h1{font-size:clamp(28px,8.5vw,38px)!important;line-height:1.15!important;overflow-wrap:anywhere}.dashboard-seal.logo-seal{width:100%!important;height:100px!important;max-width:100%!important}.dashboard-seal.logo-seal img{max-width:240px!important;max-height:90px!important}
  .kpi-grid,.dashboard-panels,.dashboard-panels.two-columns,.module-card-grid,.module-groups{grid-template-columns:1fr!important}.kpi-card,.panel-card,.module-group,.card{min-width:0!important;width:100%!important}.module-card-grid a{min-width:0!important}.dash-list{grid-template-columns:auto minmax(0,1fr)!important}.dash-list strong,.dash-list small{overflow-wrap:anywhere}
  .app-footer.dashboard-style-footer{display:grid!important;grid-template-columns:1fr!important;gap:18px!important;padding:24px 18px 54px!important;margin-top:16px!important}.app-footer .footer-logo{width:180px!important;height:58px!important;max-width:100%!important}.app-footer.dashboard-style-footer>div:nth-child(n+3):not(.footer-bottom){display:none!important}.footer-about p{font-size:15px!important;line-height:1.55!important}.footer-bottom{font-size:12px!important;padding:12px 0!important}
  .install-pwa-button{position:fixed!important;right:14px!important;bottom:92px!important;width:52px!important;height:52px!important;border-radius:50%!important;padding:0!important;z-index:65!important}.install-pwa-button span{display:none!important}.floating-help{position:fixed!important;right:14px!important;bottom:28px!important;width:52px!important;height:52px!important;border-radius:50%!important;padding:0!important;z-index:65!important}.floating-help span{display:none!important}
  .communique-ticker{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:40px!important;display:grid!important;grid-template-columns:auto 1fr 34px!important;align-items:center!important;margin:0!important;padding:6px 8px!important;z-index:20!important}.communique-ticker strong{font-size:12px!important;padding:7px 10px!important}.ticker-track{min-width:0!important;overflow:hidden!important}.ticker-track span{font-size:13px!important;white-space:nowrap!important}.ticker-close{display:grid!important;place-items:center!important}
  .vision-grid,.info-grid,.public-info-strip{grid-template-columns:1fr!important}.vision-grid>*{min-width:0!important}.public-content,.public-layout .main-content{padding-left:10px!important;padding-right:10px!important}
}
@media(max-width:420px){.workspace-topbar{padding-left:76px!important}.top-actions{grid-template-columns:repeat(4,44px) 1fr!important}.top-actions>a{width:44px!important;height:44px!important}.workspace-topbar>div:first-child strong{font-size:21px!important}.dashboard-welcome{padding:18px 15px!important}.dashboard-welcome h1{font-size:30px!important}}

/* V49 reçus sanitaires */
.receipt-actions{min-width:210px}.receipt-actions .btn.small{padding:7px 9px;font-size:12px;margin:2px}.payment-details{margin-top:6px}.payment-details summary{cursor:pointer;font-weight:800;color:#0b5fa5}.inline-payment-form{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:7px;margin-top:8px;padding:10px;border:1px solid #d8e6f2;border-radius:12px;background:#f8fcff}.inline-payment-form input,.inline-payment-form select{min-width:0}.receipt-verification .form-grid>div{padding:12px;border:1px solid #d9e5ef;border-radius:12px;background:#f9fcff}@media(max-width:760px){.receipt-actions{min-width:250px}.inline-payment-form{grid-template-columns:1fr}.health-two-col{grid-template-columns:1fr!important}}


/* V51 — navigation mobile compacte et accès connexion immédiat */
.public-mobile-bar,.public-menu-backdrop{display:none}
@media(max-width:820px){
  .public-layout{padding-top:62px!important;overflow-x:hidden}
  .public-mobile-bar{position:fixed;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;top:0;left:0;right:0;min-height:62px;padding:7px 10px calc(7px + env(safe-area-inset-top));background:#fff;border-bottom:1px solid #dbe6ef;box-shadow:0 7px 24px rgba(6,42,73,.13);z-index:1700}
  .public-menu-toggle{width:46px;height:46px;border:0;border-radius:14px;background:#0b5f9e;color:#fff;font-size:25px;font-weight:900;display:grid;place-items:center;cursor:pointer}
  .public-mobile-brand{font-weight:950;font-size:20px;color:#0b3a66;text-decoration:none;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .public-mobile-login{min-height:44px;display:flex;align-items:center;justify-content:center;padding:0 15px;border-radius:13px;background:linear-gradient(90deg,#0b5fa5,#087b8e);color:#fff!important;text-decoration:none;font-weight:900;box-shadow:0 8px 18px rgba(11,95,165,.22)}
  .public-header{display:grid!important;grid-template-columns:72px 1fr 54px!important;gap:10px!important;align-items:center!important;padding:14px 12px!important;min-height:0!important}
  .public-header .logo-box{width:68px!important;height:68px!important}.public-header .logo-box img{max-width:66px!important;max-height:66px!important}
  .public-header .brand-block strong{font-size:18px!important;line-height:1.2!important}.public-header .brand-block span,.public-header .brand-block em{font-size:12px!important;line-height:1.35!important}
  .public-header .flag-real img{max-width:50px!important}
  .public-nav{position:fixed!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;top:0!important;left:0!important;bottom:0!important;width:min(86vw,340px)!important;padding:76px 12px 18px!important;background:#fff!important;box-shadow:18px 0 45px rgba(3,24,43,.25)!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;z-index:1695!important;overflow-y:auto!important;overscroll-behavior:contain}
  .public-nav.is-open{transform:translateX(0)!important}
  .public-nav a,.public-nav .language-select{width:100%!important;min-height:48px!important;display:flex!important;align-items:center!important;border-radius:12px!important;padding:11px 14px!important;font-size:16px!important;text-align:left!important;white-space:normal!important}
  .public-nav a{color:#173b5c!important;text-decoration:none!important;border:1px solid transparent!important}
  .public-nav a:hover,.public-nav a:focus{background:#eef7ff!important;border-color:#d5e8f6!important}
  .public-nav .public-login-link{background:#0b5fa5!important;color:#fff!important;font-weight:900!important;order:-1!important}
  .public-menu-backdrop{position:fixed;display:block;inset:0;background:rgba(2,18,32,.58);opacity:0;visibility:hidden;transition:.2s;z-index:1680}
  .public-menu-backdrop.is-open{opacity:1;visibility:visible}
  body.public-menu-open{overflow:hidden}
  .public-content{padding-left:12px!important;padding-right:12px!important}
  .login-experience{margin:12px auto!important;border-radius:20px!important;min-height:0!important}
  .login-visual{display:none!important}
  .login-panel{padding:18px 14px 24px!important}
  .login-heading{margin-top:0!important}
}
@media(max-width:480px){
  .public-mobile-bar{grid-template-columns:46px minmax(0,1fr) auto}.public-mobile-login{padding:0 11px;font-size:14px}.public-mobile-brand{font-size:18px}
  .public-header{grid-template-columns:62px 1fr!important}.public-header .flag-real{display:none!important}.public-header .logo-box{width:58px!important;height:58px!important}
}

/* FOBAK V52 — Navigation permanente, barre supérieure figée et formulaires santé harmonisés */
.workspace-topbar{
  position:sticky!important;
  top:0!important;
  z-index:85!important;
  display:grid!important;
  grid-template-columns:auto minmax(190px,1fr) minmax(220px,420px) auto auto!important;
  align-items:center!important;
  gap:12px!important;
  background:rgba(255,255,255,.97)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid #d8e4ef!important;
  box-shadow:0 10px 28px rgba(9,52,91,.10)!important;
}
.workspace-welcome{min-width:0}.workspace-welcome strong,.workspace-welcome small{display:block}.workspace-welcome small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}
.history-controls{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
.history-btn{min-height:40px;border:1px solid #cfdeeb;background:#fff;color:#0b4f86;border-radius:12px;padding:8px 11px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;box-shadow:0 4px 12px rgba(9,52,91,.07);transition:.18s ease;white-space:nowrap}
.history-btn:hover,.history-btn:focus-visible{background:#eaf4fb;border-color:#8eb6d4;transform:translateY(-1px)}
.history-btn:active{transform:translateY(0)}
.history-home{background:linear-gradient(135deg,#0b5f9e,#0b78c7);color:#fff;border-color:transparent}
.history-top{display:none}

.health-module .workspace-content{max-width:1500px!important;width:100%}
.health-module .dashboard-welcome{margin-bottom:18px!important;border:1px solid #d8e7f1!important;background:linear-gradient(135deg,#f9fcff,#edf6fc)!important;color:#17334c!important;box-shadow:0 12px 32px rgba(12,72,119,.09)!important}
.health-module .dashboard-welcome h1{color:#083b66!important}
.health-module .health-form-card,.health-module .card:has(> form){border:1px solid #d6e5ef!important;box-shadow:0 14px 36px rgba(9,58,97,.09)!important;overflow:visible!important}
.health-module form.form-grid,.health-module form.adhesion-inspired-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px 20px!important;
  padding:22px!important;
  background:linear-gradient(180deg,#fbfdff,#f4f8fc)!important;
  border:1px solid #d9e7f1!important;
  border-radius:20px!important;
  align-items:start!important;
}
.health-module form fieldset{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 18px;
  margin:0;
  padding:20px;
  min-width:0;
  border:1px solid #cfdfea;
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 18px rgba(9,58,97,.05)
}
.health-module form fieldset legend{padding:0 10px;color:#0a568f;font-size:15px;font-weight:900;letter-spacing:.02em}
.health-module form label{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;margin:0!important;color:#17334c!important;font-weight:800!important;line-height:1.35!important}
.health-module form label.full,.health-module form .full{grid-column:1/-1!important}
.health-module form input,.health-module form select,.health-module form textarea{
  width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;
  border:1px solid #b9ccda!important;border-radius:12px!important;background:#fff!important;
  padding:12px 13px!important;color:#172c3d!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.025)!important;
  transition:border-color .18s,box-shadow .18s,background .18s!important
}
.health-module form input:focus,.health-module form select:focus,.health-module form textarea:focus{outline:none!important;border-color:#1982c4!important;box-shadow:0 0 0 4px rgba(25,130,196,.13)!important;background:#fff!important}
.health-module form textarea{min-height:112px!important;resize:vertical!important}
.health-module form button[type=submit],.health-module form .form-submit-row{grid-column:1/-1!important;justify-self:start}
.health-module .health-section-note{grid-column:1/-1;margin:-4px 0 0;padding:11px 13px;border-radius:12px;background:#edf7ff;border-left:4px solid #1682c4;color:#38566c;font-size:13px;line-height:1.5}
.health-module .required-mark{color:#b42318;font-weight:900}
.health-module .sheet-header-clean{background:linear-gradient(135deg,#f6fbff,#fff);padding:18px;border:1px solid #d9e7f1;border-radius:18px;margin-bottom:20px}
.health-module .sheet-title-stack h2{font-size:clamp(20px,3vw,28px)!important;letter-spacing:.02em}
.health-module .sheet-footer-clean{margin-top:20px}
.health-module .table-wrap{border:1px solid #dce7ef;border-radius:16px;box-shadow:0 8px 22px rgba(9,58,97,.06)}
.health-module table thead th{position:sticky;top:0;z-index:3;background:#eaf4fb!important}

@media(max-width:1180px){
  .workspace-topbar{grid-template-columns:auto minmax(170px,1fr) minmax(180px,1fr) auto!important}
  .workspace-topbar .language-select{display:none}
  .history-btn span{display:none}
  .history-btn{width:42px;padding:8px}
}
@media(max-width:780px){
  .workspace-topbar{position:sticky!important;top:0!important;display:grid!important;grid-template-columns:1fr!important;padding:10px 12px 10px 72px!important;gap:9px!important}
  .history-controls{order:0;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .history-btn{width:100%;height:42px;padding:7px 5px!important;font-size:20px;border-radius:11px}
  .history-btn span{display:none}
  .history-top{display:inline-flex}
  .workspace-welcome{order:1}.global-search-form{order:2}.top-actions{order:3}
  .workspace-welcome small{max-width:100%}
  .health-module form.form-grid,.health-module form.adhesion-inspired-form{grid-template-columns:1fr!important;padding:14px!important;gap:14px!important}
  .health-module form fieldset{grid-template-columns:1fr!important;padding:15px!important;gap:13px!important}
  .health-module .sheet-header-clean{padding:14px!important}
  .health-module .sheet-footer-clean{grid-template-columns:1fr!important}
}
@media print{
  .history-controls{display:none!important}
  .workspace-topbar{position:static!important;box-shadow:none!important}
}

/* FOBAK V54 — correction définitive des superpositions, barre fixe et menu pleine hauteur */
:root{--fobak-sidebar-width:280px;--fobak-topbar-gap:10px}

@media (min-width:781px){
  body.admin-layout{overflow-x:hidden!important}
  .app-shell{display:block!important;min-height:100vh!important}
  .side-dashboard{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:var(--fobak-sidebar-width)!important;height:100vh!important;min-height:100vh!important;
    max-height:100vh!important;overflow:hidden!important;z-index:100!important;
    display:flex!important;flex-direction:column!important;
    background:linear-gradient(180deg,#073e6a 0%,#052844 100%)!important;
  }
  .side-menu{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
  .side-user,.logout-btn{flex:0 0 auto!important}
  .workspace{margin-left:var(--fobak-sidebar-width)!important;width:calc(100% - var(--fobak-sidebar-width))!important;min-width:0!important}
  .workspace-topbar{
    position:sticky!important;top:0!important;z-index:90!important;width:100%!important;
    min-width:0!important;overflow:visible!important;
  }
  .workspace-content{min-width:0!important}
}

/* Écrans d'ordinateur moyens : deux lignes propres, sans chevauchement */
@media (min-width:781px) and (max-width:1280px){
  .workspace-topbar{
    display:grid!important;
    grid-template-columns:auto minmax(180px,1fr) auto!important;
    grid-template-areas:
      "history welcome actions"
      "search search language"!important;
    gap:9px 12px!important;padding:10px 14px!important;align-items:center!important;
  }
  .history-controls{grid-area:history!important;min-width:max-content!important}
  .workspace-welcome{grid-area:welcome!important;min-width:0!important}
  .workspace-welcome strong,.workspace-welcome small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .global-search-form{grid-area:search!important;width:100%!important;max-width:none!important;min-width:0!important}
  .language-select{grid-area:language!important;display:block!important;width:132px!important;min-width:132px!important}
  .top-actions{grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;min-width:max-content!important}
  .top-date{display:none!important}
  .history-btn{padding:8px 10px!important}
  .history-btn span{display:none!important}
}

/* Grands écrans : une ligne ordonnée */
@media (min-width:1281px){
  .workspace-topbar{
    display:grid!important;
    grid-template-columns:auto minmax(190px,1fr) minmax(250px,420px) 145px auto!important;
    gap:12px!important;padding:11px 18px!important;align-items:center!important;
  }
  .workspace-welcome,.global-search-form,.language-select,.top-actions,.history-controls{min-width:0!important}
  .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
}

/* Téléphones et tablettes : barre réellement fixe, menu sans espace blanc */
@media (max-width:780px){
  body.admin-layout{overflow-x:hidden!important}
  .app-shell{display:block!important;min-height:100dvh!important}
  .workspace{width:100%!important;min-width:0!important;margin:0!important}
  .workspace-topbar{
    position:sticky!important;top:0!important;z-index:850!important;
    display:grid!important;grid-template-columns:1fr!important;
    padding:10px 10px 10px 72px!important;gap:8px!important;
    background:rgba(255,255,255,.985)!important;
    border-bottom:1px solid #d8e4ef!important;
    box-shadow:0 8px 24px rgba(9,52,91,.12)!important;
    backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
  }
  .history-controls{order:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;gap:6px!important}
  .history-btn{width:100%!important;min-width:0!important;height:40px!important;padding:5px!important;font-size:19px!important}
  .workspace-welcome{order:1!important;min-width:0!important}
  .workspace-welcome strong{font-size:18px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .workspace-welcome small{font-size:13px!important;line-height:1.35!important;white-space:normal!important}
  .global-search-form{order:2!important;width:100%!important;min-width:0!important}
  .language-select{order:3!important;width:100%!important;display:block!important}
  .top-actions{order:4!important;width:100%!important;min-width:0!important}

  .side-dashboard{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:min(88vw,360px)!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
    background:linear-gradient(180deg,#073e6a 0%,#052844 100%)!important;
    transform:translateX(-105%)!important;z-index:1390!important;
  }
  body.side-open .side-dashboard{transform:translateX(0)!important}
  .side-menu{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;background:transparent!important}
  .side-user,.logout-btn{flex:0 0 auto!important}
  .mobile-sidebar-toggle{position:fixed!important;z-index:1400!important}
  .workspace-content{padding-top:12px!important}
}

/* Empêche les anciens styles de désactiver le sticky */
@media screen{
  body.admin-layout .workspace-topbar{position:sticky!important;top:0!important}
}

/* FOBAK V55 — en-tête administratif fixe, sans superposition */
:root{
  --fobak-sidebar-width:280px;
  --fobak-topbar-height:126px;
}

@media screen and (min-width:781px){
  body.admin-layout{padding-top:0!important;overflow-x:hidden!important}
  body.admin-layout .workspace{
    margin-left:var(--fobak-sidebar-width)!important;
    width:calc(100% - var(--fobak-sidebar-width))!important;
    min-width:0!important;
  }
  body.admin-layout .workspace-topbar{
    position:fixed!important;
    top:0!important;
    left:var(--fobak-sidebar-width)!important;
    right:0!important;
    width:auto!important;
    min-height:var(--fobak-topbar-height)!important;
    z-index:1000!important;
    display:grid!important;
    grid-template-columns:minmax(250px,auto) minmax(220px,1fr) auto!important;
    grid-template-areas:
      "history welcome actions"
      "search search language"!important;
    align-items:center!important;
    gap:10px 14px!important;
    padding:12px 18px!important;
    overflow:visible!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid #d8e5ef!important;
    box-shadow:0 10px 28px rgba(5,48,84,.14)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
  }
  body.admin-layout .workspace-content{
    padding-top:calc(var(--fobak-topbar-height) + 22px)!important;
  }
  body.admin-layout .history-controls{
    grid-area:history!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
  }
  body.admin-layout .history-btn{
    flex:0 0 auto!important;
    min-width:0!important;
    height:42px!important;
    padding:8px 12px!important;
    border-radius:12px!important;
    white-space:nowrap!important;
  }
  body.admin-layout .workspace-welcome{
    grid-area:welcome!important;
    min-width:0!important;
    text-align:left!important;
    padding:0!important;
  }
  body.admin-layout .workspace-welcome strong{
    display:block!important;
    font-size:18px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.admin-layout .workspace-welcome small{
    display:block!important;
    margin-top:3px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.admin-layout .global-search-form{
    grid-area:search!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
  }
  body.admin-layout .global-search-form input{
    min-width:0!important;
    height:46px!important;
  }
  body.admin-layout .language-select{
    grid-area:language!important;
    width:150px!important;
    min-width:150px!important;
    height:46px!important;
    margin:0!important;
  }
  body.admin-layout .top-actions{
    grid-area:actions!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    min-width:max-content!important;
  }
  body.admin-layout .top-actions>a{
    flex:0 0 40px!important;
    width:40px!important;
    height:40px!important;
  }
  body.admin-layout .top-date{
    min-width:88px!important;
    padding-left:10px!important;
  }
}

/* Ordinateurs étroits : libellés réduits, mais aucun chevauchement */
@media screen and (min-width:781px) and (max-width:1180px){
  :root{--fobak-topbar-height:122px}
  body.admin-layout .workspace-topbar{
    grid-template-columns:auto minmax(180px,1fr) auto!important;
    padding:10px 12px!important;
    gap:8px 10px!important;
  }
  body.admin-layout .history-btn span{display:none!important}
  body.admin-layout .history-btn{width:42px!important;padding:0!important;justify-content:center!important;font-size:20px!important}
  body.admin-layout .top-date{display:none!important}
  body.admin-layout .language-select{width:128px!important;min-width:128px!important}
}

/* Téléphone/tablette : en-tête fixe et contenu automatiquement décalé */
@media screen and (max-width:780px){
  :root{--fobak-topbar-height:274px}
  body.admin-layout .workspace-topbar{
    position:fixed!important;
    top:0!important;left:0!important;right:0!important;width:100%!important;
    max-height:none!important;
    z-index:1350!important;
  }
  body.admin-layout .workspace-content{
    padding-top:calc(var(--fobak-topbar-height) + 12px)!important;
  }
  body.admin-layout .mobile-sidebar-toggle{z-index:1450!important}
}

/* FOBAK V56 — en-tête flottant bleu, harmonisé avec le menu latéral */
:root{
  --fobak-topbar-blue:#073e6a;
  --fobak-topbar-blue-dark:#052844;
  --fobak-topbar-border:rgba(255,255,255,.18);
  --fobak-topbar-text:#ffffff;
  --fobak-topbar-soft:#eaf6ff;
}

body.admin-layout .workspace-topbar{
  background:linear-gradient(135deg,rgba(7,62,106,.98) 0%,rgba(5,40,68,.98) 100%)!important;
  color:var(--fobak-topbar-text)!important;
  border:1px solid var(--fobak-topbar-border)!important;
  box-shadow:0 14px 34px rgba(3,31,55,.28),0 2px 8px rgba(3,31,55,.18)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}

body.admin-layout .workspace-welcome strong,
body.admin-layout .workspace-welcome small{
  color:#fff!important;
}
body.admin-layout .workspace-welcome small{opacity:.82!important}

body.admin-layout .history-btn{
  color:#fff!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
}
body.admin-layout .history-btn:hover,
body.admin-layout .history-btn:focus-visible{
  color:#073e6a!important;
  background:#fff!important;
  border-color:#fff!important;
  transform:translateY(-1px)!important;
}
body.admin-layout .history-home{
  background:linear-gradient(135deg,#138bc8,#0b6aa7)!important;
  border-color:rgba(255,255,255,.42)!important;
}
body.admin-layout .history-top{
  background:rgba(255,214,46,.20)!important;
  border-color:rgba(255,224,104,.55)!important;
}

body.admin-layout .global-search-form{
  border-radius:16px!important;
  background:#fff!important;
  border:1px solid rgba(255,255,255,.72)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.16)!important;
  overflow:hidden!important;
}
body.admin-layout .global-search-form input{
  color:#18354c!important;
  background:#fff!important;
  border:0!important;
}
body.admin-layout .global-search-form input::placeholder{color:#708195!important;opacity:1!important}
body.admin-layout .global-search-form button{
  color:#fff!important;
  background:linear-gradient(135deg,#1aa7df,#087db8)!important;
  border:0!important;
  min-width:48px!important;
}

body.admin-layout .language-select{
  color:#073e6a!important;
  background:#fff!important;
  border:1px solid rgba(255,255,255,.75)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.14)!important;
  font-weight:800!important;
}

body.admin-layout .top-actions>a{
  color:#fff!important;
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.13)!important;
}
body.admin-layout .top-actions>a:hover,
body.admin-layout .top-actions>a:focus-visible{
  background:#fff!important;
  color:#073e6a!important;
  transform:translateY(-1px)!important;
}
body.admin-layout .top-actions sup{
  color:#fff!important;
  background:#e51d35!important;
  border:2px solid #fff!important;
}
body.admin-layout .top-date{
  color:#fff!important;
  border-left-color:rgba(255,255,255,.28)!important;
}
body.admin-layout .top-date span,
body.admin-layout .top-date strong{color:#fff!important}

@media screen and (min-width:781px){
  body.admin-layout .workspace-topbar{
    top:10px!important;
    left:calc(var(--fobak-sidebar-width) + 12px)!important;
    right:12px!important;
    width:auto!important;
    border-radius:20px!important;
  }
  body.admin-layout .workspace-content{
    padding-top:calc(var(--fobak-topbar-height) + 32px)!important;
  }
}

@media screen and (max-width:780px){
  body.admin-layout .workspace-topbar{
    top:8px!important;
    left:8px!important;
    right:8px!important;
    width:calc(100% - 16px)!important;
    border-radius:18px!important;
    padding-left:72px!important;
  }
  body.admin-layout .workspace-content{
    padding-top:calc(var(--fobak-topbar-height) + 26px)!important;
  }
  body.admin-layout .history-controls{gap:6px!important}
  body.admin-layout .history-btn{
    min-height:42px!important;
    color:#fff!important;
    background:rgba(255,255,255,.12)!important;
  }
  body.admin-layout .top-actions{
    display:grid!important;
    grid-template-columns:repeat(4,44px) minmax(88px,1fr)!important;
    justify-content:start!important;
    gap:8px!important;
  }
  body.admin-layout .top-actions>a{
    width:44px!important;
    height:44px!important;
  }
  body.admin-layout .top-date{
    display:flex!important;
    min-width:0!important;
    padding-left:8px!important;
    border-left:1px solid rgba(255,255,255,.25)!important;
  }
}

@media screen and (max-width:460px){
  body.admin-layout .workspace-topbar{padding:9px 9px 9px 66px!important}
  body.admin-layout .history-btn span{display:none!important}
  body.admin-layout .history-btn{font-size:20px!important;padding:0!important}
  body.admin-layout .top-date{display:none!important}
  body.admin-layout .top-actions{grid-template-columns:repeat(4,44px)!important}
}

/* FOBAK V57 — en-tête collé en haut et au bord gauche du contenu */
@media screen and (min-width:781px){
  body.admin-layout .workspace-topbar{
    top:0!important;
    left:var(--fobak-sidebar-width)!important;
    right:0!important;
    width:auto!important;
    margin:0!important;
    border-top:0!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0 0 18px 18px!important;
    box-shadow:0 10px 26px rgba(3,31,55,.25)!important;
  }
  body.admin-layout .workspace-content{
    padding-top:calc(var(--fobak-topbar-height) + 18px)!important;
  }
}

@media screen and (max-width:780px){
  body.admin-layout .workspace-topbar{
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    margin:0!important;
    border-top:0!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0 0 16px 16px!important;
    box-shadow:0 9px 22px rgba(3,31,55,.24)!important;
  }
  body.admin-layout .workspace-content{
    padding-top:calc(var(--fobak-topbar-height) + 16px)!important;
  }
}

/* Préserve le contraste et la visibilité des commandes sur toutes les largeurs */
body.admin-layout .workspace-topbar button,
body.admin-layout .workspace-topbar a,
body.admin-layout .workspace-topbar select,
body.admin-layout .workspace-topbar input{
  position:relative!important;
  z-index:1!important;
}
body.admin-layout .history-controls,
body.admin-layout .workspace-welcome,
body.admin-layout .global-search-form,
body.admin-layout .language-select,
body.admin-layout .top-actions{
  min-width:0!important;
}

/* FOBAK V58 — bouton supérieur gauche fonctionnel : réduire/réafficher le menu latéral */
@media screen and (min-width:781px){
  body.admin-layout .side-dashboard{
    transition:transform .24s ease,visibility .24s ease,box-shadow .24s ease!important;
  }
  body.admin-layout.sidebar-collapsed .app-shell{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.admin-layout.sidebar-collapsed .side-dashboard{
    position:fixed!important;
    top:0!important;left:0!important;bottom:0!important;
    transform:translateX(-105%)!important;
    visibility:hidden!important;
    pointer-events:none!important;
    box-shadow:none!important;
  }
  body.admin-layout.sidebar-collapsed .workspace{
    width:100%!important;
    min-width:0!important;
    margin-left:0!important;
  }
  body.admin-layout.sidebar-collapsed .workspace-topbar{
    left:0!important;
    padding-left:78px!important;
  }
  body.admin-layout.sidebar-collapsed #mobile-sidebar-toggle{
    display:grid!important;
    place-items:center!important;
    position:fixed!important;
    top:12px!important;
    left:12px!important;
    z-index:1500!important;
    width:50px!important;
    height:50px!important;
    border:1px solid rgba(255,255,255,.35)!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,#138bc8,#075b96)!important;
    color:#fff!important;
    font-size:27px!important;
    font-weight:900!important;
    box-shadow:0 10px 24px rgba(3,31,55,.30)!important;
    cursor:pointer!important;
  }
  body.admin-layout:not(.sidebar-collapsed) #mobile-sidebar-toggle{
    display:none!important;
  }
  body.admin-layout .sidebar-close-button{
    display:grid!important;
    place-items:center!important;
    transition:background .18s ease,transform .18s ease!important;
  }
  body.admin-layout .sidebar-close-button:hover,
  body.admin-layout .sidebar-close-button:focus-visible{
    background:#e3212e!important;
    transform:scale(1.04)!important;
    outline:3px solid rgba(255,255,255,.28)!important;
  }
}

/* FOBAK V60 — fermeture complète du menu sans vide blanc */
@media screen and (min-width:781px){
  body.admin-layout.sidebar-collapsed{
    --fobak-sidebar-width:0px!important;
  }
  body.admin-layout.sidebar-collapsed .app-shell{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  body.admin-layout.sidebar-collapsed .workspace{
    position:relative!important;
    left:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  body.admin-layout.sidebar-collapsed .workspace-topbar{
    top:0!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
    padding-left:78px!important;
    border-radius:0 0 18px 18px!important;
    box-sizing:border-box!important;
  }
  body.admin-layout.sidebar-collapsed .workspace-content,
  body.admin-layout.sidebar-collapsed .main-content{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    box-sizing:border-box!important;
  }
  body.admin-layout.sidebar-collapsed #mobile-sidebar-toggle{
    top:10px!important;
    left:10px!important;
  }
}

/* V62 — photo réelle du profil dans le menu latéral */
.avatar-letter.avatar-photo{display:block!important;object-fit:cover!important;object-position:center!important;padding:0!important;border:3px solid rgba(255,255,255,.85)!important;background:#fff!important;color:transparent!important;box-shadow:0 5px 16px rgba(0,0,0,.22)!important}
.side-user .avatar-photo{width:46px!important;height:46px!important;min-width:46px!important;border-radius:50%!important}

/* V63 — tableau de bord épuré, statistiques enrichies et menus hiérarchiques */
.legacy-side-navigation{display:none!important}
.v63-side-navigation{display:grid;gap:4px}
.v63-side-navigation>.side-menu-group{border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.035)}
.v63-side-navigation>.side-menu-group[open]{background:rgba(255,255,255,.08)}
.v63-side-navigation .side-menu-group>summary{min-height:49px}
.v63-side-navigation .side-menu-group>summary b{transition:transform .18s ease}
.v63-side-navigation .side-menu-group[open]>summary b{transform:rotate(180deg)}
.side-menu-subgroup{margin:5px 0;border-radius:12px;background:rgba(2,37,67,.24);overflow:hidden}
.side-menu-subgroup>summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:11px 12px;list-style:none;font-weight:800;color:#fff}
.side-menu-subgroup>summary::-webkit-details-marker{display:none}
.side-menu-subgroup>summary b{margin-left:auto}
.side-menu-subgroup .health-submenu{padding:3px 7px 9px 15px;border-left:2px solid rgba(76,207,242,.55)}
.side-menu-subgroup .health-submenu a{min-height:40px!important;font-size:.86rem!important;padding:9px 11px!important}

/* FOBAK V70 — recherche avancée, guide de module et supervision des connexions */
.advanced-search-field{position:relative;min-width:0;width:100%}.advanced-search-form .advanced-search-field input{width:100%}
.advanced-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:1900;max-height:430px;overflow:auto;background:#fff;border:1px solid #c7d8e8;border-radius:16px;padding:7px;box-shadow:0 22px 55px rgba(3,37,66,.24);color:#102b4a}
.advanced-search-results[hidden]{display:none!important}.advanced-search-results a{display:grid!important;grid-template-columns:30px 1fr!important;gap:9px!important;align-items:center!important;padding:10px 11px!important;border-radius:11px!important;text-decoration:none!important;color:#12324f!important;background:#fff!important}
.advanced-search-results a:hover,.advanced-search-results a:focus{background:#edf6ff!important;outline:2px solid #8dc8f2}.advanced-search-results strong,.advanced-search-results small{display:block}.advanced-search-results small{margin-top:3px;color:#65768a;font-size:12px}.advanced-search-results .all-results{display:block!important;text-align:center!important;background:#073e6a!important;color:#fff!important;font-weight:900;margin-top:5px}
.side-search-results{position:relative;top:auto;margin:6px 4px 10px;flex:0 0 auto;max-height:300px}.side-search-results a{font-size:13px!important}.side-menu-search{position:relative}
.module-guide{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 20px;padding:18px 22px;background:linear-gradient(135deg,#eef8ff,#fffdf2);border:1px solid #bfdcef;border-left:6px solid #0b66c3;border-radius:19px;box-shadow:0 10px 26px rgba(5,54,91,.08)}
.module-guide-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#073e6a;color:#fff;font-size:26px}.module-guide span{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#0b66c3;font-weight:900}.module-guide h2{margin:3px 0 4px;font-size:21px;color:#102b4a}.module-guide p{margin:0;color:#536276;line-height:1.5}.module-guide ul{margin:0;padding:0;list-style:none;min-width:210px}.module-guide li{margin:6px 0;color:#17496e;font-weight:800}
.search-module-result{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #e8eef5;text-decoration:none;color:#18344e}.search-module-result:hover{background:#f0f8ff;border-radius:12px}.search-module-result>span:first-child{font-size:25px}.search-module-result strong,.search-module-result small{display:block}.search-module-result small{color:#68798c;margin-top:3px}
.session-live-count{width:116px;height:116px;border-radius:50%;display:grid;place-content:center;text-align:center;background:#e8fff2;border:6px solid #fff;box-shadow:0 12px 35px rgba(16,137,78,.2);z-index:1}.session-live-count strong{font-size:35px;color:#10894e}.session-live-count span{color:#276546;font-weight:800}.connection-status{display:inline-block;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}.connection-status.online{background:#ddfbea;color:#087541}.connection-status.offline{background:#edf1f5;color:#697889}.cell-subtitle{display:block;margin-top:4px;color:#718095}.user-agent-cell{max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:820px){.module-guide{grid-template-columns:48px 1fr;padding:15px}.module-guide ul{grid-column:1/-1;min-width:0}.session-live-count{width:90px;height:90px}.advanced-search-results{position:fixed;left:12px;right:12px;top:150px;max-height:55vh}}
.dashboard-welcome-v63{position:relative;overflow:hidden;background:linear-gradient(132deg,#073e6c 0%,#086b9e 62%,#0aa1b4 100%)!important;color:#fff!important;border:0!important;box-shadow:0 18px 42px rgba(6,70,111,.2)!important}
.dashboard-welcome-v63:after{content:"";position:absolute;width:360px;height:360px;border:70px solid rgba(255,255,255,.06);border-radius:50%;right:-160px;top:-190px;pointer-events:none}
.dashboard-welcome-v63 h1,.dashboard-welcome-v63 p,.dashboard-welcome-v63 .eyebrow{color:#fff!important}
.welcome-meta{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.welcome-meta span{display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);font-size:.86rem;font-weight:750}
.dashboard-stat-section,.communication-hub{margin:22px 0}
.dashboard-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 13px}
.dashboard-section-head h2{margin:3px 0 0;color:#0b3a66}
.dashboard-section-head>small{color:#62788c;text-align:right}
.kpi-grid-v63{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.kpi-link{text-decoration:none;color:inherit;position:relative;overflow:hidden;min-height:132px;border:1px solid #dce8f2!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.kpi-link:hover{transform:translateY(-4px);box-shadow:0 15px 35px rgba(9,70,112,.13);border-color:#7ebbdc!important}
.kpi-link>div:last-child{min-width:0;flex:1}
.kpi-link strong{font-size:clamp(1.45rem,2.5vw,2rem)!important;color:#0a466f!important;line-height:1.1}
.kpi-link span{display:block;margin-top:5px;color:#6d7f90}
.kpi-link i{display:block;position:relative;height:5px;background:#e6eef5;border-radius:99px;margin-top:13px;overflow:hidden}
.kpi-link i:after{content:"";display:block;width:var(--progress,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#0878b6,#26b8cc)}
.kpi-icon.green{background:#def7e9;color:#087443}.kpi-icon.violet{background:#efe7ff;color:#6941c6}.kpi-icon.cyan{background:#dff8fb;color:#087f91}
.communication-counter{display:inline-flex;padding:8px 12px;border-radius:999px;background:#e8f5fc;color:#0b5d8b;font-weight:800;font-size:.82rem}
.dashboard-panels-v63{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.dashboard-panels-v63 .panel-card{margin:0;min-width:0;border-top:4px solid #1598bd}
.dashboard-panels-v63 .panel-head h3{margin:0;font-size:1.05rem;color:#0b3a66}
.empty-communication{display:grid;place-items:center;min-height:112px;text-align:center;color:#6b7e8e;background:#f6f9fb;border-radius:14px;padding:16px}
@media(max-width:1100px){.kpi-grid-v63,.dashboard-panels-v63{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-panels-v63 .panel-card:last-child{grid-column:1/-1}}
@media(max-width:680px){.kpi-grid-v63,.dashboard-panels-v63{grid-template-columns:1fr!important}.dashboard-panels-v63 .panel-card:last-child{grid-column:auto}.dashboard-section-head{align-items:flex-start;flex-direction:column}.dashboard-section-head>small{text-align:left}.kpi-link{min-height:116px}.welcome-meta{display:grid}.communication-counter{align-self:flex-start}}

/* V64 — modification membre et photo de carte entièrement visible */
.member-edit-photo{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center;padding:16px;border:1px solid #d8e7f1;border-radius:18px;background:#f5fbfe}
.member-edit-photo img{grid-row:1/3;width:140px;height:175px;object-fit:contain;object-position:center;border:4px solid #1aa7d2;border-radius:14px;background:#fff}
.member-edit-photo small{color:#5d7182}
@media(max-width:680px){.member-edit-photo{grid-template-columns:1fr}.member-edit-photo img{grid-row:auto;margin:auto}}

/* FOBAK V75 — en-tête actif mais discret, sans recouvrir le contenu */
body.admin-layout .workspace-topbar{
  transition:none!important;
}
body.admin-layout .topbar-action-button{
  flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.28);
  border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;box-shadow:0 5px 14px rgba(0,0,0,.13);
}
body.admin-layout .topbar-action-button:hover,body.admin-layout .topbar-action-button:focus-visible{background:#fff;color:#073e6a;outline:3px solid rgba(255,210,30,.42)}
body.admin-layout .topbar-toggle-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body.admin-layout:not(.topbar-compact) .topbar-search-expand{display:none!important}
body.admin-layout .workspace-content{padding-top:calc(var(--fobak-topbar-height) + 18px)!important}

body.admin-layout.topbar-compact .workspace-topbar{
  min-height:68px!important;height:auto!important;padding:8px 12px!important;
  grid-template-columns:auto minmax(170px,1fr) auto!important;
  grid-template-areas:"history welcome actions"!important;gap:8px 12px!important;overflow:visible!important;
}
body.admin-layout.topbar-compact .workspace-welcome small,
body.admin-layout.topbar-compact .global-search-form,
body.admin-layout.topbar-compact .language-select,
body.admin-layout.topbar-compact .top-date{display:none!important}
body.admin-layout.topbar-compact .workspace-welcome strong{font-size:16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.admin-layout.topbar-compact .history-btn{width:40px!important;height:40px!important;padding:0!important;justify-content:center!important}
body.admin-layout.topbar-compact .history-btn span{display:none!important}
body.admin-layout.topbar-compact .top-actions{display:flex!important;width:auto!important;gap:6px!important;justify-content:flex-end!important}
body.admin-layout.topbar-compact .top-actions>a,
body.admin-layout.topbar-compact .topbar-action-button{width:40px!important;height:40px!important;min-height:40px!important}

.badge.spam{background:#ffe7e8;color:#9f1821}.badge.archived{background:#edf1f5;color:#536276}
.ticket-message-shell{padding:16px 18px;border:1px solid #d9e6f0;border-radius:18px;background:#f8fbff;overflow:hidden}
.ticket-message-shell.is-suspicious{border-color:#f2a4aa;background:#fff8f8}.spam-warning{margin:-16px -18px 14px;padding:11px 16px;background:#ffe7e8;color:#8f1720;font-weight:850}
.ticket-message-content{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.ticket-message-content.is-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;max-height:10em}
.ticket-message-content.is-expanded{display:block;max-height:none}.ticket-message-toggle{margin-top:12px}.ticket-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.ticket-quick-actions form{margin:0}.btn.danger{background:#b4232d!important;color:#fff!important;border-color:#b4232d!important}
.ticket-history-item{display:grid!important;grid-template-columns:minmax(130px,220px) minmax(0,1fr) auto!important;gap:12px!important}.ticket-history-message,.ticket-title-clamp{overflow-wrap:anywhere}.ticket-title-clamp{display:inline-block;max-width:360px}.ticket-suspicious-row{background:#fff8f8}

@media screen and (max-width:1180px){
  body.admin-layout.topbar-compact .top-action-support,
  body.admin-layout.topbar-compact .top-action-security,
  body.admin-layout.topbar-compact .top-action-public{display:none!important}
}
@media screen and (max-width:780px){
  body.admin-layout.topbar-compact .workspace-topbar{
    min-height:66px!important;padding:8px 8px 8px 70px!important;
    grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"welcome actions"!important;border-radius:0 0 14px 14px!important;
  }
  body.admin-layout.topbar-compact .history-controls{display:none!important}
  body.admin-layout.topbar-compact .workspace-welcome{grid-area:welcome!important;align-self:center!important}
  body.admin-layout.topbar-compact .top-actions{grid-area:actions!important;display:flex!important;min-width:max-content!important}
  body.admin-layout.topbar-compact .top-actions>a,body.admin-layout.topbar-compact .topbar-action-button{width:42px!important;height:42px!important}
  body.admin-layout .workspace-content{padding-top:calc(var(--fobak-topbar-height) + 14px)!important}
  .ticket-history-item{grid-template-columns:1fr!important}.ticket-history-item small{color:#6b7c8c}
}
@media screen and (orientation:landscape) and (max-height:620px){
  body.admin-layout.topbar-compact .workspace-topbar{min-height:58px!important;padding-top:6px!important;padding-bottom:6px!important}
  body.admin-layout.topbar-compact .top-actions>a,body.admin-layout.topbar-compact .topbar-action-button{width:38px!important;height:38px!important;min-height:38px!important}
  body.admin-layout.topbar-compact .workspace-welcome strong{font-size:15px!important}
}

/* FOBAK V76 — protection visible et accessible des formulaires publics */
.human-verification{position:relative;margin:10px 0 4px;padding:17px 18px;border:2px solid #9bcce5;border-radius:17px;background:linear-gradient(135deg,#edf9ff,#fffdf2);overflow:hidden}
.human-verification legend{padding:0 9px;color:#073e6a;font-size:1rem;font-weight:900}.human-verification p{margin:0 0 12px;color:#4f6476}.human-verification .human-question{display:grid;grid-template-columns:minmax(190px,1fr) minmax(120px,220px);align-items:center;gap:14px;color:#143d5e;font-weight:850}.human-verification .human-question input{margin:0;background:#fff}.human-verification>small{display:block;margin-top:8px;color:#617588}.bot-trap{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.legal-consent{display:flex!important;align-items:flex-start!important;gap:13px;padding:17px 18px;border:2px solid #f0c94c;border-radius:17px;background:#fffbea;color:#223b50;font-weight:750;line-height:1.5}.legal-consent>input{flex:0 0 22px;width:22px!important;height:22px!important;min-height:22px!important;margin-top:2px;accent-color:#0878b6}.legal-consent a{color:#075c95;font-weight:900;text-decoration:underline}.legal-consent small{display:block;margin-top:5px;color:#66798a;font-weight:600}

/* FOBAK V79 — emblème rond officiel */
.official-emblem-mark img{width:168px!important;height:168px!important;max-height:none!important;object-fit:contain!important;filter:drop-shadow(0 12px 22px rgba(0,0,0,.24))}
.official-emblem-seal{width:124px!important;height:124px!important;min-width:124px!important;border-radius:50%!important;background:rgba(255,255,255,.96)!important;padding:5px!important}
.official-emblem-seal img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important}
.welcome-visual>img,.carousel-fallback-logo img{object-fit:contain!important}
@media(max-width:700px){.official-emblem-mark img{width:132px!important;height:132px!important}.official-emblem-seal{width:104px!important;height:104px!important;min-width:104px!important}}
@media(max-width:680px){.human-verification .human-question{grid-template-columns:1fr}.human-verification{padding:15px}.legal-consent{padding:15px}}

/* FOBAK V80 — chargement minimal et connexion lisible */
.page-loader .loader-minimal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;text-align:center}
.loader-emblem-spin{display:block;width:156px;height:156px;object-fit:contain;animation:fobakEmblemSpin 2.35s linear infinite;filter:drop-shadow(0 14px 28px rgba(0,0,0,.32))}
.loader-minimal span{color:#fff;font-size:17px;font-weight:850;letter-spacing:.035em;text-shadow:0 2px 8px rgba(0,0,0,.35)}
@keyframes fobakEmblemSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loader-emblem-spin{animation-duration:5s}}
.login-security-redesign .login-brand-mark.official-emblem-mark{display:flex!important;width:100%!important;align-items:center!important;justify-content:center!important;margin:0 auto 18px!important}
.login-security-redesign .login-visual>.eyebrow{align-self:center!important;color:#fff!important;opacity:1!important;background:rgba(2,33,58,.34)!important;border:1px solid rgba(255,255,255,.24)!important;border-radius:999px!important;padding:8px 16px!important;text-shadow:0 1px 5px rgba(0,0,0,.35)!important}
@media(max-width:820px){
  .login-security-redesign .login-visual{display:flex!important;min-height:0!important;padding:24px 18px!important;align-items:center!important;text-align:center!important}
  .login-security-redesign .official-emblem-mark img{width:112px!important;height:112px!important}
  .login-security-redesign .login-visual h1{font-size:1.75rem!important;margin:.65rem 0!important}
  .login-security-redesign .login-visual p,.login-security-redesign .login-points{display:none!important}
}

/* V66 - aperçu des cartes avant téléchargement */
.card-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-left:7px solid #19a9d4}
.card-preview-toolbar strong,.card-preview-toolbar small{display:block}.card-preview-toolbar small{margin-top:6px;color:#617588}
.card-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.card-face-preview{display:flex;flex-direction:column;align-items:center;gap:16px;margin:0!important;background:linear-gradient(180deg,#fff,#f2f8fc)}
.card-face-preview>a:not(.btn){display:block;width:min(100%,720px);padding:12px;border-radius:20px;background:#dce7ee;box-shadow:inset 0 0 0 1px #c1d3df}
.card-face-preview img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 14px 36px rgba(4,54,91,.2);transition:transform .2s ease}
.card-face-preview>a:hover img{transform:scale(1.015)}
.card-face-title{width:100%;display:flex;align-items:center;gap:12px;color:#073f6b}
.card-face-title>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#07578d;color:#fff;font-weight:900}
.card-face-title strong,.card-face-title small{display:block}.card-face-title small{color:#65788a;margin-top:3px}
@media(max-width:900px){.card-preview-toolbar{align-items:flex-start;flex-direction:column}.card-preview-grid{grid-template-columns:1fr}.card-face-preview>a:not(.btn){width:min(100%,720px)}}

/* FOBAK V77 — répertoire provincial et dossier membre unifié */
.members-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}
.member-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
.member-stat-card{min-height:145px;padding:22px;border:1px solid #d5e5ef;border-radius:22px;background:linear-gradient(145deg,#fff,#f4f9fc);box-shadow:0 12px 30px rgba(6,70,111,.08);display:flex;flex-direction:column;gap:6px}
.member-stat-card.important{color:#fff;border-color:#075781;background:linear-gradient(145deg,#06466f,#087da6)}
.member-stat-card span{font-weight:750}.member-stat-card strong{font-size:2.5rem;line-height:1;color:#06466f}.member-stat-card.important strong{color:#ffd43b}.member-stat-card small{opacity:.76}
.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.section-title-row h2,.section-title-row p{margin-bottom:5px}
.province-current{padding:10px 15px;border-radius:999px;background:#e7f7fc;color:#06466f;font-weight:800}
.province-filter-form{display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(150px,.8fr) 120px 120px auto;gap:12px;align-items:end}.province-filter-form label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.province-filter-form select,.province-filter-form input{width:100%;min-height:48px}
.province-chip-list{display:flex;gap:9px;overflow-x:auto;padding:16px 2px 3px;margin-top:10px;scrollbar-width:thin}.province-chip{display:flex;gap:12px;align-items:center;white-space:nowrap;padding:10px 13px;border:1px solid #cce1ed;border-radius:999px;background:#f8fcfe;color:#17465e;text-decoration:none}.province-chip strong{display:grid;place-items:center;min-width:27px;height:27px;border-radius:50%;background:#dff4fb;color:#06618d}.province-chip.selected{background:#06466f;color:#fff;border-color:#06466f}.province-chip.selected strong{background:#ffd43b;color:#06466f}
.directory-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.member-list{display:grid;gap:11px}.member-list-row{display:grid;grid-template-columns:68px 70px minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px;border:1px solid #d8e6ee;border-radius:18px;background:#fff;transition:.18s ease}.member-list-row:hover{border-color:#1aafd7;box-shadow:0 10px 26px rgba(6,70,111,.1);transform:translateY(-1px)}.member-list-row.member-focus{outline:3px solid rgba(255,207,49,.75);background:#fffcf0}
.member-rank{display:flex;flex-direction:column;align-items:center;color:#5c7280}.member-rank span{font-size:.68rem;font-weight:800;text-transform:uppercase}.member-rank strong{font-size:1.35rem;color:#06466f}
.member-list-photo{width:64px;height:64px;border:3px solid #c8eaf5;border-radius:17px;overflow:hidden;background:#e8f6fb;display:grid;place-items:center;font-size:1.2rem;font-weight:900;color:#075781}.member-list-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.member-list-name{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.member-list-name h3{margin:0;color:#063e64}.member-list-main>p{margin:4px 0 8px}.member-list-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:#647786;font-size:.88rem}.member-list-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.directory-footer-actions{display:flex;flex-wrap:wrap;gap:18px;padding-top:18px;margin-top:18px;border-top:1px solid #d8e6ee}.directory-footer-actions a{font-weight:750}.empty-directory{text-align:center;padding:50px 20px;color:#617585}.empty-directory>span{font-size:2.5rem}
.member-profile-breadcrumb{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 14px;color:#657987}.member-profile-breadcrumb a{font-weight:700}.member-profile-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px;margin-bottom:14px;border-radius:26px;color:#fff;background:linear-gradient(135deg,#063e64,#087da6);box-shadow:0 18px 40px rgba(6,70,111,.2)}.member-profile-identity{display:flex;align-items:center;gap:20px}.member-profile-photo{width:126px;height:146px;border:4px solid #43c7e6;border-radius:22px;background:#fff;overflow:hidden;display:grid;place-items:center;color:#075781;font-size:2rem;font-weight:900;flex:none}.member-profile-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}.member-profile-hero h1{color:#fff;margin:4px 0}.member-profile-hero p{margin:0 0 12px;opacity:.9}.profile-badges{display:flex;flex-wrap:wrap;gap:8px}.profile-badges .badge{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.25)}.profile-badges .badge.active{background:#0a9d5a}.profile-badges .badge.executive{background:#ffd43b;color:#06466f}.member-profile-rank{min-width:180px;padding:20px;text-align:center;border-radius:20px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);display:flex;flex-direction:column}.member-profile-rank span{font-weight:700}.member-profile-rank strong{font-size:3rem;color:#ffd43b;line-height:1.1}.member-profile-rank small{opacity:.85}.member-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;padding:12px;border:1px solid #d7e7ef;border-radius:18px;background:#fff;position:sticky;top:8px;z-index:5;box-shadow:0 10px 25px rgba(6,70,111,.08)}
.member-profile-grid{align-items:start}.member-info-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}.member-info-list>div{padding:13px 8px;border-bottom:1px solid #e1ebf0}.member-info-list dt{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#6a7e8b;font-weight:800}.member-info-list dd{margin:4px 0 0;color:#173d51;font-weight:700;overflow-wrap:anywhere}.contribution-total{font-size:1.5rem;color:#087da6}.profile-timeline-item{display:grid;grid-template-columns:12px 1fr;gap:11px;padding:11px 0;border-bottom:1px solid #e4edf2}.profile-timeline-item p,.profile-timeline-item small{margin:2px 0;color:#6a7c87}.timeline-dot{width:10px;height:10px;margin-top:6px;border-radius:50%;background:#1aafd7;box-shadow:0 0 0 4px #e3f7fc}.timeline-dot.success{background:#0a9d5a;box-shadow:0 0 0 4px #e1f7ec}.profile-empty{text-align:center;padding:28px;color:#6d808b}.profile-empty span{font-size:2rem}
.profile-card-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.profile-card-previews figure{margin:0;padding:12px;border-radius:20px;background:#edf4f8;border:1px solid #cfdee7}.profile-card-previews img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 7px 20px rgba(0,0,0,.13)}.profile-card-previews figcaption{text-align:center;padding:10px 0 0;font-weight:800;color:#31566a}.profile-document-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:16px}.profile-document-actions a{font-weight:750}.sensitive-actions summary{cursor:pointer;font-weight:800;color:#7c2733}.sensitive-actions>div{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
@media(max-width:1050px){.member-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.province-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.member-list-row{grid-template-columns:58px 64px minmax(0,1fr)}.member-list-actions{grid-column:2/-1;justify-content:flex-start}.member-profile-actions{position:static}}
@media(max-width:680px){.members-heading,.section-title-row,.member-profile-hero{align-items:stretch;flex-direction:column}.member-stat-grid{grid-template-columns:1fr 1fr;gap:9px}.member-stat-card{min-height:120px;padding:15px}.member-stat-card strong{font-size:2rem}.province-filter-form{grid-template-columns:1fr}.member-list-row{grid-template-columns:48px 54px minmax(0,1fr);padding:11px;gap:9px}.member-list-photo{width:52px;height:58px;border-radius:13px}.member-list-meta{display:grid;gap:4px}.member-list-actions{grid-column:1/-1}.member-list-actions .btn{flex:1}.member-profile-identity{align-items:flex-start}.member-profile-photo{width:92px;height:112px}.member-profile-rank{min-width:0}.member-profile-actions .btn{flex:1 1 45%}.member-info-list{grid-template-columns:1fr}.profile-card-previews{grid-template-columns:1fr}}

/* V81 — biographie publique du Président national */
.president-biography-public{margin:24px 0;padding:30px;border:1px solid #cfe2ec;border-radius:28px;background:linear-gradient(145deg,#fff,#f3f9fc);box-shadow:0 16px 38px rgba(6,70,111,.09)}
.president-biography-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.president-biography-heading h2{margin:4px 0 7px;color:#063f66}.president-biography-heading p{margin:0;color:#617783}
.president-biography-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}.president-biography-profile{text-align:center;padding:20px;border-radius:23px;color:#fff;background:linear-gradient(145deg,#063f66,#087fa8)}
.president-biography-profile img,.president-biography-placeholder{width:180px;height:210px;margin:auto;border:5px solid #fff;border-radius:23px;object-fit:cover;object-position:center top;background:#e6f5fa}.president-biography-placeholder{display:grid;place-items:center;color:#075781;font-size:3rem;font-weight:900}
.president-biography-profile h3{color:#fff;margin:16px 0 5px}.president-biography-profile strong{color:#ffd43b}.biography-lead{font-size:1.06rem;line-height:1.75;margin-top:0}
.president-biography-content details{margin:11px 0;border:1px solid #d6e6ee;border-radius:16px;background:#fff;overflow:hidden}.president-biography-content summary{cursor:pointer;padding:15px 18px;font-weight:850;color:#06466f;background:#f5fafc}.president-biography-content details p{padding:0 18px 18px;line-height:1.72;white-space:pre-line}
.biography-admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
@media(max-width:800px){.president-biography-heading,.biography-admin-header{flex-direction:column}.president-biography-layout{grid-template-columns:1fr}.president-biography-profile img,.president-biography-placeholder{width:150px;height:175px}.president-biography-public{padding:20px}}

/* V82 — identité visuelle propre et responsables */
.site-header.public-header{grid-template-columns:112px minmax(0,1fr) 88px!important;gap:18px!important;padding:10px 22px!important;min-height:94px!important;border-radius:0!important;background:linear-gradient(110deg,#0a4f86 0%,#1284bb 68%,#20b7dc 100%)!important;border-bottom:4px solid #f6cf2e!important;box-shadow:0 8px 24px rgba(4,47,80,.16)!important;overflow:visible!important}
.site-header.public-header .logo-box{width:92px!important;height:72px!important;padding:5px!important;margin:0!important;border-radius:16px!important;background:#fff!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 5px 14px rgba(5,45,75,.18)!important;display:flex!important;align-items:center!important;justify-content:center!important}
.site-header.public-header .logo-box img{width:100%!important;height:100%!important;max-width:82px!important;max-height:64px!important;object-fit:contain!important;filter:none!important}
.site-header.public-header .brand-block{text-align:center!important;color:#fff!important}.site-header.public-header .brand-block strong{font-size:27px!important;line-height:1.15!important}.site-header.public-header .brand-block span{font-weight:700!important}.site-header.public-header .brand-block em{opacity:.95!important}
.site-header.public-header .flag-real{width:82px!important;height:56px!important;padding:3px!important;border-radius:10px!important;background:#fff!important;box-shadow:0 4px 12px rgba(5,45,75,.18)!important;display:flex!important;align-items:center!important;justify-content:center!important}.site-header.public-header .flag-real img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:7px!important}
.public-leaders-section{margin:34px 0;padding:28px;border-radius:26px;background:linear-gradient(180deg,#f8fcff,#eef7fc);border:1px solid #d8eaf4}.public-leaders-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}.public-leader-card{display:grid;grid-template-columns:112px 1fr;gap:16px;padding:18px;background:#fff;border:1px solid #dceaf2;border-radius:20px;box-shadow:0 10px 24px rgba(8,58,94,.08)}.public-leader-card.is-featured{grid-column:span 2;border-color:#e8c645;background:linear-gradient(135deg,#fff,#fffdf2)}.public-leader-photo{width:112px;height:138px;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#0b5f96,#25b4db);display:flex;align-items:center;justify-content:center;color:#fff;font-size:44px;font-weight:800}.public-leader-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}.public-leader-body h3{margin:6px 0 2px}.public-leader-body strong{color:#0c679a}.public-leader-body p{font-size:14px;line-height:1.55;color:#526473}.leader-level{display:inline-block;padding:4px 9px;border-radius:999px;background:#e7f4fb;color:#0a668f;font-size:12px;font-weight:800}.leader-admin-thumb,.leader-admin-avatar{width:52px;height:58px;border-radius:10px;object-fit:cover;display:flex;align-items:center;justify-content:center;background:#0b6799;color:white;font-weight:800}.leaders-admin-list td small{display:block;color:#607484}.leader-editor-panel{max-width:1000px}.leader-checks{display:flex;gap:22px;align-items:center}.leader-checks label{display:flex;gap:8px;align-items:center}.inline-actions form{margin:0}
@media(max-width:700px){.site-header.public-header{grid-template-columns:72px 1fr 58px!important;gap:9px!important;padding:9px 10px!important;min-height:76px!important}.site-header.public-header .logo-box{width:64px!important;height:58px!important;border-radius:12px!important}.site-header.public-header .logo-box img{max-width:56px!important;max-height:50px!important}.site-header.public-header .brand-block strong{font-size:17px!important}.site-header.public-header .brand-block span,.site-header.public-header .brand-block em{font-size:10px!important}.site-header.public-header .flag-real{display:flex!important;width:56px!important;height:40px!important}.public-leader-card,.public-leader-card.is-featured{grid-column:span 1;grid-template-columns:88px 1fr}.public-leader-photo{width:88px;height:110px}.public-leaders-section{padding:18px}}

/* V83 - communication et chat */
.chat-list-item{display:flex;flex-direction:column;padding:14px;border:1px solid #dbe4ef;border-radius:12px;margin:8px 0;text-decoration:none}.chat-list-item small{opacity:.7}.chat-panel{max-width:1000px;margin:auto}.chat-messages{min-height:420px;max-height:65vh;overflow:auto;padding:12px;background:#f6f8fb;border-radius:14px}.chat-message{max-width:78%;background:white;border:1px solid #dde5ee;border-radius:14px;padding:10px 14px;margin:10px 0}.chat-message.mine{margin-left:auto;background:#e9f4ff}.chat-message header{display:flex;justify-content:space-between;gap:15px}.chat-message img,.chat-message video{max-width:100%;max-height:420px;border-radius:10px;margin-top:8px}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}.chat-compose textarea{grid-column:1/-1}@media(max-width:700px){.chat-message{max-width:95%}}
/* V84 - chat instantané professionnel */
.chat-home-grid{align-items:start}.chat-start-form{display:grid;gap:12px}.chat-list-row{display:flex;gap:8px;align-items:center}.chat-list-row .chat-list-item{flex:1}.chat-list-row form{margin:0}.btn.small{padding:8px 10px}.chat-panel{max-width:1100px}.chat-message{position:relative}.chat-message .delete-message{position:absolute;right:6px;bottom:4px;border:0;background:transparent;opacity:.55;cursor:pointer}.chat-message.mine .delete-message{display:block}.chat-sticker{font-size:3rem;line-height:1.2}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.chat-compose textarea{grid-column:auto;min-height:48px;resize:vertical}.chat-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.chat-tools .file-btn input{display:none}.sticker-panel{padding:10px;border:1px solid #dbe4ef;border-radius:12px;background:#fff;margin-top:10px}.sticker-btn{font-size:1.8rem;border:0;background:transparent;padding:7px;cursor:pointer;border-radius:8px}.sticker-btn:hover{background:#edf5ff}@media(max-width:700px){.chat-compose{grid-template-columns:1fr}.chat-tools{justify-content:space-between}.chat-message{max-width:92%}}

/* V85 — Sons et notifications du chat */
.chat-header-actions{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.chat-settings-modal{position:fixed;inset:0;background:rgba(3,20,38,.62);z-index:9999;display:grid;place-items:center;padding:1rem}.chat-settings-modal[hidden]{display:none}.chat-settings-card{width:min(560px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;padding:1.25rem;box-shadow:0 24px 70px rgba(0,0,0,.3)}.chat-settings-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce7f1;padding-bottom:.75rem;margin-bottom:.4rem}.chat-settings-head h2{margin:0}.icon-btn{border:0;background:#eef5fb;border-radius:50%;width:38px;height:38px;font-size:1.05rem;cursor:pointer}.setting-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.85rem .1rem;border-bottom:1px solid #edf2f7}.setting-row span{display:flex;flex-direction:column;gap:.2rem}.setting-row small{color:#5f7082}.setting-row input[type=checkbox]{width:22px;height:22px;accent-color:#0b74bd}.setting-row input[type=range]{width:min(220px,45vw)}.chat-settings-actions{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1rem;flex-wrap:wrap}@media(max-width:600px){.setting-row{align-items:flex-start}.chat-header-actions{width:100%}.chat-header-actions .btn{flex:1}.chat-settings-actions .btn{flex:1}}
.chat-reply,.reply-preview{border-left:4px solid currentColor;padding:.45rem .7rem;margin:.35rem 0;background:rgba(127,127,127,.1);border-radius:.35rem}.reply-preview{display:flex;justify-content:space-between;gap:1rem}.chat-message .reply-message,.chat-message .edit-message{border:0;background:transparent;cursor:pointer}.chat-list-head{display:flex;justify-content:space-between;gap:1rem;align-items:center}.chat-list-row form{display:flex;gap:.25rem}

/* V87 - actions avancées du chat */
.message-actions{display:flex;gap:.28rem;flex-wrap:wrap;margin-top:.35rem;opacity:.78}.message-actions button{border:0;background:rgba(255,255,255,.75);border-radius:999px;padding:.25rem .42rem;cursor:pointer}.message-actions button:hover{transform:translateY(-1px);opacity:1}.reaction-summary{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.25rem}.reaction-summary span{background:rgba(0,0,0,.07);border-radius:999px;padding:.16rem .45rem;font-size:.82rem}.chat-message.mine .message-actions button{background:rgba(255,255,255,.9)}

/* V88 — widget anti-robot moderne */
.human-verification{border:1px solid #d9e5ef;border-radius:16px;padding:18px;background:#f8fbfd}
.recaptcha-wrap{display:flex;justify-content:flex-start;align-items:center;min-height:82px;margin:10px 0;overflow-x:auto}
.g-recaptcha{transform-origin:left top}
@media (max-width:380px){.g-recaptcha{transform:scale(.88);margin-bottom:-10px}}

/* V92 — Messagerie professionnelle et accès direct */
.chat-portal-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 30px;margin-bottom:18px;border-radius:24px;background:linear-gradient(135deg,#063e68,#0781b5);color:#fff;box-shadow:0 16px 40px rgba(5,66,111,.18)}
.chat-portal-hero h1{margin:4px 0 6px;font-size:clamp(28px,4vw,42px)}.chat-portal-hero p{margin:0;opacity:.9}.chat-portal-hero .eyebrow{color:#bdefff}.chat-portal-hero .btn{background:#fff;color:#07568e}
.chat-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.chat-channel-card{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #cfe3ef;border-radius:20px;background:#fff;text-decoration:none;color:#092f4d;box-shadow:0 10px 24px rgba(10,66,100,.08);transition:.2s}.chat-channel-card:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(10,66,100,.14)}.chat-channel-card.province{background:linear-gradient(135deg,#fff,#f0fbff)}.chat-channel-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:#e4f5fc;font-size:27px}.chat-channel-card div{display:flex;flex-direction:column;gap:3px;flex:1}.chat-channel-card small{color:#517083}.chat-channel-card strong{font-size:18px}.chat-channel-card em{font-style:normal;font-size:13px;color:#668093}.chat-channel-card>b{font-size:28px;color:#0a7fb4}
.chat-layout-professional{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px}.chat-compose-panel,.chat-conversation-panel{border-radius:22px}.professional-form{display:grid;gap:12px}.professional-form label{display:grid;gap:7px;font-weight:700}.professional-form select,.professional-form input,.chat-search input{width:100%;min-height:46px;border:1px solid #c8dce8;border-radius:12px;padding:10px 12px;background:#fff}.professional-form select[multiple]{min-height:190px}.wide{width:100%;justify-content:center}.chat-divider{display:flex;align-items:center;gap:10px;margin:18px 0;color:#718797}.chat-divider:before,.chat-divider:after{content:"";height:1px;flex:1;background:#d9e6ed}.group-creator summary{cursor:pointer;font-weight:800;color:#07568e;padding:12px;border-radius:12px;background:#eef8fc}.group-creator[open] summary{margin-bottom:14px}.chat-list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.chat-list-head h2{margin-bottom:2px}.chat-list-head small{color:#6a8292}.chat-search{display:flex;gap:8px;min-width:260px}.chat-list-professional{display:grid;gap:10px;margin-top:18px}.chat-list-row.professional{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #dbe8ef;border-radius:16px;background:#fbfdff}.chat-list-item{display:flex;align-items:center;gap:12px;flex:1;padding:8px;text-decoration:none;color:#092f4d}.chat-list-item>span:last-child{display:flex;flex-direction:column;gap:4px}.chat-avatar{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#e7f5fb;font-size:22px}.unread-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:7px;padding:0 6px;border-radius:999px;background:#ef3d4d;color:#fff}.chat-row-actions{display:flex;gap:4px}.chat-row-actions form{display:flex}.icon-btn{border:0;background:#eef6fa;border-radius:9px;padding:8px;cursor:pointer}.icon-btn.danger{background:#fff0f1}.chat-empty{text-align:center;padding:45px 20px;color:#718797}.chat-empty span{font-size:42px;display:block}.chat-empty strong{display:block;color:#173f59;font-size:18px;margin:8px}
.dashboard-chat-widget{display:grid;grid-template-columns:1.4fr auto;gap:20px;margin:20px 0;padding:22px;border-radius:22px;background:linear-gradient(135deg,#072f50,#087ba9);color:#fff;box-shadow:0 16px 38px rgba(5,66,111,.18)}.dashboard-chat-main{display:flex;align-items:center;gap:16px}.chat-live-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:rgba(255,255,255,.14);font-size:30px}.dashboard-chat-main h2{margin:2px 0 4px}.dashboard-chat-main p{margin:0;opacity:.88}.dashboard-chat-main .eyebrow{color:#aee9ff}.dashboard-chat-status{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:9px;text-align:right}.dashboard-chat-status strong{font-size:30px}.dashboard-chat-status small{opacity:.8}.dashboard-chat-status .btn{grid-column:1/-1;margin-top:8px;background:#fff;color:#07568e}.dashboard-chat-recent{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.dashboard-chat-recent a{display:flex;align-items:center;gap:9px;padding:11px;border-radius:13px;background:rgba(255,255,255,.1);color:#fff;text-decoration:none}.dashboard-chat-recent a div{display:flex;flex-direction:column;min-width:0;flex:1}.dashboard-chat-recent a strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-chat-recent a small{opacity:.75}
@media(max-width:900px){.chat-layout-professional{grid-template-columns:1fr}.chat-channel-grid{grid-template-columns:1fr}.dashboard-chat-recent{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.chat-portal-hero{align-items:flex-start;flex-direction:column;padding:20px}.chat-list-head{align-items:stretch;flex-direction:column}.chat-search{min-width:0;width:100%}.dashboard-chat-widget{grid-template-columns:1fr}.dashboard-chat-status{text-align:left;grid-template-columns:auto 1fr}.dashboard-chat-recent{grid-template-columns:1fr}.chat-list-row.professional{align-items:flex-start}.chat-row-actions{flex-direction:column}.chat-channel-card{padding:15px}}
/* V93 — chat professionnel */
.chat-room-shell{max-width:1500px;margin:0 auto}.chat-room-header{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 22px;margin-bottom:16px;border-radius:22px;background:linear-gradient(135deg,#073e70,#0b8fc2);color:#fff;box-shadow:0 16px 36px rgba(3,67,110,.18)}.chat-room-identity{display:flex;gap:15px;align-items:center}.chat-room-avatar{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:rgba(255,255,255,.18);font-size:30px}.chat-room-header h1{margin:0;font-size:clamp(24px,3vw,38px);line-height:1.1;overflow-wrap:anywhere}.chat-room-header p,.chat-room-header small{display:block;margin:4px 0 0;color:#e7f7ff}.chat-room-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.chat-panel{min-height:680px;display:flex;flex-direction:column;padding:0;overflow:hidden;border-radius:24px}.chat-messages{flex:1;min-height:500px;max-height:68vh;overflow:auto;padding:26px;background:linear-gradient(#f7fbfe,#eef6fb)}.chat-message{max-width:76%;margin:0 0 16px;padding:13px 16px;border-radius:18px 18px 18px 5px;background:#fff;box-shadow:0 5px 18px rgba(6,63,99,.08);overflow-wrap:anywhere}.chat-message.mine{margin-left:auto;border-radius:18px 18px 5px 18px;background:#dff5ff}.chat-message header{display:flex;justify-content:space-between;gap:14px;margin-bottom:7px}.chat-message img,.chat-message video{max-width:100%;border-radius:14px;margin-top:8px}.chat-compose{position:sticky;bottom:0;padding:16px 18px;background:#fff;border-top:1px solid #dbe8ef}.chat-compose textarea{width:100%;min-height:78px;resize:vertical;border:1px solid #bcd4e2;border-radius:16px;padding:14px;font-size:16px}.chat-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:10px}.chat-room-sidebar{display:grid;gap:18px;align-content:start}.chat-room-sidebar .card{border-radius:22px;padding:18px}.side-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.side-title h2{margin:0}.side-title span{background:#e5f4fb;border-radius:999px;padding:5px 10px;font-weight:800}.member-chip-list{display:grid;gap:9px;max-height:240px;overflow:auto;margin-bottom:15px}.member-chip{display:flex;gap:10px;align-items:center;padding:8px;border-radius:13px;background:#f4f9fc}.member-chip>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#0c7faf;color:white;font-weight:800}.member-chip div{display:flex;flex-direction:column;min-width:0}.member-chip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact{gap:9px}.compact input,.compact select,.compact textarea{font-size:14px}.meeting-list{display:grid;gap:8px;margin-top:14px}.meeting-list article{padding:10px;border-left:4px solid #0b8fc2;background:#f3f9fc;border-radius:9px}.meeting-list small{display:block;color:#627b8b;margin-top:3px}.chat-empty-state{text-align:center;padding:90px 20px;color:#6b8190}.chat-empty-state span{font-size:50px}.chat-empty-state h3{color:#173f59}.message-actions{opacity:.65}.chat-message:hover .message-actions{opacity:1}
@media(max-width:1050px){.chat-room-grid{grid-template-columns:1fr}.chat-room-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-messages{max-height:60vh}}
@media(max-width:700px){.chat-room-header{align-items:flex-start;flex-direction:column}.chat-header-actions{width:100%;display:flex}.chat-header-actions>*{flex:1}.chat-room-sidebar{grid-template-columns:1fr}.chat-message{max-width:90%}.chat-messages{padding:14px}.chat-tools .btn{padding:10px 12px}.chat-panel{min-height:620px}}

/* V94 — espace membre complet */
.member-account-overview{margin:1rem 0}.member-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.member-account-grid>div{padding:16px;border:1px solid #d7e6f4;border-radius:16px;background:linear-gradient(145deg,#fff,#f5faff);display:flex;flex-direction:column;gap:6px;min-width:0}.member-account-grid small{color:#60758a}.member-account-grid strong{overflow-wrap:anywhere;color:#0b3155}.member-meeting-list{display:grid;gap:10px}.member-meeting-list>a{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid #d9e7f3;border-radius:15px;text-decoration:none;color:inherit;background:#fff}.member-meeting-list>a:hover{box-shadow:0 8px 24px rgba(8,62,105,.10);transform:translateY(-1px)}.member-meeting-list p{margin:4px 0 0;color:#5f7182}.member-quick-actions{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
@media(max-width:760px){.member-account-grid{grid-template-columns:1fr}.member-hero{padding:18px}.member-identity{align-items:flex-start}.member-stats{grid-template-columns:1fr 1fr}.member-quick-actions{grid-template-columns:1fr 1fr!important}.member-account-overview,.member-meetings-card{border-radius:18px}}
@media(max-width:480px){.member-stats,.member-quick-actions{grid-template-columns:1fr!important}}

/* V94 — espace membre complet */
.member-account-overview{margin:1rem 0}.member-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.member-account-grid>div{padding:16px;border:1px solid #d7e6f4;border-radius:16px;background:linear-gradient(145deg,#fff,#f5faff);display:flex;flex-direction:column;gap:6px;min-width:0}.member-account-grid small{color:#60758a}.member-account-grid strong{overflow-wrap:anywhere;color:#0b3155}.member-meeting-list{display:grid;gap:10px}.member-meeting-list>a{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid #d9e7f3;border-radius:15px;text-decoration:none;color:inherit;background:#fff}.member-meeting-list>a:hover{box-shadow:0 8px 24px rgba(8,62,105,.10);transform:translateY(-1px)}.member-meeting-list p{margin:4px 0 0;color:#5f7182}.member-quick-actions{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
@media(max-width:760px){.member-account-grid{grid-template-columns:1fr}.member-hero{padding:18px}.member-identity{align-items:flex-start}.member-stats{grid-template-columns:1fr 1fr}.member-quick-actions{grid-template-columns:1fr 1fr!important}.member-account-overview,.member-meetings-card{border-radius:18px}}
@media(max-width:480px){.member-stats,.member-quick-actions{grid-template-columns:1fr!important}}

/* V94 — espace membre complet */
.member-account-overview{margin:1rem 0}.member-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.member-account-grid>div{padding:16px;border:1px solid #d7e6f4;border-radius:16px;background:linear-gradient(145deg,#fff,#f5faff);display:flex;flex-direction:column;gap:6px;min-width:0}.member-account-grid small{color:#60758a}.member-account-grid strong{overflow-wrap:anywhere;color:#0b3155}.member-meeting-list{display:grid;gap:10px}.member-meeting-list>a{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid #d9e7f3;border-radius:15px;text-decoration:none;color:inherit;background:#fff}.member-meeting-list>a:hover{box-shadow:0 8px 24px rgba(8,62,105,.10);transform:translateY(-1px)}.member-meeting-list p{margin:4px 0 0;color:#5f7182}.member-quick-actions{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
@media(max-width:760px){.member-account-grid{grid-template-columns:1fr}.member-hero{padding:18px}.member-identity{align-items:flex-start}.member-stats{grid-template-columns:1fr 1fr}.member-quick-actions{grid-template-columns:1fr 1fr!important}.member-account-overview,.member-meetings-card{border-radius:18px}}
@media(max-width:480px){.member-stats,.member-quick-actions{grid-template-columns:1fr!important}}


/* V96 — Connexion institutionnelle et gestion professionnelle des numéros */
.auth-premium-shell{max-width:1180px;margin:34px auto;display:grid;grid-template-columns:1.08fr .92fr;min-height:680px;border-radius:30px;overflow:hidden;background:#fff;box-shadow:0 28px 80px rgba(4,35,62,.20);border:1px solid rgba(9,76,125,.12)}
.auth-premium-brand{position:relative;padding:58px 60px;color:#fff;background:radial-gradient(circle at 15% 8%,rgba(31,187,214,.30),transparent 32%),linear-gradient(145deg,#042b50 0%,#075b8e 58%,#087b78 100%);display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.auth-premium-brand:after{content:"";position:absolute;right:-110px;bottom:-130px;width:360px;height:360px;border:1px solid rgba(255,255,255,.15);border-radius:50%;box-shadow:0 0 0 50px rgba(255,255,255,.04),0 0 0 100px rgba(255,255,255,.025)}
.auth-home-link{position:absolute;top:28px;left:34px;color:#fff;text-decoration:none;font-weight:750;opacity:.9;z-index:2}.auth-home-link:hover{opacity:1;text-decoration:underline}
.auth-emblem-wrap{width:150px;height:150px;border-radius:30px;background:rgba(255,255,255,.96);display:grid;place-items:center;padding:14px;box-shadow:0 18px 42px rgba(0,0,0,.22);margin-bottom:24px;z-index:1}.auth-emblem-wrap img{max-width:100%;max-height:100%;object-fit:contain}
.auth-kicker{display:inline-flex;align-self:flex-start;padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(0,25,50,.22);font-weight:800;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;z-index:1}
.auth-premium-brand h1{font-size:clamp(2.3rem,4vw,4rem);line-height:1.02;margin:16px 0 14px;max-width:650px;z-index:1}.auth-intro{font-size:1.08rem;line-height:1.7;max-width:600px;color:rgba(255,255,255,.9);z-index:1}
.auth-trust-grid{display:grid;gap:12px;margin:26px 0;z-index:1}.auth-trust-grid>div{display:flex;gap:13px;align-items:center;padding:13px 15px;border-radius:16px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13)}.auth-trust-grid b{font-size:1.35rem}.auth-trust-grid span{display:grid}.auth-trust-grid strong{font-size:.98rem}.auth-trust-grid small{color:rgba(255,255,255,.75);margin-top:2px}.auth-official-note{font-size:.8rem;letter-spacing:.04em;color:rgba(255,255,255,.72);z-index:1}
.auth-premium-card{padding:62px 58px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(180deg,#fff,#f8fbfe)}.auth-card-heading{display:flex;gap:16px;align-items:flex-start;margin-bottom:28px}.auth-card-heading small{font-weight:850;text-transform:uppercase;letter-spacing:.1em;color:#08758c}.auth-card-heading h2{font-size:2.4rem;margin:3px 0 4px;color:#083a62}.auth-card-heading p{margin:0;color:#667b8f}.auth-shield{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(135deg,#e9f7ff,#def8ef);color:#087d6e;font-size:1.45rem;font-weight:900;box-shadow:inset 0 0 0 1px rgba(7,103,133,.12)}
.auth-premium-form{display:grid;gap:10px}.auth-premium-form>label:not(.auth-remember){font-weight:800;color:#183f61;margin-top:6px}.auth-input{min-height:58px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;border:1px solid #cad9e6;border-radius:16px;background:#fff;padding:0 12px;box-shadow:0 5px 14px rgba(10,64,100,.04);transition:.2s}.auth-input:focus-within{border-color:#0b75a6;box-shadow:0 0 0 4px rgba(11,117,166,.11)}.auth-input input{border:0!important;background:transparent!important;box-shadow:none!important;min-width:0;padding:14px 4px!important}.auth-password-toggle{border:0;background:#eef6fb;color:#0a5a86;border-radius:10px;padding:8px 10px;font-weight:750;cursor:pointer}.auth-remember{display:flex!important;align-items:center;gap:9px;margin:5px 0 8px!important;color:#536b7f;font-size:.9rem}.auth-remember input{width:18px;height:18px}.auth-submit{min-height:56px;border-radius:15px!important;font-size:1rem;display:flex!important;justify-content:center;gap:12px;align-items:center;background:linear-gradient(90deg,#075e99,#078a82)!important;box-shadow:0 13px 28px rgba(6,101,137,.22)}
.auth-actions{display:flex;justify-content:space-between;gap:15px;padding:19px 0;border-bottom:1px solid #e0e9f0}.auth-actions a{font-weight:800;color:#075f96;text-decoration:none}.auth-actions a:hover{text-decoration:underline}.auth-security-line{display:flex;gap:11px;margin-top:18px;padding:14px;border-radius:14px;background:#eef6fb;color:#4c6579}.auth-security-line p{margin:0;font-size:.84rem;line-height:1.55}
.renumber-toolbar,.renumber-confirm{display:flex;justify-content:space-between;gap:24px;align-items:center}.renumber-toolbar label{font-weight:800}.renumber-toolbar select{min-width:320px}.renumber-rules{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.renumber-rules span{padding:7px 10px;border-radius:999px;background:#eef6fb;color:#315a75;font-size:.82rem}.number-pill{display:inline-block;min-width:72px;text-align:center;padding:7px 12px;border-radius:999px;background:#073f6c;color:#fff;letter-spacing:.08em}.renumber-confirm{border-left:5px solid #0b8d81}.renumber-confirm h2{margin:0 0 5px}.renumber-confirm p{margin:0;color:#5e7284;max-width:780px}
@media(max-width:900px){.auth-premium-shell{grid-template-columns:1fr;margin:14px;min-height:0}.auth-premium-brand{padding:80px 30px 34px}.auth-emblem-wrap{width:115px;height:115px}.auth-trust-grid{grid-template-columns:1fr}.auth-premium-card{padding:36px 28px}.renumber-toolbar,.renumber-confirm{align-items:stretch;flex-direction:column}.renumber-toolbar select{min-width:0;width:100%}}
@media(max-width:520px){.auth-premium-shell{margin:6px;border-radius:20px}.auth-premium-brand{padding:72px 20px 28px}.auth-premium-brand h1{font-size:2rem}.auth-intro{font-size:.96rem}.auth-trust-grid>div{padding:10px}.auth-premium-card{padding:28px 18px}.auth-card-heading h2{font-size:2rem}.auth-actions{flex-direction:column}.auth-home-link{left:20px;top:22px}}


/* ===== V101 — Accueil public épuré & préparation Centre de Santé ===== */
.public-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px clamp(12px,2vw,28px)!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 8px 24px rgba(15,63,105,.08);
}
.top-nav.public-nav a{
  padding:10px 13px;
  border-radius:12px;
  white-space:nowrap;
}
.top-nav.public-nav a.public-health-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:linear-gradient(135deg,#0d7a56 0%,#16a06f 100%);
  color:#fff!important;
  box-shadow:0 8px 18px rgba(13,122,86,.20);
  border:1px solid rgba(255,255,255,.18);
}
.top-nav.public-nav a.public-health-link:hover{
  background:linear-gradient(135deg,#096747 0%,#12895f 100%);
  color:#fff!important;
  transform:translateY(-1px);
}
.top-nav.public-nav a.public-health-link span{
  width:22px;height:22px;border-radius:7px;display:inline-grid;place-items:center;
  background:rgba(255,255,255,.16);font-weight:900;
}
.top-nav.public-nav .public-login-link{
  background:#0f4f83;
  color:#fff!important;
  padding-inline:16px;
}
.top-nav.public-nav .public-login-link:hover{background:#0a3e69;color:#fff!important}
.public-language{min-width:112px}
.site-header.public-header{
  background:linear-gradient(120deg,#0c416f 0%,#106ca5 48%,#18a8c9 100%)!important;
}
.brand-block em{color:#fff3a6}
.public-footer .footer-map-link+br+small a{display:inline-block!important;margin-top:4px!important;color:#f4d94d!important;font-weight:800}
@media(max-width:1100px){
  .public-nav{justify-content:flex-start;overflow-x:auto;scrollbar-width:thin}
  .top-nav.public-nav a{flex:0 0 auto}
}
@media(max-width:780px){
  .public-nav{display:none!important}
  .public-nav.is-open{display:flex!important;flex-direction:column;align-items:stretch;overflow:visible;padding:12px!important}
  .top-nav.public-nav a,.top-nav.public-nav select{width:100%;text-align:left}
  .top-nav.public-nav a.public-health-link{justify-content:flex-start}
}

/* V102 — Porte d’entrée publique Centre de Santé */
.home-health-gateway{max-width:1180px;margin:26px auto;padding:24px 28px;border:1px solid #cfe5e1;border-radius:20px;background:linear-gradient(115deg,#eef9f7,#fff);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;box-shadow:0 10px 28px rgba(13,111,103,.08)}
.home-health-icon{width:58px;height:58px;border-radius:16px;background:#0d6f67;color:#fff;display:grid;place-items:center;font-size:34px}.home-health-copy h2{margin:.25rem 0 .35rem;color:#123d43}.home-health-copy p{margin:0;color:#667982;line-height:1.55}.home-health-copy .eyebrow{color:#0d6f67}@media(max-width:760px){.home-health-gateway{margin:18px 14px;grid-template-columns:auto 1fr;padding:20px}.home-health-gateway>.btn{grid-column:1/-1;width:100%}}
/* ===== V106 FOBAK CONNECT ===== */
.community-shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:calc(100vh - 180px);background:#f5f7fb;border:1px solid #dbe3ef;border-radius:26px;overflow:hidden;box-shadow:0 22px 55px rgba(20,43,77,.12)}
.community-rail{background:#182231;color:#dfe7f2;padding:22px 14px;display:flex;flex-direction:column;gap:22px}.community-brand{display:flex;gap:12px;align-items:center;padding:8px 10px}.community-brand>span{width:44px;height:44px;display:grid;place-items:center;background:#0b70c9;border-radius:14px;font-size:23px}.community-brand strong,.community-brand small{display:block}.community-brand small{color:#9cabbe}.community-rail nav{display:grid;gap:6px}.community-rail nav a{color:#cfd8e6;text-decoration:none;padding:11px 12px;border-radius:10px;display:flex;align-items:center;gap:9px;font-weight:700}.community-rail nav a:hover,.community-rail nav a.active{background:#2a3546;color:white}.community-rail nav a b{margin-left:auto;background:#ef4458;color:#fff;border-radius:20px;padding:2px 7px;font-size:.75rem}.community-rules{margin-top:auto;padding:14px;background:#222e3f;border-radius:13px}.community-rules strong,.community-rules small{display:block}.community-rules small{margin-top:6px;color:#9eacbf;line-height:1.5}.community-main{min-width:0}.community-topbar{padding:28px 30px 20px;background:white;border-bottom:1px solid #e6ebf2;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.community-topbar h1{font-size:clamp(1.65rem,3vw,2.35rem);margin:.2rem 0}.community-topbar p{margin:0;color:#617087}.community-search{display:flex;width:min(360px,100%);background:#f3f6fa;border:1px solid #dae3ef;border-radius:13px;overflow:hidden}.community-search input{border:0;background:transparent;padding:12px 14px;flex:1;min-width:0}.community-search button{border:0;background:#0b70c9;color:#fff;width:48px}.community-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px 30px}.community-channel-card{background:white;border:1px solid #e0e7f0;border-radius:17px;padding:16px;display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;text-decoration:none;color:#14243b;box-shadow:0 8px 20px rgba(31,54,88,.06)}.community-channel-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(31,54,88,.11)}.channel-symbol{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#eef6ff;font-size:21px}.community-channel-card small,.community-channel-card strong,.community-channel-card em{display:block}.community-channel-card small{color:#7c8ba0;text-transform:uppercase;font-size:.68rem;font-weight:800}.community-channel-card strong{margin:3px 0;font-size:1rem}.community-channel-card em{font-style:normal;color:#718098;font-size:.8rem}.scope-announcements .channel-symbol{background:#fff3e4}.scope-province .channel-symbol{background:#eefbf4}.community-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;padding:0 30px 30px}.community-conversations,.compose-card{background:#fff;border:1px solid #e0e7f0;border-radius:18px;padding:20px}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.section-heading h2{margin:2px 0}.soft-pill{background:#edf3fa;color:#52657c;border-radius:99px;padding:6px 10px;font-size:.8rem}.community-list{display:grid;gap:8px}.community-row{display:flex;border:1px solid #edf0f5;border-radius:13px;padding:8px}.community-row>a{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none;color:#18263b;padding:6px}.community-avatar{width:42px;height:42px;border-radius:50%;background:#eaf2fb;display:grid;place-items:center}.community-row strong,.community-row small{display:block}.community-row small{color:#7c899a}.row-tools button{border:0;background:transparent;padding:8px;cursor:pointer}.community-compose{display:grid;align-content:start;gap:14px}.compose-card form{display:grid;gap:12px}.compose-card label{display:grid;gap:6px;font-weight:700}.compose-card input,.compose-card select{width:100%;padding:11px;border:1px solid #d4deea;border-radius:10px;background:#fff}.compose-card select[multiple]{min-height:160px}.eyebrow{color:#0b70c9;font-size:.72rem;font-weight:900;letter-spacing:.11em}.community-empty{text-align:center;padding:44px 20px;color:#77869a}
.chat-room-shell.discord-inspired{background:#f4f6fa;border-radius:24px;padding:0;overflow:hidden;border:1px solid #dfe5ef}.chat-room-header.pro{margin:0;border-radius:0;background:#fff;border-bottom:1px solid #e3e8ef;padding:16px 20px}.chat-discord-grid{display:grid;grid-template-columns:235px minmax(0,1fr) 290px;min-height:680px}.chat-channel-sidebar{background:#202938;color:#d4deeb;padding:14px 9px;overflow:auto}.channel-sidebar-title{padding:10px 12px 15px;border-bottom:1px solid #344052}.channel-sidebar-title strong,.channel-sidebar-title small{display:block}.channel-sidebar-title small{color:#8fa0b6}.chat-channel-sidebar nav{display:grid;gap:4px;margin-top:10px}.chat-channel-sidebar nav a{color:#c7d0dc;text-decoration:none;border-radius:8px;padding:9px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;align-items:center}.chat-channel-sidebar nav a:hover,.chat-channel-sidebar nav a.active{background:#343f50;color:#fff}.chat-channel-sidebar nav strong,.chat-channel-sidebar nav small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-channel-sidebar nav small{font-size:.68rem;color:#8f9caf}.chat-discord-grid .chat-panel{border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;min-width:0;background:#fff}.chat-discord-grid .chat-messages{flex:1;min-height:500px;max-height:none;padding:22px;overflow-y:auto}.chat-message{max-width:78%;border-radius:15px;padding:11px 13px;margin-bottom:12px;background:#f0f3f7}.chat-message.mine{margin-left:auto;background:#e4f1ff}.chat-message header{display:flex;gap:10px;justify-content:space-between}.chat-message p{margin:5px 0;line-height:1.5}.chat-message img,.chat-message video{max-width:min(480px,100%);border-radius:13px;margin-top:7px}.message-actions{opacity:.45}.chat-message:hover .message-actions{opacity:1}.chat-compose{position:sticky;bottom:0;background:#fff;border-top:1px solid #e3e8ef;padding:12px 16px}.chat-compose textarea{width:100%;border:1px solid #d9e1eb;border-radius:14px;padding:12px 14px;resize:none;background:#f7f9fc}.chat-tools{display:flex;gap:7px;align-items:center;margin-top:8px}.chat-room-sidebar{background:#f8fafc;border-left:1px solid #e3e8ef;padding:12px;overflow:auto}.member-chip-list{display:grid;gap:8px}.member-chip{display:flex;gap:9px;align-items:center}.member-chip>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dceaf8;font-weight:800}.member-chip strong,.member-chip small{display:block}.member-chip small{color:#7b8999}.reaction-summary span{display:inline-block;background:#fff;border:1px solid #d9e0e9;border-radius:99px;padding:2px 7px;margin:3px;font-size:.78rem}
@media(max-width:1050px){.community-featured{grid-template-columns:1fr}.community-content-grid{grid-template-columns:1fr}.chat-discord-grid{grid-template-columns:190px minmax(0,1fr)}.chat-room-sidebar{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.community-rail{display:none}.community-shell{grid-template-columns:1fr}}
@media(max-width:720px){.community-topbar{padding:20px;display:block}.community-search{margin-top:14px}.community-featured,.community-content-grid{padding-left:14px;padding-right:14px}.chat-discord-grid{display:block}.chat-channel-sidebar{max-height:175px}.chat-channel-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-room-sidebar{display:block}.chat-room-header.pro{display:block}.chat-header-actions{margin-top:10px}.chat-message{max-width:92%}.chat-tools{flex-wrap:wrap}}

/* V107 — Profils photo dans FOBAK Connect / Communication Santé */
.community-avatar.profile-avatar,
.quick-profile-card img,
.quick-profile-card span,
.message-profile-photo,
.member-chip-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 44px;
  border: 2px solid rgba(26, 116, 174, .18);
  background: #eef6fb;
}
.community-avatar.profile-avatar { overflow:hidden; display:inline-grid; place-items:center; }
.community-avatar.profile-avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.message-profile-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:7px; }
.message-profile-row header { display:flex; flex-direction:column; gap:2px; min-width:0; }
.message-profile-row header strong { line-height:1.2; }
.avatar-fallback { display:inline-grid; place-items:center; font-weight:800; color:#0d4f79; }
.member-chip-photo { width:38px; height:38px; flex-basis:38px; }
.quick-profile-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:10px 0 14px; }
.quick-profile-card { border:1px solid #d8e5ee; background:#fff; border-radius:14px; padding:8px 5px; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; min-width:0; }
.quick-profile-card:hover { border-color:#1a8ac2; box-shadow:0 8px 22px rgba(13,79,121,.10); transform:translateY(-1px); }
.quick-profile-card img,.quick-profile-card span { width:48px; height:48px; flex-basis:48px; }
.quick-profile-card small { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; font-weight:700; }
@media (max-width:720px){ .quick-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.message-profile-photo{width:38px;height:38px;flex-basis:38px;} }
.application-identity{display:flex;flex-direction:column;gap:2px;margin-bottom:5px}.application-identity strong{color:#073f67}.application-identity span{font-size:.93rem;color:#40586a}

/* V108 — navigation publique mieux classée, Connexion dans la même ligne */
@media(min-width:781px){.top-nav.public-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:nowrap!important;padding:7px 12px!important;overflow:visible!important}.top-nav.public-nav a,.top-nav.public-nav .language-select{flex:0 0 auto!important;min-height:38px!important;padding:8px 10px!important;font-size:13px!important;white-space:nowrap!important}.top-nav.public-nav .public-login-link{order:initial!important;margin-left:2px!important}.top-nav.public-nav .public-language{max-width:112px!important}}
@media(min-width:1100px){.top-nav.public-nav a,.top-nav.public-nav .language-select{font-size:14px!important;padding:8px 12px!important}}

/* ===== V111 — Navigation mobile centrée et identité FOBAK entièrement visible ===== */
@media (max-width:820px){
  /* La barre mobile reste fixe, mais l'en-tête institutionnel participe au flux.
     Cela évite que le logo / le drapeau soient cachés derrière la barre. */
  body.public-layout{padding-top:62px!important;}
  body.public-layout>.site-header.public-header{
    position:relative!important;
    top:auto!important;
    z-index:15!important;
    width:100%!important;
    margin:0!important;
    border-radius:0!important;
    overflow:visible!important;
  }
  .site-header.public-header{
    grid-template-columns:72px minmax(0,1fr) 58px!important;
    min-height:82px!important;
    padding:10px 12px!important;
    gap:10px!important;
  }
  .site-header.public-header .logo-box{
    width:66px!important;
    height:62px!important;
    padding:4px!important;
    margin:0!important;
    overflow:visible!important;
  }
  .site-header.public-header .logo-box img{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    display:block!important;
  }
  .site-header.public-header .brand-block{
    min-width:0!important;
    text-align:center!important;
    overflow:visible!important;
  }
  .site-header.public-header .brand-block strong{
    display:block!important;
    font-size:17px!important;
    line-height:1.15!important;
    white-space:normal!important;
  }
  .site-header.public-header .brand-block span,
  .site-header.public-header .brand-block em{
    display:block!important;
    font-size:10px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }
  .site-header.public-header .flag-real{
    display:flex!important;
    width:54px!important;
    height:40px!important;
    overflow:hidden!important;
  }
  .site-header.public-header .flag-real img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  /* Drawer : tous les choix suivent le même axe visuel. */
  .public-nav.is-open{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:6px!important;
    padding:76px 12px 20px!important;
    overflow-y:auto!important;
  }
  .top-nav.public-nav a,
  .public-nav a{
    width:100%!important;
    min-height:50px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    padding:11px 14px!important;
    margin:0!important;
    border-radius:13px!important;
  }
  .top-nav.public-nav a.public-health-link{
    justify-content:center!important;
    text-align:center!important;
    width:100%!important;
  }
  .top-nav.public-nav a.public-health-link span{
    flex:0 0 26px!important;
  }
  .public-nav .public-login-link{
    order:initial!important;
  }
  .public-nav .language-select{
    width:100%!important;
    min-height:50px!important;
    text-align:center!important;
    text-align-last:center!important;
    margin:2px 0 0!important;
  }

  /* Le premier contenu commence après l'identité, jamais sous celle-ci. */
  .public-content{
    position:relative!important;
    z-index:1!important;
    padding-top:14px!important;
  }
  .hero,
  .hero-fullwidth,
  .public-carousel,
  .home-carousel{
    margin-top:0!important;
  }
}

@media (max-width:480px){
  .site-header.public-header{
    grid-template-columns:62px minmax(0,1fr) 48px!important;
    min-height:76px!important;
    padding:8px 9px!important;
  }
  .site-header.public-header .logo-box{
    width:58px!important;
    height:54px!important;
  }
  .site-header.public-header .flag-real{
    display:flex!important;
    width:46px!important;
    height:34px!important;
  }
  .site-header.public-header .brand-block strong{font-size:15px!important;}
  .site-header.public-header .brand-block span,
  .site-header.public-header .brand-block em{font-size:9px!important;}
}

/* ===== V113 — Finition graphique générale : login, footer, flottants, version ===== */
:root{
  --fobak-radius-card:20px;
  --fobak-radius-control:13px;
  --fobak-shadow-soft:0 12px 34px rgba(7,55,91,.10);
}

/* Footer : structure plus compacte et lisible */
.app-footer.dashboard-style-footer{
  gap:22px!important;
  padding:26px 30px 50px!important;
}
.app-footer .footer-about{gap:9px!important}
.app-footer .footer-about p{margin:0!important;max-width:38rem}
.app-footer .footer-logo{
  width:82px!important;height:82px!important;border-radius:18px!important;
  border:1px solid rgba(255,255,255,.34)!important;
  background:rgba(255,255,255,.10)!important;padding:6px!important;
}
.app-footer .footer-logo img{object-fit:contain!important;border-radius:12px!important}
.footer-contacts{display:flex;flex-direction:column;gap:10px}
.footer-contacts h3{margin-bottom:4px!important}
.footer-contact-row{display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start}
.footer-contact-row>span{line-height:1.45;text-align:center}
.footer-contact-row a,.footer-contact-row .footer-address-text{display:block!important;margin:0!important;line-height:1.48!important;color:#eef7ff!important;text-decoration:none!important;overflow-wrap:anywhere}
.footer-action-link{color:#ffe35a!important;font-weight:800!important;margin-top:3px!important;text-decoration:none!important}
.footer-action-link:hover{text-decoration:underline!important}
.footer-site-link:after{content:"  ↗";font-weight:900}
.app-footer .socials{gap:8px!important;margin-top:4px!important}
.app-footer .socials a{
  width:38px!important;height:38px!important;background:rgba(255,255,255,.14)!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.28)!important;
  box-shadow:none!important;font-size:15px!important;
}
.app-footer .socials a:hover{background:#fff!important;color:#0b4f86!important;transform:translateY(-1px)}
.app-footer .footer-bottom{padding:10px 14px!important;font-size:12px!important;line-height:1.35!important}

/* Contrôles flottants : ne couvrent plus le footer ni les champs */
.install-pwa-button,.floating-help{transition:opacity .18s ease,transform .18s ease,visibility .18s ease!important}
body.floating-controls-hidden .install-pwa-button,
body.floating-controls-hidden .floating-help,
body.floating-controls-input-active .install-pwa-button,
body.floating-controls-input-active .floating-help{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(12px) scale(.94)!important;
}

/* Login : hiérarchie plus sobre et champs unifiés */
.auth-premium-shell{border-radius:24px!important;box-shadow:0 22px 60px rgba(4,35,62,.15)!important}
.auth-premium-brand{padding:46px 48px!important}
.auth-premium-brand h1{font-size:clamp(2rem,3.2vw,3.2rem)!important}
.auth-premium-card{padding:48px 46px!important}
.auth-card-heading{margin-bottom:20px!important}
.auth-card-heading h2{font-size:2.05rem!important}
.auth-input{
  min-height:54px!important;grid-template-columns:34px minmax(0,1fr) auto!important;
  border:1px solid #c8d8e5!important;border-radius:var(--fobak-radius-control)!important;
  padding:0 10px!important;background:#fff!important;overflow:hidden!important;
}
.auth-input>span{display:grid;place-items:center;font-size:19px}
.auth-input input{
  width:100%!important;min-width:0!important;min-height:52px!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  background:transparent!important;padding:10px 8px!important;margin:0!important;
  font-size:16px!important;color:#163b5c!important;
}
.auth-input input::placeholder{color:#7b8793!important;opacity:1!important}
.auth-password-toggle{
  width:42px!important;height:42px!important;display:grid!important;place-items:center!important;
  padding:0!important;border-radius:10px!important;font-size:19px!important;line-height:1!important;
  background:#eef6fb!important;color:#0a5a86!important;
}
.auth-remember{align-items:flex-start!important;font-size:.92rem!important;line-height:1.35!important}
.auth-remember span{display:grid;gap:2px}
.auth-remember strong{font-size:.94rem;color:#27465f}
.auth-remember small{font-size:.78rem;color:#708193}
.auth-submit{min-height:50px!important;border-radius:13px!important;font-size:.98rem!important}
.auth-actions{gap:14px!important}
.auth-actions a{font-size:.9rem!important;font-weight:750!important}
.auth-security-line{font-size:.86rem!important}

/* Sur la page de connexion, l'action supérieure ne répète plus "Connexion" : base.html affiche Accueil. */
body.public-layout .public-content:has(.auth-premium-shell){padding-top:8px!important}

/* Mobile : formulaire d'abord, bloc institutionnel ensuite, pas de grand espace vide */
@media(max-width:900px){
  body.public-layout:has(.auth-premium-shell){background:#f3f7fb!important}
  body.public-layout .public-content:has(.auth-premium-shell){padding:8px 8px 22px!important;margin:0!important;min-height:0!important}
  .auth-premium-shell{display:flex!important;flex-direction:column!important;margin:6px auto!important;max-width:680px!important;border-radius:18px!important;min-height:0!important;overflow:hidden!important}
  .auth-premium-card{order:1!important;padding:24px 20px!important}
  .auth-premium-brand{order:2!important;padding:24px 20px!important;min-height:0!important;justify-content:flex-start!important}
  .auth-home-link{position:static!important;display:inline-flex!important;margin-bottom:14px!important;font-size:.9rem!important}
  .auth-emblem-wrap{width:84px!important;height:84px!important;margin:0 0 12px!important}
  .auth-premium-brand h1{font-size:1.75rem!important;margin:10px 0!important}
  .auth-intro{font-size:.94rem!important;line-height:1.5!important;margin-bottom:12px!important}
  .auth-trust-grid{grid-template-columns:1fr!important;gap:7px!important;margin-top:8px!important}
  .auth-trust-grid>div{padding:9px 10px!important;border-radius:12px!important}
  .auth-official-note{margin-top:12px!important;font-size:.77rem!important}
  .auth-card-heading{gap:12px!important;margin-bottom:18px!important}
  .auth-card-heading h2{font-size:1.75rem!important}
  .auth-card-heading p{font-size:.93rem!important;line-height:1.45!important}
  .auth-shield{width:46px!important;height:46px!important;border-radius:14px!important}
  .auth-premium-form{gap:8px!important}
  .auth-premium-form>label:not(.auth-remember){font-size:.93rem!important;margin-top:4px!important}
  .auth-actions{margin-top:12px!important;padding-top:12px!important;border-top:1px solid #e4ebf2!important}
}

@media(max-width:560px){
  /* Barre publique plus compacte */
  .public-mobile-bar{min-height:58px!important;padding:6px 10px!important;grid-template-columns:46px minmax(0,1fr) auto!important}
  body.public-layout{padding-top:58px!important}
  .public-menu-toggle{width:46px!important;height:46px!important;border-radius:14px!important}
  .public-mobile-brand{font-size:19px!important}
  .public-mobile-login{min-height:42px!important;padding:0 14px!important;border-radius:13px!important;font-size:14px!important}

  /* Footer public compact, sans effet "deuxième page" */
  .app-footer.dashboard-style-footer{
    width:100%!important;margin:18px 0 0!important;border-radius:20px 20px 0 0!important;
    padding:20px 16px 44px!important;gap:14px!important;
  }
  .app-footer.dashboard-style-footer:before{width:5px!important}
  .app-footer .footer-about{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:12px!important}
  .app-footer .footer-logo{width:72px!important;height:72px!important;margin:0!important}
  .app-footer .footer-about p{font-size:13.5px!important;line-height:1.45!important;margin:0!important}
  .footer-contacts{gap:8px!important}
  .app-footer h3{font-size:17px!important;margin-bottom:3px!important}
  .footer-contact-row{grid-template-columns:22px minmax(0,1fr)!important;gap:7px!important;font-size:13.5px!important}
  .footer-contact-row a,.footer-contact-row .footer-address-text{font-size:13.5px!important;line-height:1.42!important}
  .footer-action-link{font-size:13px!important}
  .app-footer .socials{gap:7px!important;margin-top:2px!important}
  .app-footer .socials a{width:34px!important;height:34px!important;font-size:13px!important}
  .app-footer .footer-bottom{font-size:10.5px!important;padding:8px 10px!important;white-space:normal!important}

  /* Flottants plus petits et plus proches du bord, sans chevauchement */
  .install-pwa-button,.floating-help{right:10px!important;width:46px!important;height:46px!important}
  .install-pwa-button{bottom:66px!important}
  .floating-help{bottom:14px!important}

  /* Login mobile : priorité à l'action */
  .auth-premium-shell{margin:4px 0!important;border-radius:16px!important}
  .auth-premium-card{padding:20px 16px!important}
  .auth-premium-brand{padding:20px 16px!important}
  .auth-card-heading h2{font-size:1.55rem!important}
  .auth-card-heading small{font-size:.72rem!important}
  .auth-card-heading p{font-size:.88rem!important}
  .auth-shield{width:42px!important;height:42px!important}
  .auth-input{min-height:50px!important;grid-template-columns:30px minmax(0,1fr) auto!important;padding:0 8px!important}
  .auth-input input{min-height:48px!important;padding:8px 6px!important;font-size:16px!important}
  .auth-password-toggle{width:38px!important;height:38px!important;font-size:17px!important}
  .auth-submit{min-height:48px!important;padding:10px 12px!important;font-size:.92rem!important}
  .auth-actions{display:flex!important;flex-direction:row!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important}
  .auth-actions a{font-size:.84rem!important}
}

/* Ordinateur : proportions régulières */
@media(min-width:901px){
  .auth-premium-shell{max-width:1120px!important;grid-template-columns:minmax(0,1fr) minmax(430px,.85fr)!important;margin:28px auto!important}
  .app-footer.dashboard-style-footer{max-width:1500px}
}

/* V118 — état hors ligne commun */
.fobak-offline-banner{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:99999;background:#0b3a66;color:#fff;padding:10px 16px;border-radius:999px;box-shadow:0 8px 28px rgba(0,0,0,.22);font-weight:800;font-size:.9rem;max-width:90vw;text-align:center}.fobak-offline-banner[hidden]{display:none!important}@media(max-width:600px){.fobak-offline-banner{bottom:10px;font-size:.82rem;padding:9px 12px}}

/* ===== V119 — installation et copie locale complète ===== */
.offline-v119{max-width:1180px;margin:24px auto;padding:clamp(18px,3vw,34px)}
.offline-status-box{margin:18px 0;padding:16px 18px;border:1px solid rgba(11,58,102,.16);border-radius:16px;background:rgba(11,58,102,.05);line-height:1.55}
.offline-unlock-grid{display:grid;grid-template-columns:minmax(240px,420px) 1fr;gap:14px;align-items:end;margin:16px 0}
.offline-unlock-grid label,.offline-install-prep label{display:grid;gap:7px;font-weight:700}
.offline-unlock-grid input,.offline-install-prep input,.offline-search-label input{width:100%;min-height:46px;padding:10px 14px;border:1px solid #cbd7e2;border-radius:12px;background:#fff;color:#142f43}
.offline-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:10px!important;font-weight:600!important}
.offline-check input{width:18px!important;min-height:18px!important;height:18px;margin:0}
.offline-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.offline-import-label{cursor:pointer}
.offline-local-browser{margin-top:22px;border-top:1px solid rgba(11,58,102,.12);padding-top:20px}
.offline-search-label{display:grid;gap:7px;max-width:760px;font-weight:700;margin:10px 0 18px}
.offline-tables-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.offline-table-card{border:1px solid #dbe5ec;border-radius:16px;padding:14px;background:#fff;min-width:0}
.offline-table-card h3{display:flex;justify-content:space-between;gap:10px;margin:0 0 10px;text-transform:capitalize}
.offline-table-card h3 span{font-size:.78em;background:#eef5f8;padding:3px 9px;border-radius:999px}
.offline-local-row{display:grid;grid-template-columns:auto 1fr;gap:9px;padding:9px 0;border-top:1px solid #edf2f5;min-width:0}
.offline-local-row span{overflow-wrap:anywhere;font-size:.92rem;line-height:1.35}
.offline-locked{padding:18px;border:1px dashed #a9bdca;border-radius:14px;background:#f8fbfc;grid-column:1/-1}
.offline-security-note{margin-top:18px;padding:14px 16px;border-left:4px solid #0b6fae;background:#f3f8fb;border-radius:10px;line-height:1.5}
.installer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.installer-card{position:relative;overflow:hidden}
.installer-icon{font-size:2.5rem;margin-bottom:8px}
.installer-card ol{padding-left:20px;line-height:1.55}
.offline-install-prep{display:grid;gap:10px;margin-top:14px;padding:14px;border-radius:14px;background:#f7fafb;border:1px solid #dde7ed}
@media(max-width:760px){
  .offline-unlock-grid,.installer-grid,.offline-tables-grid{grid-template-columns:1fr}
  .offline-actions .btn,.offline-import-label{width:100%;justify-content:center;text-align:center}
  .offline-v119{margin:10px 0;border-radius:16px}
}
@media print{.installer-hero,.offline-actions,.offline-unlock-grid,.offline-search-label{display:none!important}}


/* =========================================================
   CEN V121 — IDENTITE VISUELLE CLUB ELIE NKUMBI
   Palette extraite du logo : bleu, cyan, vert, orange et noir.
   Les modules restent inchangés ; seule la présentation est refondue.
   ========================================================= */
:root{
  --cen-navy:#173f5f; --cen-blue:#175b85; --cen-royal:#2479b4; --cen-cyan:#2ca8d4;
  --cen-green:#128a43; --cen-green-dark:#0d6d39; --cen-orange:#f2a51f; --cen-yellow:#ffbd3b;
  --cen-black:#111827; --cen-ink:#163247; --cen-muted:#64748b; --cen-bg:#f4f8fb;
  --cen-line:#d9e5ec; --cen-soft:#eef7fb; --cen-white:#fff;
  --blue:var(--cen-blue); --gold:var(--cen-orange); --red:#c43d45; --ink:var(--cen-ink); --muted:var(--cen-muted); --bg:var(--cen-bg); --card:#fff;
  --header-gradient:linear-gradient(118deg,#0f3857 0%,#175b85 47%,#2479b4 73%,#2ca8d4 100%);
  --footer-gradient:linear-gradient(118deg,#102f49 0%,#173f5f 62%,#0e5f52 100%);
  --shadow:0 18px 46px rgba(23,63,95,.13);
}
html{background:var(--cen-bg)}
body{background:
  radial-gradient(circle at 9% 7%,rgba(44,168,212,.08),transparent 26%),
  radial-gradient(circle at 92% 18%,rgba(242,165,31,.08),transparent 24%),
  var(--cen-bg);color:var(--cen-ink)}
body.has-watermark:before{opacity:.025!important;filter:none!important}
a{accent-color:var(--cen-blue)}
.site-header,.workspace-topbar{background:var(--header-gradient)!important;border-bottom:3px solid var(--cen-orange)!important;box-shadow:0 10px 26px rgba(16,47,73,.18)!important}
.brand-block strong{font-weight:900;letter-spacing:.075em}.brand-block span{letter-spacing:.055em}
.logo-box,.side-logo,.footer-logo{background:#fff!important;border:2px solid rgba(255,255,255,.98)!important;box-shadow:0 7px 18px rgba(0,0,0,.14)!important}
.logo-box img,.side-logo img,.footer-logo img{object-fit:contain!important;padding:2px}
.top-nav.public-nav{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px);border-bottom:1px solid var(--cen-line)!important}
.top-nav.public-nav a{color:var(--cen-navy)!important;border-radius:12px!important}.top-nav.public-nav a:hover{background:#eaf6fb!important;color:var(--cen-blue)!important}
.side-dashboard{background:linear-gradient(180deg,#102f49 0%,#173f5f 52%,#0e554c 100%)!important;border-right:0!important;box-shadow:14px 0 38px rgba(12,43,66,.14)!important}
.side-brand{border-bottom:1px solid rgba(255,255,255,.13)!important}.side-brand strong{letter-spacing:.04em}
.side-menu a,.side-menu summary{border-radius:12px!important}.side-menu a:hover,.side-menu summary:hover{background:rgba(255,255,255,.095)!important}.side-menu a.active{background:linear-gradient(90deg,rgba(44,168,212,.26),rgba(255,189,59,.16))!important;border-left:4px solid var(--cen-orange)!important;color:#fff!important}
.menu-badge{background:var(--cen-orange)!important;color:#142b3a!important}
.side-menu-search{background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.14)!important}.side-menu-search input{color:#fff!important}.side-menu-search input::placeholder{color:rgba(255,255,255,.65)!important}
.card,.mobile-card,.adhesion-paper,.dashboard-panel,.kpi-card,.admin-shortcut,.activity-card,.auth-card{border:1px solid var(--cen-line)!important;box-shadow:0 14px 38px rgba(23,63,95,.09)!important;border-radius:22px!important}
.card:hover,.admin-shortcut:hover,.activity-card:hover{border-color:#b9d5e4!important}
.section-title,.form-title,.section-line,.card h1,.card h2{color:var(--cen-navy)}
.section-line{border-bottom-color:#c8dde8!important}
.btn{font-weight:850!important;border-radius:13px!important;transition:.18s ease!important}
.btn.primary{background:linear-gradient(135deg,var(--cen-orange),var(--cen-yellow))!important;color:#173044!important;box-shadow:0 9px 20px rgba(242,165,31,.22)!important}
.btn.primary:hover{filter:saturate(1.04) brightness(.99)!important;transform:translateY(-1px)!important}
.btn.light,.light-btn{background:#fff!important;color:var(--cen-blue)!important;border:1px solid #c9dce8!important}
.btn:not(.primary):not(.danger):hover{border-color:var(--cen-cyan)!important;background:#f2fbff!important}
.form input,.form select,.form textarea,.mobile-form input,.mobile-form select,.mobile-form textarea,.filters input,.filters select,.global-search-form input{
  border:1px solid #c9d9e3!important;border-left:4px solid #d5e6ee!important;border-radius:12px!important;background:#fff!important;min-height:47px!important;
}
.form input:focus,.form select:focus,.form textarea:focus,.mobile-form input:focus,.mobile-form select:focus,.mobile-form textarea:focus,.filters input:focus,.filters select:focus{
  border-color:var(--cen-cyan)!important;border-left-color:var(--cen-blue)!important;box-shadow:0 0 0 4px rgba(44,168,212,.13)!important
}
.form label,.mobile-form label{font-weight:780;color:#29465b!important}
.checkbox-grid,.photo-capture-widget,.form-section{background:#f8fbfd!important;border-color:#d7e5ec!important}
th{background:linear-gradient(180deg,#eff8fc,#e6f2f8)!important;color:var(--cen-navy)!important;border-color:#d5e3eb!important}td{border-color:#e1e9ee!important}tbody tr:hover{background:#f8fcfe!important}
.badge,.status-badge{border-radius:999px!important}
.flash.success{border-left-color:var(--cen-green)!important}.flash.info{border-left-color:var(--cen-cyan)!important}
.app-footer.dashboard-style-footer,.fixed-footer{background:var(--footer-gradient)!important;border-top:4px solid var(--cen-orange)!important}
.app-footer.dashboard-style-footer a:hover{color:#ffd36a!important}

/* Accueil : composition premium inspirée des silhouettes multicolores du logo */
.public-carousel-compact{border-radius:24px!important;border:1px solid #d7e5ed!important;box-shadow:0 18px 50px rgba(23,63,95,.12)!important;overflow:hidden}
.carousel-fallback-slide{background:
  radial-gradient(circle at 18% 24%,rgba(18,138,67,.24),transparent 20%),
  radial-gradient(circle at 80% 24%,rgba(242,165,31,.25),transparent 22%),
  linear-gradient(118deg,#102f49,#175b85 52%,#2479b4)!important}
.carousel-fallback-logo img{background:#fff!important;border-radius:50%!important;padding:7px!important;box-shadow:0 18px 45px rgba(0,0,0,.22)!important}
.slide-message{background:linear-gradient(90deg,rgba(16,47,73,.94),rgba(23,91,133,.83))!important;border-left:5px solid var(--cen-orange)!important}
.welcome-hero{position:relative;overflow:hidden;background:linear-gradient(118deg,#fff 0%,#f4fbfe 57%,#eff9f4 100%)!important;border:1px solid #d5e6ee!important;border-radius:28px!important;box-shadow:var(--shadow)!important}
.welcome-hero:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-160px;top:-170px;background:conic-gradient(from 20deg,rgba(18,138,67,.16),rgba(44,168,212,.16),rgba(242,165,31,.17),rgba(18,138,67,.16));filter:blur(1px)}
.welcome-kicker,.eyebrow{color:var(--cen-green-dark)!important;font-weight:900!important;letter-spacing:.09em!important}
.welcome-copy h1{color:var(--cen-navy)!important;max-width:790px!important}.welcome-copy p{color:#536b7a!important}
.welcome-trust span{background:#fff!important;border:1px solid #d3e5ed!important;color:#355669!important;box-shadow:0 6px 16px rgba(23,63,95,.06)!important}
.welcome-visual{position:relative;z-index:2}.welcome-visual>img{background:#fff!important;padding:9px!important;border-radius:50%!important;box-shadow:0 20px 52px rgba(23,63,95,.18)!important;border:4px solid #fff!important}
.welcome-badge{background:#102f49!important;color:#fff!important;border:2px solid rgba(255,255,255,.9)!important;box-shadow:0 12px 28px rgba(16,47,73,.24)!important}.welcome-badge strong{color:#ffbd3b!important}
.home-intro-card,.home-health-gateway,.download-choice{border:1px solid #d6e5ec!important;box-shadow:0 12px 32px rgba(23,63,95,.075)!important}
.home-health-gateway{background:linear-gradient(110deg,#f8fcfe,#eef9f4)!important;border-left:6px solid var(--cen-green)!important}.home-health-icon{background:linear-gradient(135deg,var(--cen-green),#1ca95a)!important}
.download-app-section{background:linear-gradient(135deg,#102f49,#175b85 62%,#0f7765)!important;border-top:5px solid var(--cen-orange)!important}
.download-choice{background:rgba(255,255,255,.98)!important}.download-icon{background:#eef8fc!important;color:var(--cen-blue)!important}
.public-info-strip{background:linear-gradient(90deg,#102f49,#175b85 58%,#0f7765)!important;border-bottom:4px solid var(--cen-orange)!important}

/* Présidence */
.president-biography-public{background:linear-gradient(135deg,#fff,#f5fbfe)!important;border:1px solid #d5e6ee!important;border-radius:28px!important;box-shadow:0 18px 48px rgba(23,63,95,.10)!important;overflow:hidden!important}
.president-biography-heading{border-bottom:1px solid #d8e6ed!important;background:linear-gradient(90deg,rgba(44,168,212,.08),rgba(242,165,31,.07))!important}
.president-biography-profile{background:linear-gradient(180deg,#102f49,#175b85)!important;color:#fff!important;border-radius:22px!important;box-shadow:0 16px 32px rgba(23,63,95,.17)!important}
.president-biography-profile img{border:5px solid #fff!important;border-radius:18px!important;object-fit:cover!important;box-shadow:0 12px 28px rgba(0,0,0,.2)!important}
.president-biography-profile strong{color:#ffd066!important}.president-biography-placeholder{background:#fff!important;color:var(--cen-blue)!important}
.president-biography-content details{border:1px solid #d8e5ec!important;border-radius:14px!important;background:#fff!important}.president-biography-content summary{color:var(--cen-navy)!important}.president-biography-content details[open] summary{border-bottom:1px solid #e2ebf0!important}

/* Connexion */
.auth-shell,.login-shell{background:
 radial-gradient(circle at 8% 15%,rgba(18,138,67,.10),transparent 27%),
 radial-gradient(circle at 90% 12%,rgba(242,165,31,.13),transparent 25%),
 linear-gradient(135deg,#edf7fb,#f8fbfc)!important}
.auth-card,.login-card{border-top:5px solid var(--cen-blue)!important}.auth-card:before,.login-card:before{content:"";display:block;height:5px;background:linear-gradient(90deg,var(--cen-green),var(--cen-cyan),var(--cen-orange));border-radius:10px;margin:-1px 0 18px}

/* Formulaires imprimables / cartes */
.adhesion-paper{border-top:6px solid var(--cen-blue)!important;background:linear-gradient(180deg,#fff,#fbfdfe)!important}.paper-head{border-bottom:3px solid var(--cen-blue)!important}.paper-head:after{content:"";display:block;height:4px;background:linear-gradient(90deg,var(--cen-green),var(--cen-cyan),var(--cen-orange));grid-column:1/-1}

/* Dashboard */
.dashboard-welcome,.production-welcome{background:linear-gradient(118deg,#102f49,#175b85 66%,#0f7765)!important;border-bottom:4px solid var(--cen-orange)!important}.kpi-card:nth-child(3n+1){border-top:4px solid var(--cen-blue)!important}.kpi-card:nth-child(3n+2){border-top:4px solid var(--cen-green)!important}.kpi-card:nth-child(3n){border-top:4px solid var(--cen-orange)!important}

@media(max-width:780px){
 .welcome-hero{border-radius:20px!important}.welcome-hero:before{width:260px;height:260px;right:-140px;top:-130px}.welcome-visual>img{max-width:180px!important}.president-biography-public{border-radius:20px!important}.president-biography-profile{border-radius:16px!important}
}
@media print{
 .site-header,.top-nav,.side-dashboard,.workspace-topbar,.fixed-footer,.no-print{display:none!important}
 .card,.adhesion-paper,.president-biography-public{box-shadow:none!important;border-color:#b9c7d0!important}
}


/* CEN V122 — transparence des repères publics de la rubrique À propos */
.cen-public-sources{margin-top:18px;padding:14px 16px;border:1px solid rgba(31,111,174,.22);border-radius:16px;background:rgba(255,255,255,.72)}
.cen-public-sources summary{cursor:pointer;font-weight:800;color:#1f5f8f}
.cen-public-sources p{margin:10px 0 6px;line-height:1.65}
.cen-public-sources small{display:block;opacity:.72;line-height:1.5}


/* =========================================================
   CEN V123 — THEME INTERNATIONAL JAUNE & VERT
   Refonte finale : priorité au vert et au jaune, meilleure lisibilité,
   interfaces modérées, logos mieux cadrés, arrière-plans plus sobres.
   ========================================================= */
:root{
  --cen-green:#1b7f3b;
  --cen-green-dark:#145c2b;
  --cen-green-soft:#edf8ef;
  --cen-lime:#7f9b21;
  --cen-yellow:#f3c623;
  --cen-yellow-soft:#ffe27a;
  --cen-gold:#d8a907;
  --cen-blue:#2e8e9a;
  --cen-cyan:#5cb8a2;
  --cen-ink:#19332a;
  --cen-muted:#5b6d64;
  --cen-line:#d9e5d8;
  --cen-bg:#f8fbf4;
  --header-gradient:linear-gradient(135deg,#fffef2 0%,#f6fbef 52%,#eef8f0 100%);
  --footer-gradient:linear-gradient(135deg,#145c2b 0%,#1b7f3b 58%,#5d7d22 100%);
}
html,body{background:var(--cen-bg)!important;color:var(--cen-ink)!important}
body{background-image:none!important}
body.has-watermark:before{opacity:.014!important;background-size:min(280px,42vw) auto!important;background-position:center 55%!important;filter:grayscale(.1)!important}
.site-header,.workspace-topbar{background:var(--header-gradient)!important;color:var(--cen-ink)!important;border-bottom:1px solid #dbe7d8!important;box-shadow:0 10px 26px rgba(25,51,42,.08)!important}
.workspace-topbar strong,.workspace-topbar small,.workspace-topbar a,.workspace-topbar button{color:var(--cen-ink)!important}
.workspace-topbar .top-date strong{color:var(--cen-green)!important}
.top-actions>a,.history-btn{background:#fff!important;border:1px solid #dbe7d8!important;color:var(--cen-green)!important;box-shadow:0 6px 16px rgba(20,92,43,.08)!important}
.top-actions>a:hover,.history-btn:hover{background:#f5faf2!important;border-color:#bdd4bf!important}
.side-dashboard{background:linear-gradient(180deg,#145c2b 0%,#1b7f3b 58%,#58771d 100%)!important;box-shadow:14px 0 38px rgba(20,92,43,.18)!important}
.side-dashboard:before{background:radial-gradient(circle at 12% 0%,rgba(255,226,122,.20),transparent 28%),radial-gradient(circle at 86% 16%,rgba(255,255,255,.10),transparent 34%)!important}
.side-brand{padding-bottom:14px!important;border-bottom:1px solid rgba(255,255,255,.16)!important}
.side-brand strong{font-size:16px!important;line-height:1.25!important}
.side-brand small{opacity:.92!important;color:#eef8e7!important}
.side-menu{gap:10px!important}
.side-menu-group{margin:.12rem .35rem!important;border-radius:16px!important;background:rgba(255,255,255,.065)!important;border:1px solid rgba(255,255,255,.09)!important}
.side-menu-group[open]{background:rgba(255,255,255,.10)!important}
.side-menu-group>summary{padding:.92rem .95rem!important;font-size:.95rem!important}
.side-submenu{padding:0 .5rem .55rem!important}
.side-submenu a,.side-menu>a{font-size:.94rem!important;line-height:1.3!important}
.side-menu a:hover,.side-menu summary:hover{background:rgba(255,255,255,.10)!important}
.side-menu a.active{background:linear-gradient(90deg,rgba(243,198,35,.24),rgba(255,255,255,.09))!important;border-left:4px solid var(--cen-yellow)!important;color:#fff!important}
.side-menu-search{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.20)!important}
.menu-badge{background:var(--cen-yellow)!important;color:#214122!important;font-weight:900!important}
.logout-btn{color:#9e1f1f!important}
.logo-box,.side-logo,.footer-logo,.loader-logo,.paper-logo,.print-logo,.print-list-logo,.dashboard-seal,.dashboard-seal.logo-seal,.carousel-fallback-logo,.welcome-visual img,.fallback-brand-logo{background:#fff!important;border-color:#f4edd1!important;box-shadow:0 10px 24px rgba(20,92,43,.10)!important}
.logo-box img,.side-logo img,.footer-logo img,.loader-logo img,.paper-logo img,.print-logo img,.print-list-logo img,.dashboard-seal img,.dashboard-seal.logo-seal img,.large-seal img,.carousel-fallback-logo img,.welcome-visual img,.fallback-brand-logo img{object-fit:contain!important;padding:4px!important;background:transparent!important}
.card,.panel-card,.kpi-card,.admin-shortcut,.activity-card,.auth-card,.health-card,.mobile-card,.adhesion-paper{border:1px solid var(--cen-line)!important;border-radius:22px!important;box-shadow:0 14px 34px rgba(20,92,43,.06)!important;background:#fff!important}
.dashboard-welcome,.production-welcome,.welcome-hero{background:linear-gradient(135deg,#fffef3 0%,#f8fcef 58%,#eff8f1 100%)!important;color:var(--cen-ink)!important;border:1px solid #dbe7d8!important;border-bottom:4px solid var(--cen-yellow)!important;box-shadow:0 14px 36px rgba(20,92,43,.06)!important}
.dashboard-welcome:after,.welcome-hero:before{background:radial-gradient(circle,rgba(243,198,35,.20),rgba(27,127,59,.05) 58%,transparent 72%)!important}
.dashboard-welcome h1,.welcome-copy h1,.section-title,.card h1,.card h2,.panel-head h2,.form-title,.section-line,.workspace-topbar strong{color:var(--cen-ink)!important}
.eyebrow,.welcome-kicker{color:var(--cen-green)!important;letter-spacing:.08em!important}
.dashboard-seal.logo-seal,.carousel-fallback-logo{padding:8px!important;border-radius:24px!important}
.kpi-card{align-items:center!important}
.kpi-icon.blue{background:linear-gradient(135deg,#1b7f3b,#2ea65a)!important}
.kpi-icon.yellow{background:linear-gradient(135deg,#f3c623,#ffe27a)!important;color:#3d3a16!important}
.kpi-icon.red{background:linear-gradient(135deg,#5d7d22,#86a52e)!important}
.kpi-card strong,.stat span{color:var(--cen-green)!important}
.kpi-card small,.dash-list small,.muted,.card p,.panel-card p,.table-wrap td,.table-wrap th,label,small{color:#566961!important}
.btn{font-weight:850!important;border-radius:14px!important}
.btn.primary,.auth-submit,.health-btn:not(.secondary):not(.danger):not(.ghost):not(.ghost-light){background:linear-gradient(135deg,var(--cen-yellow),var(--cen-yellow-soft))!important;color:#284123!important;border:0!important;box-shadow:0 9px 18px rgba(243,198,35,.22)!important}
.btn.primary:hover,.auth-submit:hover,.health-btn:not(.secondary):not(.danger):not(.ghost):not(.ghost-light):hover{filter:brightness(.98)!important;transform:translateY(-1px)!important}
.btn.light,.light-btn,.history-home{background:#fff!important;color:var(--cen-green)!important;border:1px solid #d2e1d0!important}
.form input,.form select,.form textarea,.mobile-form input,.mobile-form select,.mobile-form textarea,.filters input,.filters select,.global-search-form input,.auth-input,.health-field input,.health-field select,.health-field textarea{border:1px solid #d0dfcf!important;border-left:4px solid #e8d26b!important;border-radius:12px!important;background:#fff!important;color:var(--cen-ink)!important}
.form input:focus,.form select:focus,.form textarea:focus,.mobile-form input:focus,.mobile-form select:focus,.mobile-form textarea:focus,.filters input:focus,.filters select:focus,.global-search-form input:focus,.health-field input:focus,.health-field select:focus,.health-field textarea:focus{border-color:#b6cdb5!important;border-left-color:var(--cen-green)!important;box-shadow:0 0 0 4px rgba(27,127,59,.08)!important}
th{background:linear-gradient(180deg,#fbfdf6,#f1f8ec)!important;color:var(--cen-ink)!important}
tbody tr:hover{background:#fbfdf8!important}
.tabs a.active,.badge.active{background:var(--cen-green)!important;color:#fff!important}
.flash,.notice{border-radius:14px!important}
.flash.success{background:#eff8ef!important;border-left:4px solid var(--cen-green)!important}
.flash.warning{background:#fff9e7!important;border-left:4px solid var(--cen-yellow)!important}
.flash.danger{background:#fff0ef!important;border-left:4px solid #c43d45!important}
.public-info-strip,.download-app-section{background:linear-gradient(135deg,#1b7f3b,#5d7d22)!important;border-bottom:4px solid var(--cen-yellow)!important}
.home-health-gateway,.download-choice,.home-intro-card{background:#fff!important;border:1px solid var(--cen-line)!important}
.slide-message{background:linear-gradient(90deg,rgba(20,92,43,.92),rgba(27,127,59,.88))!important;border-left:5px solid var(--cen-yellow)!important}
.app-footer.dashboard-style-footer,.fixed-footer,.pro-footer{background:var(--footer-gradient)!important;border-top:4px solid var(--cen-yellow)!important}
.app-footer h3,.pro-footer strong{color:#ffe27a!important}
.app-footer a:hover,.socials a:hover{color:#ffe27a!important}
.president-biography-public{background:linear-gradient(135deg,#fffef5,#f8fcf1)!important;border:1px solid var(--cen-line)!important}
.president-biography-heading{background:linear-gradient(90deg,rgba(27,127,59,.06),rgba(243,198,35,.10))!important;border-bottom:1px solid var(--cen-line)!important}
.president-biography-profile{background:linear-gradient(180deg,#145c2b,#1b7f3b)!important;color:#fff!important}
.president-biography-profile strong{color:#ffe27a!important}
.auth-shell,.login-shell{background:radial-gradient(circle at 8% 15%,rgba(27,127,59,.08),transparent 27%),radial-gradient(circle at 90% 12%,rgba(243,198,35,.12),transparent 25%),linear-gradient(135deg,#f6fbf2,#fbfdf8)!important}
.auth-card,.login-card{border-top:5px solid var(--cen-green)!important}
.adhesion-paper{border-top:6px solid var(--cen-green)!important;background:linear-gradient(180deg,#fff,#fcfdf9)!important}
.paper-head{border-bottom:3px solid var(--cen-green)!important}
.paper-head:after{content:"";display:block;height:4px;background:linear-gradient(90deg,var(--cen-green),var(--cen-cyan),var(--cen-yellow));grid-column:1/-1}
.page-loader{background:linear-gradient(135deg,#145c2b,#1b7f3b)!important}.loader-emblem-spin{filter:drop-shadow(0 14px 28px rgba(20,92,43,.24))!important}
@media(max-width:780px){
  .workspace-content{padding:18px 14px 0!important}
  .dashboard-welcome,.welcome-hero,.panel-card,.card{border-radius:18px!important}
  .dashboard-seal.logo-seal,.carousel-fallback-logo{width:100%!important;max-width:100%!important;height:94px!important}
}


/* =========================================================
   CEN V124 — À PROPOS & LISIBILITÉ
   ========================================================= */
body, p, li, td, th, label, small, span{font-size:inherit}
.card p,.panel-card p,.large-text p,.home-intro-card p,.president-biography-content p,.president-biography-public p,.download-choice p,.activity-card p,.footer-about p,.footer-contact-row,.footer-contact-row a,.footer-contact-row span{color:#42584d!important;line-height:1.7!important}
.card h2,.card h3,.panel-head h2,.public-info-strip strong,.download-choice h3,.home-intro-card h2,.president-focus-card h3,.president-biography-heading h2{letter-spacing:.01em!important}
.public-info-strip div{box-shadow:0 10px 24px rgba(20,92,43,.08)!important}
.president-biography-layout{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:24px!important;align-items:start}
.president-biography-profile{position:sticky;top:92px;padding:22px!important}.president-biography-profile h3{font-size:1.28rem!important;margin:.85rem 0 .35rem!important;color:#fff!important}.president-biography-profile strong{display:block;line-height:1.5!important}
.president-biography-profile img{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:4/5;object-fit:cover!important}
.president-highlight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0 14px}.president-highlight-grid article{background:linear-gradient(180deg,#fffef7,#f8fbf3)!important;border:1px solid #dbe7d8!important;border-radius:18px;padding:16px 16px 14px;box-shadow:0 10px 24px rgba(20,92,43,.05)!important}.president-highlight-grid strong{display:block;color:var(--cen-green)!important;font-size:.9rem!important;text-transform:uppercase;letter-spacing:.05em}.president-highlight-grid span{display:block;margin-top:7px;color:#20372d!important;font-weight:750!important;line-height:1.45!important}
.president-biography-content details{margin-top:12px!important;overflow:hidden}.president-biography-content details summary{padding:14px 16px!important;font-weight:850!important;background:#fcfdf9!important}.president-biography-content details p{padding:14px 16px 16px!important;margin:0!important;background:#fff!important}
.president-focus-card{margin-top:16px;background:linear-gradient(135deg,#f9fdf3,#fffef7)!important;border:1px solid #dbe7d8!important;border-left:6px solid var(--cen-yellow)!important;border-radius:20px;padding:18px 20px;box-shadow:0 10px 24px rgba(20,92,43,.05)!important}.president-focus-card ul{margin:10px 0 0;padding-left:18px}.president-focus-card li{margin:.45rem 0;color:#31483e!important}
.cen-public-sources{margin-top:16px!important;border:1px solid #dbe7d8!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 20px rgba(20,92,43,.04)!important}.cen-public-sources summary{padding:16px 18px!important;font-weight:800!important;color:#1b7f3b!important;cursor:pointer}.cen-public-sources p,.cen-public-sources small{display:block;padding:0 18px 14px!important}
.home-contact-list a,.home-contact-list div{background:#fff!important;border:1px solid #dbe7d8!important;border-radius:16px!important;padding:12px 14px!important;box-shadow:0 6px 18px rgba(20,92,43,.04)!important}.home-contact-list strong{color:#20372d!important}
.download-choice small,.activity-card small,.list-item span{color:#61756b!important;line-height:1.55!important}
@media(max-width:920px){.president-biography-layout{grid-template-columns:1fr!important}.president-biography-profile{position:relative;top:auto}.president-highlight-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:620px){.president-highlight-grid{grid-template-columns:1fr!important}.president-biography-profile{padding:18px!important}.president-focus-card{padding:16px!important}}


/* =========================================================
   CEN V125 — FINITION PREMIUM INTERNATIONALE
   Identité dominante : vert + jaune, bleu uniquement en accent secondaire.
   Lisibilité uniforme, formulaires standardisés et navigation distincte.
   ========================================================= */
:root{
  --v125-green:#176b36;--v125-green-2:#238447;--v125-green-soft:#eff8f1;
  --v125-yellow:#f2c423;--v125-yellow-2:#ffe47b;--v125-cream:#fffdf3;
  --v125-ink:#1e3328;--v125-text:#41564b;--v125-muted:#68796f;
  --v125-line:#dbe5dc;--v125-surface:#ffffff;--v125-bg:#f7faf5;
  --v125-blue-accent:#318f9a;
}
html{background:var(--v125-bg)!important}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;background:var(--v125-bg)!important;color:var(--v125-ink)!important}
body.has-watermark:before{opacity:.009!important;background-size:min(230px,34vw) auto!important}

/* --- Header et barre de travail clairs, sobres et lisibles --- */
.site-header.public-header{background:#fff!important;color:var(--v125-ink)!important;border-bottom:1px solid var(--v125-line)!important;padding-top:12px!important;padding-bottom:12px!important}
.brand-block strong{color:var(--v125-green)!important;font-size:clamp(17px,2vw,22px)!important}.brand-block span{color:#354a3f!important}.brand-block em{color:#738078!important;font-style:normal!important}
.top-nav.public-nav{background:#fff!important;border-bottom:1px solid var(--v125-line)!important;box-shadow:0 8px 24px rgba(23,107,54,.045)!important}.top-nav.public-nav a{color:#31483b!important;font-weight:750!important}.top-nav.public-nav a:hover,.top-nav.public-nav a:focus{background:var(--v125-green-soft)!important;color:var(--v125-green)!important}
.public-login-link{background:linear-gradient(135deg,var(--v125-yellow),var(--v125-yellow-2))!important;color:#273c25!important;padding-inline:18px!important}
.public-health-link{color:var(--v125-green)!important}
.workspace-topbar{background:rgba(255,255,255,.97)!important;border-bottom:1px solid var(--v125-line)!important;backdrop-filter:blur(16px)!important}.workspace-topbar strong{color:var(--v125-ink)!important}.workspace-topbar small{color:var(--v125-muted)!important}

/* --- Navigation CEN V125 : structure nouvelle et indépendante --- */
.cen-v125-navigation{display:grid!important;gap:9px!important}
.cen-v125-navigation>.cen-nav-home{margin:0 .35rem 5px!important;background:linear-gradient(135deg,var(--v125-yellow),var(--v125-yellow-2))!important;color:#244329!important;border:0!important;box-shadow:0 8px 18px rgba(242,196,35,.16)!important}
.cen-v125-navigation>.cen-nav-home:hover,.cen-v125-navigation>.cen-nav-home.active{background:linear-gradient(135deg,#f3cb38,#ffea91)!important;color:#173c24!important;border-left:0!important}
.cen-v125-navigation .side-menu-group{margin:0 .35rem!important;border-radius:15px!important;border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.055)!important;overflow:hidden!important}
.cen-v125-navigation .side-menu-group[open]{background:rgba(255,255,255,.095)!important}
.cen-v125-navigation .side-menu-group>summary{min-height:48px!important;padding:12px 13px!important;color:#fff!important;font-size:.94rem!important;letter-spacing:.005em!important}
.cen-v125-navigation .side-menu-group>summary>span{width:25px!important;text-align:center!important;color:#ffe683!important}
.cen-v125-navigation .side-submenu{display:grid!important;gap:3px!important;padding:3px 7px 9px 34px!important;border-top:1px solid rgba(255,255,255,.07)!important}
.cen-v125-navigation .side-submenu a{grid-template-columns:22px minmax(0,1fr)!important;min-height:38px!important;padding:8px 9px!important;margin:0!important;border-radius:10px!important;color:#edf8ef!important;font-weight:650!important;font-size:.88rem!important}
.cen-v125-navigation .side-submenu a>span{opacity:.9!important;color:#ffe683!important;text-align:center!important}
.cen-v125-navigation .side-submenu a:hover{background:rgba(255,255,255,.10)!important}
.cen-v125-navigation .cen-health-menu{border-color:rgba(255,228,123,.22)!important}
.cen-nav-utility{display:grid!important;gap:3px!important;margin:6px .35rem 0!important;padding-top:8px!important;border-top:1px solid rgba(255,255,255,.15)!important}.cen-nav-utility a{min-height:42px!important;color:#eaf5ec!important}
.side-dashboard{background:linear-gradient(180deg,#12552b 0%,#176b36 52%,#3e6929 100%)!important}
.side-logo{width:64px!important;height:64px!important;border-radius:18px!important;padding:4px!important}.side-logo img{padding:0!important;max-width:100%!important;max-height:100%!important}

/* --- Arrière-plan modéré : pas de grands halos ni bleus dominants --- */
.dashboard-welcome,.production-welcome,.welcome-hero,.home-intro-card,.home-health-gateway,.download-choice,.panel-card,.card{background:#fff!important}
.dashboard-welcome,.welcome-hero{border-top:5px solid var(--v125-yellow)!important;border-bottom:1px solid var(--v125-line)!important}.dashboard-welcome:after,.welcome-hero:before{display:none!important}
.public-carousel-compact{background:#fff!important;border:1px solid var(--v125-line)!important}.carousel-fallback-slide{background:linear-gradient(135deg,#176b36,#2b8349)!important}.slide-message{background:rgba(21,84,43,.93)!important;border-left-color:var(--v125-yellow)!important}

/* --- Système de contenus lisibles --- */
.main-content,.workspace-content{color:var(--v125-ink)!important}.card p,.panel-card p,.card li,.panel-card li,.list-item span,.module-guide p,.dashboard-welcome p,.welcome-copy p{color:var(--v125-text)!important;line-height:1.65!important}
h1,h2,h3,h4,.page-heading h1,.page-heading h2,.section-title,.panel-head h2{color:var(--v125-ink)!important}
.eyebrow,.welcome-kicker{color:var(--v125-green)!important}.muted,small{color:var(--v125-muted)!important}
.module-guide{background:linear-gradient(90deg,#fffdf3,#f5faf3)!important;border:1px solid var(--v125-line)!important;border-left:5px solid var(--v125-yellow)!important}.module-guide-icon{background:var(--v125-green-soft)!important;color:var(--v125-green)!important}

/* --- Tous les formulaires : hiérarchie et contrastes cohérents --- */
.form,.form-grid,.mobile-form,.health-form-grid,.health-form.single,.filters{gap:17px!important}
.form label,.form-grid label,.mobile-form label,.health-form-grid label,.health-field label,.field label{color:#2b4235!important;font-weight:750!important;line-height:1.35!important}
.form label>small,.form-grid label>small,.mobile-form label>small,.health-form-grid label>small,.field small{display:block!important;margin-top:6px!important;color:#718077!important;font-weight:500!important;line-height:1.45!important}
input:not([type=checkbox]):not([type=radio]),select,textarea,.auth-input{background:#fff!important;color:#20342a!important;border:1px solid #cfdccf!important;border-radius:12px!important;box-shadow:none!important;min-height:48px!important}
input:not([type=checkbox]):not([type=radio]):hover,select:hover,textarea:hover{border-color:#b8cab9!important}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{outline:none!important;border-color:var(--v125-green-2)!important;box-shadow:0 0 0 4px rgba(35,132,71,.10)!important}
input::placeholder,textarea::placeholder{color:#929e96!important;opacity:1!important}
input[type=checkbox],input[type=radio]{accent-color:var(--v125-green)!important}
.form .section-line,.form-section,.fieldset-section,fieldset{background:#fbfdf9!important;border-color:var(--v125-line)!important}.form .section-line{border-left:5px solid var(--v125-yellow)!important;color:var(--v125-green)!important}

/* --- Boutons et états --- */
.btn,.health-btn,button{font-family:inherit!important}.btn.primary,.auth-submit{background:linear-gradient(135deg,var(--v125-yellow),var(--v125-yellow-2))!important;color:#273c25!important;border:1px solid #e5b817!important;box-shadow:0 7px 16px rgba(229,184,23,.15)!important}.btn.primary:hover,.auth-submit:hover{background:linear-gradient(135deg,#f5cd38,#ffeb91)!important;color:#1c3421!important}
.btn:not(.primary):not(.danger),.btn.light,.light-btn{background:#fff!important;color:var(--v125-green)!important;border:1px solid #cbdacb!important}.btn:not(.primary):not(.danger):hover{background:#f4faf4!important;border-color:#9fbea3!important}
.btn.danger{background:#fff2f0!important;color:#a4322c!important;border:1px solid #f0c9c5!important}

/* --- Tableaux internationaux : header clair, pas de saturation --- */
.table-wrap{border:1px solid var(--v125-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 24px rgba(23,107,54,.04)!important}table{background:#fff!important}th{background:#f2f7f1!important;color:#2a4535!important;border-bottom:1px solid #d5e2d6!important;font-weight:800!important}td{color:#40564a!important;border-bottom-color:#e9eeea!important}tbody tr:nth-child(even){background:#fcfdfb!important}tbody tr:hover{background:#f5faf4!important}

/* --- Cartes/KPI : jaune et vert, bleu seulement ponctuel --- */
.kpi-card{border-top:3px solid transparent!important}.kpi-card:nth-child(4n+1){border-top-color:var(--v125-green)!important}.kpi-card:nth-child(4n+2){border-top-color:var(--v125-yellow)!important}.kpi-card:nth-child(4n+3){border-top-color:#74a64d!important}.kpi-card:nth-child(4n){border-top-color:var(--v125-blue-accent)!important}
.kpi-icon.blue{background:var(--v125-green)!important}.kpi-icon.yellow{background:var(--v125-yellow)!important}.kpi-icon.red{background:#6f9943!important}.kpi-card strong,.stat span{color:var(--v125-green)!important}
.admin-shortcut.primary{background:linear-gradient(135deg,#176b36,#27864a)!important;color:#fff!important}.admin-shortcut.primary small{color:#e8f5ec!important}

/* --- Logo : cadrage constant et sans disque blanc excessif --- */
.logo-box{width:72px!important;height:72px!important;border-radius:18px!important;padding:4px!important}.logo-box img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important}.footer-logo{border-radius:16px!important;padding:4px!important}.footer-logo img{object-fit:contain!important;padding:0!important}.dashboard-seal.logo-seal{border-radius:20px!important;background:#fff!important;border:1px solid var(--v125-line)!important;box-shadow:0 10px 25px rgba(23,107,54,.07)!important}.dashboard-seal.logo-seal img{object-fit:contain!important;padding:5px!important}

/* --- Login --- */
.auth-shell,.login-shell{background:#f7faf5!important}.auth-premium-shell,.login-experience{box-shadow:0 22px 58px rgba(23,107,54,.10)!important;border:1px solid var(--v125-line)!important}.auth-card,.login-card,.login-panel{border-top-color:var(--v125-yellow)!important}.login-visual,.auth-visual{background:linear-gradient(145deg,#145d30,#238447)!important}.login-visual h1,.login-visual p,.auth-visual h1,.auth-visual p{color:#fff!important}

/* --- Pied de page compact et institutionnel --- */
.app-footer.dashboard-style-footer,.fixed-footer,.pro-footer{background:linear-gradient(135deg,#124f29,#176b36 64%,#3f692b)!important;border-top:4px solid var(--v125-yellow)!important}.app-footer.dashboard-style-footer{box-shadow:0 -8px 26px rgba(23,107,54,.10)!important}.app-footer h3{color:#ffe47b!important}.app-footer p,.app-footer a,.app-footer small,.app-footer span{color:#eff7f0!important}.socials a{background:#fff!important;color:var(--v125-green)!important}

/* --- Santé : conserve son identité métier mais rejoint la palette CEN --- */
.health-module .workspace-topbar{background:#fff!important}.health-module .dashboard-welcome{background:#fff!important;border-top:5px solid var(--v125-yellow)!important}.health-module .dashboard-welcome h1{color:var(--v125-ink)!important}

/* --- Mobile --- */
@media(max-width:900px){
  .site-header.public-header{padding:9px 12px!important}.logo-box{width:56px!important;height:56px!important}.brand-block strong{font-size:16px!important}
  .cen-v125-navigation .side-submenu{padding-left:26px!important}
  .workspace-topbar{background:#fff!important}.workspace-content{padding:16px 12px 0!important}
  .form,.form-grid,.filters{gap:14px!important}.card,.panel-card{border-radius:16px!important}
}
@media(max-width:600px){
  .public-mobile-bar{background:#fff!important;border-bottom:1px solid var(--v125-line)!important}.public-mobile-brand{color:var(--v125-green)!important}.public-mobile-login{background:var(--v125-yellow)!important;color:#283b25!important}
  .dashboard-welcome h1,.page-heading h1{font-size:clamp(24px,7vw,31px)!important}
  .table-wrap table{min-width:680px!important}
}


/* =========================================================
   CEN V126 — ERGONOMIE FINALE
   Objectif : meilleure lisibilité, menu latéral à droite,
   contraste renforcé, séparation claire entête/menu,
   tableau de bord et connexion harmonisés.
   ========================================================= */
:root{
  --v126-green:#166534;
  --v126-green-soft:#ecf8ef;
  --v126-yellow:#eab308;
  --v126-yellow-soft:#fff7d6;
  --v126-ink:#163128;
  --v126-text:#42584d;
  --v126-line:#d7e6d8;
  --v126-side:#14532d;
  --v126-side-2:#1d6b3a;
  --v126-top:#fffdf6;
}
/* Lisibilité globale */
body, .main-content, .workspace-content{color:var(--v126-ink)!important}
p, li, td, th, label, small, span, .list-item span, .module-guide p, .dashboard-welcome p, .welcome-copy p, .download-choice p{color:var(--v126-text)!important;line-height:1.72!important}
h1,h2,h3,h4,.section-title,.page-heading h1,.page-heading h2,.panel-head h2,.workspace-topbar strong,.dashboard-welcome h1,.card h1,.card h2{color:var(--v126-ink)!important}
.btn,.top-nav.public-nav a,.tabs a,.admin-shortcut,.side-menu a,.side-menu-group>summary{font-weight:800!important}
/* Entête public et barre de menu : distinction claire */
.site-header.public-header{background:#fff!important;border-bottom:1px solid var(--v126-line)!important;box-shadow:0 8px 20px rgba(22,49,40,.06)!important}
.site-header.public-header .brand-block strong,.site-header.public-header .brand-block span,.site-header.public-header .brand-block em{color:var(--v126-ink)!important}
.top-nav.public-nav{background:linear-gradient(180deg,#f8fcf5,#eef7ef)!important;border-bottom:2px solid #e3efdf!important;box-shadow:none!important}
.top-nav.public-nav a{color:var(--v126-green)!important;border:1px solid transparent!important}
.top-nav.public-nav a:hover,.top-nav.public-nav a:focus{background:#fff!important;border-color:#dbe8d9!important;color:#104d28!important}
.top-nav.public-nav .public-login-link{background:linear-gradient(135deg,var(--v126-yellow),#f6d85e)!important;color:#234125!important;border-color:transparent!important}
/* Section téléchargement : textes visibles */
.download-app-section{background:linear-gradient(135deg,#14532d 0%,#1d6b3a 58%,#46752a 100%)!important;border-top:4px solid var(--v126-yellow)!important}
.download-app-section .eyebrow,.download-app-section h2,.download-app-section p,.download-app-section strong,.download-app-section span{color:#fff!important}
.download-app-section .connection-state{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:none!important}
.download-app-grid .download-choice{background:#fff!important;border:1px solid var(--v126-line)!important;box-shadow:0 14px 30px rgba(20,83,45,.08)!important}
.download-choice h3{color:var(--v126-ink)!important}
/* Connexion */
.auth-shell,.login-shell{background:#f4f9f1!important}
.login-visual,.auth-visual{background:linear-gradient(145deg,#15552f,#1f7a41 70%,#2f8f50)!important}
.login-visual h1,.login-visual p,.auth-visual h1,.auth-visual p,.login-visual .eyebrow,.auth-visual .eyebrow{color:#fff!important}
.login-card,.auth-card,.login-panel,.auth-premium-shell,.login-experience{border:1px solid var(--v126-line)!important;box-shadow:0 18px 44px rgba(20,83,45,.10)!important}
/* Admin : menu à droite et entête distincte */
@media(min-width:981px){
  body.admin-layout .app-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 308px!important;min-height:100vh!important}
  body.admin-layout .workspace{grid-column:1!important;order:1!important;min-width:0!important}
  body.admin-layout .side-dashboard{grid-column:2!important;order:2!important;position:sticky!important;top:0!important;left:auto!important;right:0!important;width:308px!important;min-width:308px!important;height:100vh!important;border-left:1px solid rgba(255,255,255,.12)!important;border-right:0!important;background:linear-gradient(180deg,var(--v126-side) 0%,var(--v126-side-2) 62%,#46752a 100%)!important;box-shadow:-14px 0 34px rgba(20,83,45,.18)!important}
  body.admin-layout.sidebar-collapsed .side-dashboard{transform:translateX(102%)!important;pointer-events:none!important}
  body.admin-layout .workspace-topbar{position:sticky!important;top:0!important;background:var(--v126-top)!important;border:1px solid #e5eddc!important;border-bottom:3px solid var(--v126-yellow)!important;box-shadow:0 10px 24px rgba(20,83,45,.06)!important;border-radius:0 0 18px 18px!important;margin:0 18px!important;padding:14px 18px!important}
  body.admin-layout .workspace-content{padding:20px 18px 0!important;max-width:none!important}
  body.admin-layout .top-date{border-left:1px solid #dde8d9!important;padding-left:16px!important}
}
/* Menu latéral */
.side-brand{padding-bottom:14px!important;border-bottom:1px solid rgba(255,255,255,.14)!important;margin-bottom:14px!important}
.side-brand strong{font-size:16px!important;line-height:1.25!important}
.side-brand small{color:rgba(255,255,255,.86)!important}
.side-menu{gap:10px!important;padding-right:0!important}
.side-menu-search{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;padding:10px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
.side-menu-search input{background:#fff!important;color:#173524!important;border:1px solid #d7e6d7!important;border-radius:12px!important;padding:11px 12px!important;font-size:14px!important}
.side-menu-search input::placeholder{color:#688070!important;opacity:1!important}
.side-menu-search .btn,.side-menu-search button{background:linear-gradient(135deg,var(--v126-yellow),#f6d85e)!important;color:#234125!important;border:0!important}
.side-menu-group{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:16px!important;overflow:hidden!important}
.side-menu-group>summary{padding:13px 14px!important;color:#fff!important}
.side-menu-group[open]>summary{background:rgba(255,255,255,.08)!important}
.side-submenu{padding:0 8px 10px!important}
.side-submenu a,.side-menu>a{color:#f3fbf4!important;border-radius:12px!important}
.side-menu a:hover,.side-menu a.active{background:linear-gradient(90deg,rgba(255,255,255,.14),rgba(255,255,255,.07))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)!important}
.side-menu a.active{border-left:4px solid var(--v126-yellow)!important}
.side-user{background:rgba(255,255,255,.07)!important;border-radius:18px!important;border-top:0!important;padding:12px!important;margin:12px 0 8px!important}
.logout-btn{background:linear-gradient(135deg,#ffe6eb,#fcd4dc)!important;color:#9b1c3a!important;box-shadow:none!important}
/* Tableau de bord */
.dashboard-welcome,.production-welcome{background:#fff!important;border:1px solid var(--v126-line)!important;border-top:5px solid var(--v126-yellow)!important;border-bottom:1px solid var(--v126-line)!important;box-shadow:0 14px 30px rgba(20,83,45,.06)!important}
.dashboard-welcome .eyebrow,.production-welcome .eyebrow{color:var(--v126-green)!important}
.kpi-grid{gap:16px!important}
.kpi-card{background:#fff!important;border:1px solid var(--v126-line)!important;border-radius:20px!important;box-shadow:0 10px 24px rgba(20,83,45,.05)!important}
.kpi-card strong{color:var(--v126-ink)!important}.kpi-card small,.kpi-card span{color:#60746a!important}
.kpi-icon.blue{background:linear-gradient(135deg,#1d6b3a,#2a8c4a)!important}.kpi-icon.yellow{background:linear-gradient(135deg,var(--v126-yellow),#f5d45c)!important;color:#29401f!important}.kpi-icon.red{background:linear-gradient(135deg,#56762e,#7d9a3e)!important}
.dashboard-panels{gap:16px!important}
.panel-card,.card,.admin-shortcut,.activity-card,.home-intro-card,.home-health-gateway{background:#fff!important;border:1px solid var(--v126-line)!important;box-shadow:0 10px 24px rgba(20,83,45,.05)!important}
.panel-head a,.list-item strong{color:var(--v126-green)!important}
.chart-line-demo{background:linear-gradient(180deg,#fbfdf8,#f4faf2)!important;border:1px solid #e1ecdf!important}.chart-line-demo span{background:linear-gradient(180deg,#1f7a41,#98c96f)!important;box-shadow:none!important}
/* Recherche / topbar admin */
.global-search-form input{background:#fff!important;border:1px solid #d6e6d8!important;border-radius:14px!important;color:#163128!important}
.global-search-form input::placeholder{color:#6b8075!important}
.global-search-form button{background:linear-gradient(135deg,var(--v126-yellow),#f6d85e)!important;color:#234125!important;border:0!important}
.language-select{background:#fff!important;border:1px solid #d6e6d8!important;color:#163128!important;border-radius:14px!important}
.top-actions>a,.history-btn{background:#fff!important;border:1px solid #d6e6d8!important;box-shadow:none!important;color:var(--v126-green)!important}
/* Mobile : garder le menu à gauche pour éviter l’inconfort */
@media(max-width:980px){
  .site-header.public-header{padding:10px 12px!important}
  .download-app-section .download-app-copy h2{font-size:clamp(28px,8vw,42px)!important;line-height:1.14!important}
  .side-dashboard{left:0!important;right:auto!important}
  .workspace-topbar{background:#fffdf6!important;border-bottom:2px solid var(--v126-yellow)!important}
}


/* =========================================================
   CEN V127 — FINITION ECRAN PAR ECRAN
   Accueil, connexion, dashboard, membres, santé, cartes.
   ========================================================= */
:root{
  --v127-green:#176b36;
  --v127-green-dark:#114e29;
  --v127-green-soft:#eff8f0;
  --v127-yellow:#e9b91f;
  --v127-yellow-soft:#fff8db;
  --v127-ink:#183127;
  --v127-text:#4e6258;
  --v127-line:#dce7dc;
  --v127-page:#f7faf5;
  --v127-card:#ffffff;
  --v127-shadow:0 12px 28px rgba(20,83,45,.06);
}
html,body{background:var(--v127-page)!important}
body.has-watermark:before{opacity:.006!important;background-size:min(240px,34vw) auto!important}
/* Tous les textes doivent rester lisibles */
.main-content,.workspace-content,.public-content{color:var(--v127-ink)!important}
.main-content p,.workspace-content p,.public-content p,.main-content li,.workspace-content li,.public-content li{color:var(--v127-text)!important}
input,select,textarea{color:var(--v127-ink)!important;background:#fff!important}
input::placeholder,textarea::placeholder{color:#71857a!important;opacity:1!important}
/* En-tête public : identité sobre ; navigation = seconde couche visuelle */
.site-header.public-header{min-height:82px!important;background:#fff!important;border-bottom:0!important;box-shadow:none!important;padding:10px 22px!important}
.site-header.public-header .logo-box{width:76px!important;height:64px!important;border-radius:16px!important;border:1px solid #e2eadf!important;box-shadow:0 7px 18px rgba(20,83,45,.07)!important}
.site-header.public-header .logo-box img{max-width:68px!important;max-height:56px!important;padding:2px!important}
.site-header.public-header .flag-real{width:74px!important;height:50px!important;border:1px solid #e2eadf!important;box-shadow:none!important}
.site-header.public-header .brand-block strong{font-size:25px!important;letter-spacing:.055em!important;color:var(--v127-ink)!important}
.site-header.public-header .brand-block span{color:#3f564a!important;font-weight:700!important}
.site-header.public-header .brand-block em{color:#61756a!important;font-style:normal!important}
.top-nav.public-nav{position:sticky!important;top:0!important;min-height:52px!important;background:#f0f7ef!important;border-top:1px solid #e2eadf!important;border-bottom:1px solid #d9e5d8!important;box-shadow:0 8px 18px rgba(20,83,45,.04)!important;padding:7px 14px!important}
.top-nav.public-nav a{border-radius:10px!important;padding:9px 12px!important;color:#245338!important}
.top-nav.public-nav a.public-health-link{background:#fff!important;border:1px solid #cee0d0!important;color:#176b36!important}
.top-nav.public-nav .public-login-link{background:var(--v127-yellow)!important;color:#263b25!important;border:0!important}
/* Accueil public */
.public-carousel-compact{border-radius:20px!important;box-shadow:var(--v127-shadow)!important;border:1px solid var(--v127-line)!important}
.welcome-hero{background:#fff!important;border:1px solid var(--v127-line)!important;border-top:5px solid var(--v127-yellow)!important;box-shadow:var(--v127-shadow)!important}
.welcome-copy h1{font-size:clamp(30px,4.3vw,54px)!important;line-height:1.08!important;color:var(--v127-ink)!important}
.welcome-copy p{font-size:1.05rem!important;max-width:760px!important}
.welcome-trust span{color:#365146!important}
.home-health-gateway{border-left:5px solid var(--v127-green)!important}
/* Installation : contraste forcé */
.download-app-section{padding-top:46px!important;padding-bottom:46px!important;background:linear-gradient(125deg,#124d29,#176b36 60%,#3f742d)!important}
.download-app-section,.download-app-section *{text-shadow:none!important}
.download-app-section .download-app-copy>.eyebrow{color:#ffe684!important}
.download-app-section .download-app-copy h2{color:#fff!important;font-size:clamp(32px,4vw,52px)!important;line-height:1.1!important;margin:.4rem 0 1rem!important}
.download-app-section .download-app-copy p{color:#f1f8f1!important;font-size:1.05rem!important;max-width:900px!important}
.connection-state,.connection-state strong,.connection-state span{color:#fff!important}
.download-app-grid{gap:16px!important}
.download-choice{border-radius:18px!important;padding:20px!important}
.download-choice h3{color:var(--v127-ink)!important;font-size:1.2rem!important}
.download-choice p{color:#53685c!important}
.download-choice small{color:#687d71!important}
.download-icon{background:var(--v127-green-soft)!important;color:var(--v127-green)!important;border-radius:14px!important}
/* Connexion : plus calme, sans bleu */
.auth-premium-shell{max-width:1100px!important;grid-template-columns:minmax(360px,.86fr) minmax(430px,1.14fr)!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important}
.auth-premium-brand{background:linear-gradient(150deg,#114e29,#176b36 62%,#3f742d)!important;padding:38px!important}
.auth-premium-brand h1,.auth-premium-brand p,.auth-premium-brand strong,.auth-premium-brand small,.auth-premium-brand span,.auth-home-link,.auth-official-note{color:#fff!important}
.auth-emblem-wrap{width:112px!important;height:112px!important;background:#fff!important;border:1px solid rgba(255,255,255,.8)!important;box-shadow:0 12px 26px rgba(0,0,0,.12)!important}
.auth-emblem-wrap img{object-fit:contain!important;padding:8px!important}
.auth-premium-card{background:#fff!important;padding:42px!important}
.auth-card-heading h2{color:var(--v127-ink)!important;font-size:2.25rem!important}
.auth-card-heading p,.auth-security-line p{color:#60756a!important}
.auth-input{border:1px solid #cfddcf!important;background:#fff!important;box-shadow:none!important}
.auth-input:focus-within{border-color:#90b397!important;box-shadow:0 0 0 4px rgba(23,107,54,.08)!important}
.auth-input span{color:#496155!important}
.auth-input input{border:0!important;background:transparent!important}
.auth-submit{background:var(--v127-yellow)!important;color:#263b25!important;box-shadow:none!important}
.auth-actions a{color:var(--v127-green)!important}
/* Module guide : compact, il ne doit plus dominer l'écran */
.module-guide{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important;padding:14px 18px!important;margin:0 0 16px!important;border:1px solid #e4ead9!important;border-left:4px solid var(--v127-yellow)!important;border-radius:16px!important;background:#fffdf5!important;box-shadow:none!important}
.module-guide-icon{width:38px!important;height:38px!important;font-size:20px!important}
.module-guide h2{font-size:1.05rem!important;margin:2px 0!important;color:var(--v127-ink)!important}
.module-guide>div>span{font-size:.68rem!important;color:#71826f!important}
.module-guide p{font-size:.88rem!important;line-height:1.45!important;margin:2px 0!important;color:#607269!important}
.module-guide ul{display:flex!important;flex-wrap:wrap!important;gap:8px 14px!important;margin:0!important;padding:0!important;list-style:none!important;max-width:430px!important}
.module-guide li{font-size:.78rem!important;color:#355343!important;white-space:nowrap!important}
/* Administration : corriger les anciens décalages gauche et fixer le menu à droite */
@media(min-width:981px){
  body.admin-layout .app-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;width:100%!important}
  body.admin-layout .workspace{grid-column:1!important;margin-left:0!important;margin-right:0!important;width:auto!important;max-width:none!important;min-width:0!important}
  body.admin-layout .side-dashboard{grid-column:2!important;position:sticky!important;inset:auto!important;top:0!important;right:0!important;left:auto!important;width:300px!important;min-width:300px!important;max-width:300px!important;height:100vh!important;transform:none!important;margin:0!important;padding:18px 14px!important;background:linear-gradient(180deg,#114e29,#176b36 62%,#3e6929)!important;box-shadow:-10px 0 28px rgba(20,83,45,.14)!important}
  body.admin-layout.sidebar-collapsed .side-dashboard{transform:translateX(102%)!important;visibility:hidden!important}
  body.admin-layout.sidebar-collapsed .app-shell{grid-template-columns:minmax(0,1fr) 0!important}
  body.admin-layout .workspace-topbar{left:auto!important;right:auto!important;width:auto!important;margin:10px 16px 0!important;padding:12px 14px!important;border:1px solid var(--v127-line)!important;border-bottom:3px solid var(--v127-yellow)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 20px rgba(20,83,45,.05)!important}
  body.admin-layout .workspace-content{padding:18px 16px 0!important;max-width:none!important;width:100%!important}
}
/* Menu droit : recherche propre et lisible */
.side-top{margin-bottom:8px!important}
.side-logo{width:58px!important;height:58px!important;border-radius:16px!important;background:#fff!important}
.side-logo img{padding:4px!important;object-fit:contain!important}
.side-menu-search{display:grid!important;grid-template-columns:22px minmax(0,1fr) 34px!important;align-items:center!important;gap:7px!important;margin:4px 0 12px!important;padding:8px!important;background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important}
.side-menu-search>span{color:#fff!important;text-align:center!important}
.side-menu-search input{width:100%!important;min-width:0!important;height:40px!important;margin:0!important;padding:8px 10px!important;background:#fff!important;color:#203a2d!important;border:0!important;border-radius:10px!important;outline:none!important}
.side-menu-search button{width:32px!important;height:32px!important;padding:0!important;border-radius:9px!important;background:rgba(255,255,255,.14)!important;color:#fff!important}
.side-menu-search-empty{color:#eaf5ec!important;padding:0 8px 8px!important}
.side-menu{gap:8px!important;margin-bottom:8px!important}
.side-menu-group{margin:0!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important}
.side-menu-group>summary{min-height:46px!important;padding:11px 12px!important;color:#fff!important;font-size:.91rem!important}
.side-submenu a,.side-menu>a{min-height:42px!important;padding:9px 10px!important;font-size:.86rem!important;color:#f2f8f3!important}
.side-user{margin-top:auto!important;padding:11px!important}
.side-user strong,.side-user small{color:#fff!important}
/* Topbar admin : seulement blanc/vert/jaune */
.workspace-topbar .history-btn,.workspace-topbar .top-actions>a,.workspace-topbar .topbar-action-button{background:#fff!important;color:#245b38!important;border:1px solid #d9e5da!important;box-shadow:none!important}
.workspace-topbar .history-home,.workspace-topbar .global-search-form button{background:var(--v127-yellow)!important;color:#263b25!important;border-color:var(--v127-yellow)!important}
.workspace-welcome strong{color:var(--v127-ink)!important}
.workspace-welcome small{color:#697d72!important}
/* Dashboard */
.dashboard-welcome-v127{background:#fff!important;border:1px solid var(--v127-line)!important;border-left:5px solid var(--v127-yellow)!important;border-top:1px solid var(--v127-line)!important;padding:22px 24px!important;border-radius:20px!important;box-shadow:var(--v127-shadow)!important}
.dashboard-welcome-v127 h1{font-size:clamp(27px,3vw,38px)!important;color:var(--v127-ink)!important}
.dashboard-welcome-v127 p{color:#5a6f63!important}
.dashboard-welcome-v127 .welcome-meta span{background:var(--v127-green-soft)!important;color:#355441!important;border:1px solid #dce9dd!important;border-radius:999px!important;padding:6px 10px!important}
.dashboard-chat-widget-v127{background:#fff!important;border:1px solid var(--v127-line)!important;border-radius:20px!important;box-shadow:var(--v127-shadow)!important;padding:18px!important}
.dashboard-chat-widget-v127 .eyebrow{color:var(--v127-green)!important}
.dashboard-chat-widget-v127 h2{color:var(--v127-ink)!important}
.dashboard-chat-widget-v127 p,.dashboard-chat-widget-v127 small{color:#60746a!important}
.dashboard-chat-widget-v127 .btn-primary{background:var(--v127-yellow)!important;color:#263b25!important;border:0!important}
.kpi-grid-v127{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.kpi-grid-v127 .kpi-card{border-top:0!important;border-left:4px solid var(--v127-green)!important;min-height:118px!important}
.kpi-grid-v127 .kpi-card:nth-child(2){border-left-color:var(--v127-yellow)!important}
.kpi-grid-v127 .kpi-icon{border-radius:14px!important;width:52px!important;height:52px!important;font-size:23px!important}
.kpi-grid-v127 .kpi-card strong{font-size:1.75rem!important;color:var(--v127-ink)!important}
.dashboard-panels-v127{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.dashboard-section-head h2{color:var(--v127-ink)!important}
/* Membres */
.members-heading{background:#fff!important;border:1px solid var(--v127-line)!important;border-left:5px solid var(--v127-green)!important;box-shadow:var(--v127-shadow)!important}
.member-stat-grid{gap:14px!important}.member-stat-card{background:#fff!important;border:1px solid var(--v127-line)!important;border-top:3px solid var(--v127-green)!important;box-shadow:var(--v127-shadow)!important}.member-stat-card.important{border-top-color:var(--v127-yellow)!important}.member-stat-card strong{color:var(--v127-ink)!important}.member-stat-card span,.member-stat-card small{color:#5c7065!important}
.province-directory,.member-directory-card{box-shadow:var(--v127-shadow)!important}
.province-filter-form{background:#f8fbf6!important;border:1px solid #e1ebe0!important;border-radius:16px!important;padding:14px!important}
.province-filter-form select,.province-filter-form input{border:1px solid #ceddce!important;border-radius:11px!important}
.province-chip{background:#fff!important;border:1px solid #d8e6d9!important;color:#31533f!important}.province-chip.selected{background:var(--v127-green)!important;color:#fff!important;border-color:var(--v127-green)!important}.province-chip.selected span,.province-chip.selected strong{color:#fff!important}
.member-list-row{background:#fff!important;border:1px solid #e0e9df!important;border-radius:16px!important;margin-bottom:10px!important;box-shadow:none!important;padding:14px!important}
.member-list-row:hover{border-color:#bed4c1!important;box-shadow:0 8px 20px rgba(20,83,45,.05)!important}
.member-rank{background:var(--v127-yellow-soft)!important;color:#4a4a27!important;border-radius:12px!important}.member-list-name h3{color:var(--v127-ink)!important}.member-list-meta span{color:#63786c!important}
.directory-footer-actions{border-top:1px solid #e2ebe1!important;padding-top:14px!important}.directory-footer-actions a{color:var(--v127-green)!important}
/* Formulaires généraux */
.form,.form-grid,.adhesion-inspired-form{--control-border:#ceddce}
.form input,.form select,.form textarea,.form-grid input,.form-grid select,.form-grid textarea,.filters input,.filters select{border:1px solid var(--control-border)!important;border-left:3px solid #d8c45a!important;box-shadow:none!important}
.form input:focus,.form select:focus,.form textarea:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.filters input:focus,.filters select:focus{border-color:#91b497!important;border-left-color:var(--v127-green)!important;box-shadow:0 0 0 3px rgba(23,107,54,.07)!important}
.section-line{background:#f7fbf5!important;border:1px solid #dce8dc!important;border-left:4px solid var(--v127-green)!important;color:var(--v127-ink)!important}
/* Cartes membre : écran de contrôle */
.card-preview-heading,.card-preview-toolbar,.preview-format-note,.card-face-preview{background:#fff!important;border-color:var(--v127-line)!important;box-shadow:var(--v127-shadow)!important}
.card-preview-heading{border-left:5px solid var(--v127-green)!important}
.card-preview-grid{gap:18px!important}.card-face-preview{padding:18px!important}.card-face-preview>a:has(img){display:block!important;background:#f5f8f3!important;border:1px solid #e0e9df!important;border-radius:14px!important;padding:12px!important}.card-face-preview img{width:100%!important;height:auto!important;object-fit:contain!important;border-radius:8px!important;box-shadow:0 10px 24px rgba(0,0,0,.08)!important}
.card-face-title>span{background:var(--v127-yellow)!important;color:#263b25!important}
/* Santé : conserver un vocabulaire médical mais même identité */
.health-module{--h-primary:#176b36!important;--h-primary-dark:#114e29!important;--h-primary-soft:#eff8f0!important;--h-accent:#e9b91f!important;--h-bg:#f7faf5!important;--h-line:#dce7dc!important}
.health-module .health-sidebar{background:linear-gradient(180deg,#114e29,#176b36 64%,#3f742d)!important}
.health-module .health-topbar{background:#fff!important;border-bottom:2px solid var(--v127-yellow)!important;box-shadow:0 7px 20px rgba(20,83,45,.05)!important}
.health-module .health-page-heading,.health-module .health-dashboard-hero{background:#fff!important;border:1px solid var(--v127-line)!important;border-left:5px solid var(--v127-yellow)!important;color:var(--v127-ink)!important;box-shadow:var(--v127-shadow)!important}
.health-module .health-page-heading h1,.health-module .health-page-heading p,.health-module .health-page-heading span{color:var(--v127-ink)!important}
.health-module .health-kpi-grid>a{background:#fff!important;border:1px solid var(--v127-line)!important;box-shadow:var(--v127-shadow)!important;border-top:0!important;border-left:4px solid var(--v127-green)!important}
.health-module .health-kpi-grid>a:nth-child(even){border-left-color:var(--v127-yellow)!important}
.health-module .health-kpi-icon{background:var(--v127-green-soft)!important;color:var(--v127-green)!important}
.health-module .health-panel{background:#fff!important;border:1px solid var(--v127-line)!important;box-shadow:var(--v127-shadow)!important}
.health-module .health-btn{background:var(--v127-yellow)!important;color:#263b25!important;box-shadow:none!important}.health-module .health-btn.secondary{background:#fff!important;color:var(--v127-green)!important;border:1px solid #d4e2d5!important}
/* Pied de page : une seule masse sombre, sans multiplication de couleurs */
.app-footer.dashboard-style-footer,.fixed-footer,.pro-footer{background:#114e29!important;border-top:4px solid var(--v127-yellow)!important}.app-footer h3{color:#ffe589!important}.app-footer p,.app-footer a,.app-footer span,.app-footer small{color:#f0f6f1!important}
/* Mobile */
@media(max-width:980px){
  .module-guide{grid-template-columns:38px 1fr!important}.module-guide ul{grid-column:1/-1!important;max-width:none!important}.module-guide li{white-space:normal!important}
  .kpi-grid-v127,.dashboard-panels-v127{grid-template-columns:1fr!important}
  .site-header.public-header{min-height:70px!important}.site-header.public-header .brand-block strong{font-size:17px!important}
  .auth-premium-shell{grid-template-columns:1fr!important}.auth-premium-brand{padding:28px!important}.auth-premium-card{padding:28px!important}
}
@media(max-width:620px){
  .download-app-section{padding:30px 14px!important}.download-app-section .download-app-copy h2{font-size:30px!important}
  .member-list-row{grid-template-columns:1fr!important}.member-list-actions{width:100%!important}.member-list-actions .btn{width:100%!important}
  .auth-premium-card{padding:22px 18px!important}
}


/* =========================================================
   CEN V129 — CORRECTIONS VISUELLES GLOBALES
   Basé sur les captures réelles multi-écrans du 09/08/2026.
   ========================================================= */
:root{
  --v129-green:#176b36;
  --v129-green-dark:#114e29;
  --v129-yellow:#e9b91f;
  --v129-ink:#172f25;
  --v129-text:#40594c;
  --v129-line:#d9e7da;
  --v129-page:#f8fbf6;
}
html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important;background:var(--v129-page)!important}
body.public-layout{padding-bottom:0!important}
body.has-watermark:before{opacity:.004!important}

/* 1. Lisibilité générale : texte sombre sur surfaces claires. */
.main-content,.workspace-content,.public-content,.card,.panel-card,.auth-premium-card{color:var(--v129-ink)!important}
.main-content p,.workspace-content p,.public-content p,.card p,.panel-card p,.auth-premium-card p,.main-content li,.workspace-content li,.public-content li{color:var(--v129-text)!important}
input,select,textarea{color:var(--v129-ink)!important}
input::placeholder,textarea::placeholder{color:#6d8276!important;opacity:1!important}

/* 2. Les textes sur fonds sombres doivent toujours rester blancs. */
.side-dashboard,.side-dashboard *:not(input):not(select):not(option),
.auth-premium-brand,.auth-premium-brand *:not(input):not(select):not(option),
.download-app-section .download-app-copy,.download-app-section .download-app-copy *,
.slide-message,.slide-message *,
.app-footer.dashboard-style-footer,.app-footer.dashboard-style-footer *:not(.btn),
.page-loader,.page-loader *{color:#fff!important}
.slide-message strong{color:#fff!important}.slide-message span{color:#eef8f0!important}

/* 3. Menu latéral administratif : TOUJOURS À GAUCHE sur ordinateur. */
@media(min-width:981px){
  body.admin-layout .app-shell{display:block!important;min-height:100vh!important;padding-left:300px!important;position:relative!important}
  body.admin-layout .side-dashboard{
    position:fixed!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;
    width:300px!important;min-width:300px!important;max-width:300px!important;height:100vh!important;
    transform:none!important;visibility:visible!important;margin:0!important;z-index:1200!important;
    background:linear-gradient(180deg,#114e29,#176b36 64%,#3e6929)!important;
    box-shadow:10px 0 28px rgba(20,83,45,.14)!important;
    border-right:1px solid rgba(255,255,255,.12)!important;border-left:0!important;
  }
  body.admin-layout .workspace{width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
  body.admin-layout.sidebar-collapsed .app-shell{padding-left:0!important}
  body.admin-layout.sidebar-collapsed .side-dashboard{transform:translateX(-102%)!important;visibility:hidden!important}
  body.admin-layout .workspace-topbar{margin:0!important;border-radius:0 0 16px 16px!important}
  body.admin-layout .app-footer.dashboard-style-footer{margin-left:18px!important;margin-right:18px!important;width:auto!important}
}
/* Le menu reste plein écran en hauteur : plus d'espace vide en descendant. */
.side-dashboard{min-height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
.side-menu{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-bottom:16px!important}
.side-user,.logout-btn{flex:0 0 auto!important}

/* 4. Recherche latérale propre et lisible. */
.side-menu-search{display:grid!important;grid-template-columns:22px minmax(0,1fr) 36px!important;gap:7px!important;align-items:center!important;padding:8px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:14px!important}
.side-menu-search input{height:40px!important;background:#fff!important;color:#1d3a2a!important;border:0!important;border-radius:10px!important;padding:8px 10px!important;margin:0!important}
.side-menu-search input::placeholder{color:#6c8174!important}
.side-menu-search button{width:34px!important;height:34px!important;background:var(--v129-yellow)!important;color:#263b25!important;border:0!important;border-radius:9px!important}

/* 5. En-tête public : logo/drapeau bien cadrés. */
.site-header.public-header{width:100%!important;margin:0!important;padding:10px clamp(12px,2.2vw,30px)!important;box-sizing:border-box!important;grid-template-columns:82px minmax(0,1fr) 82px!important;overflow:visible!important}
.site-header.public-header .logo-box{width:72px!important;height:64px!important;margin:0!important;padding:5px!important;overflow:hidden!important}
.site-header.public-header .logo-box img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important}
.site-header.public-header .flag-real{width:72px!important;height:48px!important;padding:3px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#fff!important}
.site-header.public-header .flag-real img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:6px!important}
.site-header.public-header .brand-block{min-width:0!important}

/* 6. Navigation publique : ensemble poussé vers la droite sur ordinateur. */
@media(min-width:821px){
  .top-nav.public-nav{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:6px!important;padding:7px clamp(18px,3vw,46px)!important;width:100%!important}
  .top-nav.public-nav a,.top-nav.public-nav .language-select{flex:0 0 auto!important}
  .top-nav.public-nav .public-language{margin-left:10px!important}
}

/* 7. Accueil : supprimer les grandes marges inutiles sur les écrans larges. */
.main-content.public-content{width:100%!important;max-width:1480px!important;margin:0 auto!important;padding:12px clamp(10px,1.8vw,26px) 24px!important}
.public-content>.flash-zone{margin:0 0 12px!important}
.public-content>.flash-zone .flash{margin:0!important}
.public-carousel-compact{margin:12px 0 16px!important}
.welcome-hero,.home-intro,.home-health-gateway,.download-app-section,.president-biography-public,.public-info-strip,.grid.two,.card{scroll-margin-top:70px}

/* 8. Carrousel/fallback : plus d'ellipse géante, textes visibles. */
.carousel-fallback-slide{display:flex!important;align-items:center!important;justify-content:center!important;padding:22px!important}
.carousel-fallback-logo{width:210px!important;height:116px!important;max-width:38vw!important;padding:10px!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 28px rgba(0,0,0,.12)!important}
.carousel-fallback-logo img{width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
.slide-message{max-width:min(540px,56vw)!important;background:rgba(19,84,43,.95)!important;border-left:5px solid var(--v129-yellow)!important}

/* 9. Bloc CEN de l'accueil : retirer l'encadrement sombre peu lisible. */
.welcome-visual{background:#f8fbf7!important;border:1px solid var(--v129-line)!important;backdrop-filter:none!important}
.welcome-visual>img{width:min(260px,90%)!important;height:110px!important;max-height:110px!important;object-fit:contain!important;background:#fff!important;border-radius:16px!important;padding:8px!important;border:1px solid #e2eadf!important;box-shadow:0 10px 24px rgba(20,83,45,.08)!important}
.welcome-badge{background:transparent!important;color:var(--v129-ink)!important;border:0!important;box-shadow:none!important;margin-top:12px!important}
.welcome-badge strong{color:var(--v129-green)!important}.welcome-badge small{color:#5f7468!important;opacity:1!important}

/* 10. Connexion : Retour doit précéder clairement le logo, sans chevauchement. */
.auth-premium-shell{max-width:1240px!important;width:calc(100% - 28px)!important;margin:18px auto!important}
.auth-premium-brand{justify-content:flex-start!important;padding:34px 38px 38px!important}
.auth-home-link{position:static!important;display:inline-flex!important;align-items:center!important;align-self:flex-start!important;margin:0 0 18px!important;padding:8px 0!important;z-index:3!important;text-decoration:none!important}
.auth-emblem-wrap{width:112px!important;height:112px!important;margin:0 0 20px!important;border-radius:22px!important;flex:0 0 auto!important}
.auth-emblem-wrap img{width:100%!important;height:100%!important;object-fit:contain!important;padding:6px!important}
.auth-premium-brand h1{margin-top:14px!important}
.auth-premium-card{padding:42px!important}

/* 11. Loader/progression : texte blanc et message clair. */
.page-loader{background:linear-gradient(135deg,#114e29,#176b36)!important}
.page-loader .loader-minimal{min-width:260px!important;padding:22px 26px!important;border-radius:20px!important;background:rgba(6,45,25,.58)!important;box-shadow:0 18px 48px rgba(0,0,0,.18)!important}
.page-loader .loader-emblem-spin{background:#fff!important;border-radius:18px!important;padding:8px!important;box-shadow:0 10px 24px rgba(0,0,0,.15)!important}
.page-loader .loader-minimal span{font-size:16px!important;font-weight:800!important;color:#fff!important;letter-spacing:.02em!important;text-shadow:0 1px 2px rgba(0,0,0,.18)!important}

/* 12. Mobile public : drapeau visible et menu hamburger fonctionnel. */
@media(max-width:820px){
  body.public-layout{padding-top:58px!important}
  .public-mobile-bar{min-height:58px!important;height:58px!important;padding:6px 10px!important;z-index:2000!important}
  .public-menu-toggle{background:var(--v129-green)!important;color:#fff!important;z-index:2002!important}
  .site-header.public-header{position:relative!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) 52px!important;gap:8px!important;min-height:72px!important;padding:8px 10px!important}
  .site-header.public-header .logo-box{width:54px!important;height:54px!important;border-radius:13px!important;padding:4px!important}
  .site-header.public-header .flag-real{display:flex!important;width:50px!important;height:36px!important;padding:2px!important;justify-self:end!important;overflow:hidden!important}
  .site-header.public-header .flag-real img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
  .site-header.public-header .brand-block strong{font-size:15px!important;line-height:1.1!important}
  .site-header.public-header .brand-block span,.site-header.public-header .brand-block em{font-size:9px!important;line-height:1.2!important}
  #public-main-nav.public-nav{position:fixed!important;top:0!important;left:0!important;right:auto!important;bottom:0!important;width:min(86vw,340px)!important;height:100dvh!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;padding:72px 12px 20px!important;background:#fff!important;transform:translateX(-110%)!important;visibility:visible!important;opacity:1!important;z-index:1995!important;overflow-y:auto!important;box-shadow:18px 0 44px rgba(10,42,27,.24)!important}
  #public-main-nav.public-nav.is-open{display:flex!important;transform:translateX(0)!important;visibility:visible!important;opacity:1!important}
  .public-menu-backdrop{z-index:1985!important}
  #public-main-nav.public-nav a,#public-main-nav.public-nav .language-select{width:100%!important;min-height:48px!important;justify-content:flex-start!important;text-align:left!important;color:#214b32!important;background:#f8fbf7!important;border:1px solid #e1ebe1!important;border-radius:12px!important;padding:11px 13px!important}
  #public-main-nav.public-nav .public-login-link{background:var(--v129-yellow)!important;color:#263b25!important;border-color:var(--v129-yellow)!important}
  .main-content.public-content{padding:8px 8px 20px!important;max-width:100%!important}
  .public-carousel-compact{height:210px!important;border-radius:14px!important;margin:8px 0 12px!important}
  .carousel-fallback-logo{width:126px!important;height:80px!important;max-width:36vw!important;padding:7px!important}
  .slide-message{left:auto!important;right:10px!important;bottom:12px!important;width:min(68vw,420px)!important;max-width:none!important;padding:12px 14px!important;border-radius:14px!important}
  .slide-message strong{font-size:16px!important}.slide-message span{font-size:12px!important;line-height:1.4!important}
  .auth-premium-shell{width:calc(100% - 12px)!important;margin:6px auto!important;border-radius:18px!important}
  .auth-premium-brand{padding:22px 18px!important}
  .auth-home-link{margin-bottom:12px!important}
  .auth-emblem-wrap{width:86px!important;height:86px!important;margin-bottom:12px!important}
  .auth-premium-card{padding:24px 18px!important}
}
@media(max-width:480px){
  /* Contrairement aux anciennes règles, ne jamais masquer le drapeau RDC. */
  .site-header.public-header{grid-template-columns:52px minmax(0,1fr) 46px!important}
  .site-header.public-header .flag-real{display:flex!important;width:44px!important;height:32px!important}
  .site-header.public-header .logo-box{width:48px!important;height:48px!important}
  .public-mobile-brand{font-size:17px!important}
  .public-mobile-login{font-size:13px!important;padding:0 10px!important}
  .slide-message{width:70vw!important;right:8px!important}
}

/* 13. Communiqués : ne pas réserver d'espace blanc inutile. */
.enhanced-ticker{height:30px!important;min-height:30px!important}
body:not(.public-layout) .enhanced-ticker{bottom:0!important}
.public-layout .enhanced-ticker{position:fixed!important;bottom:0!important}
.public-layout:has(.enhanced-ticker) .app-footer.public-footer{padding-bottom:44px!important}

/* 14. Boutons flottants moins envahissants sur mobile. */
@media(max-width:700px){
  .install-pwa-button,.floating-help{right:10px!important;transform:scale(.90)!important;transform-origin:right center!important}
}


/* =========================================================
   CEN V130 — EN-TÊTE PUBLIC FIXE
   L'identité CEN reste visible au défilement de l'accueil.
   ========================================================= */
body.public-layout>.site-header.public-header{
  position:sticky!important;
  top:0!important;
  z-index:1800!important;
  width:100%!important;
  margin:0!important;
  background:#fff!important;
  box-shadow:0 7px 20px rgba(20,83,45,.08)!important;
}
@media(min-width:781px){
  body.public-layout>.top-nav.public-nav{
    position:sticky!important;
    top:82px!important;
    z-index:1790!important;
  }
}
@media(max-width:780px){
  body.public-layout>.site-header.public-header{
    position:sticky!important;
    top:0!important;
    z-index:1800!important;
  }
  /* Le menu mobile est un panneau indépendant ; ne pas le coincer sous l'entête. */
  body.public-layout>.top-nav.public-nav{
    top:0!important;
  }
}

/* =========================================================
   CEN V131 — NORMALISATION RESPONSIVE MULTI-ECRANS
   ========================================================= */
:root{
  --v131-green:#145b30;
  --v131-green-2:#1c743d;
  --v131-green-3:#315f2d;
  --v131-yellow:#efbf18;
  --v131-cream:#fffdf4;
  --v131-bg:#f5f8f2;
  --v131-ink:#173329;
  --v131-text:#3f564a;
  --v131-line:#d9e5d8;
  --v131-side-width:292px;
  --v131-public-gutter:clamp(12px,2.2vw,34px);
}
html,body{max-width:100%;overflow-x:hidden}
body{background:var(--v131-bg)!important;color:var(--v131-ink)!important}
body.has-watermark:before{opacity:.012!important;background-size:min(300px,32vw) auto!important}

/* 1. En-tete public inspire du footer : vert institutionnel, texte blanc. */
body.public-layout>.site-header.public-header{
  position:sticky!important;top:0!important;z-index:1810!important;
  width:100%!important;max-width:none!important;margin:0!important;
  min-height:92px!important;padding:10px var(--v131-public-gutter)!important;
  display:grid!important;grid-template-columns:84px minmax(0,1fr) 82px!important;align-items:center!important;gap:18px!important;
  background:linear-gradient(135deg,#104c29 0%,#145b30 55%,#285f2c 100%)!important;
  border:0!important;border-bottom:3px solid var(--v131-yellow)!important;border-radius:0!important;
  box-shadow:0 8px 22px rgba(17,75,41,.16)!important;
}
.site-header.public-header .brand-block strong,.site-header.public-header .brand-block span,.site-header.public-header .brand-block em{color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.12)!important}
.site-header.public-header .brand-block strong{font-size:clamp(21px,2vw,30px)!important;line-height:1.1!important;letter-spacing:.045em!important}
.site-header.public-header .brand-block span{font-size:clamp(12px,1vw,15px)!important;font-weight:750!important;margin-top:3px!important}
.site-header.public-header .brand-block em{font-size:clamp(10px,.9vw,13px)!important;opacity:.9!important;margin-top:4px!important}
.site-header.public-header .logo-box{width:72px!important;height:72px!important;padding:6px!important;background:#fff!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.7)!important;box-shadow:0 6px 16px rgba(0,0,0,.14)!important}
.site-header.public-header .logo-box img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important}
.site-header.public-header .flag-real{width:76px!important;height:52px!important;padding:3px!important;background:#fff!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:11px!important;box-shadow:0 5px 14px rgba(0,0,0,.13)!important;overflow:hidden!important}
.site-header.public-header .flag-real img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:7px!important}

/* 2. Navigation publique distincte, fixe sous l'en-tete et alignee a droite. */
body.public-layout>.top-nav.public-nav{
  position:sticky!important;top:var(--public-header-height,92px)!important;z-index:1800!important;
  width:100%!important;max-width:none!important;margin:0!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important;
  padding:8px var(--v131-public-gutter)!important;
  background:linear-gradient(180deg,#f9fcf4,#edf6ec)!important;
  border:0!important;border-bottom:1px solid #d6e3d4!important;box-shadow:0 5px 14px rgba(20,91,48,.055)!important;
}
.top-nav.public-nav a{min-height:40px!important;padding:9px 13px!important;border-radius:11px!important;color:#244f35!important;font-size:14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
.top-nav.public-nav a:hover,.top-nav.public-nav a:focus{background:#fff!important;color:#104c29!important;box-shadow:0 3px 10px rgba(20,91,48,.07)!important}
.top-nav.public-nav .public-login-link{background:linear-gradient(135deg,var(--v131-yellow),#f7d85c)!important;color:#264225!important;padding-inline:18px!important}
.top-nav.public-nav .public-language{margin-left:8px!important;min-width:118px!important;background:#fff!important;border:1px solid #d4e1d2!important;color:#244f35!important}

/* 3. Marges uniformes : contenu large et professionnel sur tous les ecrans. */
body.public-layout .main-content.public-content{width:100%!important;max-width:none!important;margin:0!important;padding:14px var(--v131-public-gutter) 28px!important;box-sizing:border-box!important}
body.public-layout .public-content>*{max-width:1560px;margin-left:auto;margin-right:auto}
body.public-layout .public-content>.public-carousel-compact,
body.public-layout .public-content>.welcome-hero,
body.public-layout .public-content>.download-app-section,
body.public-layout .public-content>.public-info-strip{max-width:1700px!important}

/* 4. Connexion : exploite correctement les grands ecrans. */
body.public-layout .public-content:has(.auth-premium-shell){padding-top:16px!important}
.auth-premium-shell{width:min(94vw,1320px)!important;max-width:1320px!important;min-height:580px!important;margin:14px auto 24px!important;grid-template-columns:minmax(390px,.9fr) minmax(480px,1.1fr)!important;border-radius:24px!important}
.auth-premium-brand{padding:34px 38px!important;justify-content:center!important}
.auth-home-link{position:static!important;display:inline-flex!important;align-self:flex-start!important;margin:0 0 18px!important;color:#fff!important;font-weight:800!important;opacity:.95!important}
.auth-emblem-wrap{width:98px!important;height:98px!important;margin:0 0 22px!important;padding:8px!important;border-radius:22px!important}
.auth-premium-brand h1{font-size:clamp(2rem,3vw,3.1rem)!important;line-height:1.06!important;color:#fff!important}
.auth-premium-brand p,.auth-premium-brand small,.auth-premium-brand strong,.auth-premium-brand span{color:#fff!important}
.auth-premium-card{padding:clamp(30px,4vw,56px)!important}
.auth-premium-card p,.auth-premium-card label,.auth-premium-card small{color:#43584d!important}
.auth-input input{color:#193429!important;background:#fff!important}.auth-input input::placeholder{color:#75887d!important;opacity:1!important}

/* 5. Menu lateral administrateur : toujours a gauche et fixe. */
@media(min-width:981px){
  body.admin-layout .app-shell{display:block!important;min-height:100vh!important;padding-left:var(--v131-side-width)!important}
  body.admin-layout .side-dashboard{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:auto!important;width:var(--v131-side-width)!important;height:100vh!important;max-height:100vh!important;z-index:1400!important;transform:none!important;visibility:visible!important;overflow:hidden!important;padding:14px 12px!important;background:linear-gradient(180deg,#104c29 0%,#145b30 55%,#315f2d 100%)!important;box-shadow:10px 0 28px rgba(20,91,48,.16)!important;border:0!important}
  body.admin-layout .workspace{margin:0!important;width:100%!important;min-width:0!important}
  body.admin-layout.sidebar-collapsed .app-shell{padding-left:0!important}
  body.admin-layout.sidebar-collapsed .side-dashboard{transform:translateX(-104%)!important;visibility:hidden!important;pointer-events:none!important}
  body.admin-layout.sidebar-collapsed .workspace{margin-left:0!important}
}
.side-dashboard .side-top{flex:0 0 auto!important}.side-brand{margin:4px 0 10px!important;padding:0 0 10px!important;min-height:76px!important}.side-logo{width:70px!important;height:70px!important;border-radius:18px!important;padding:5px!important;flex:none!important}.side-logo img{object-fit:contain!important;padding:0!important}.side-brand strong{font-size:15px!important;color:#fff!important}.side-brand small{font-size:12px!important;color:rgba(255,255,255,.85)!important}
.side-menu-search{flex:0 0 auto!important;margin:0 0 10px!important;padding:7px!important;display:grid!important;grid-template-columns:26px minmax(0,1fr) 38px!important;align-items:center!important;gap:6px!important;background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:15px!important}
.side-menu-search>span{color:#fff!important;text-align:center!important}.side-menu-search input{width:100%!important;min-width:0!important;height:40px!important;margin:0!important;padding:8px 10px!important;background:#fff!important;color:#1d3929!important;border:1px solid #d8e6d7!important;border-radius:10px!important;font-size:13px!important}.side-menu-search input::placeholder{color:#687d70!important;opacity:1!important}.side-menu-search button{width:36px!important;height:36px!important;margin:0!important;border:0!important;border-radius:10px!important;background:var(--v131-yellow)!important;color:#294326!important;font-size:18px!important}
.side-menu{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 3px 10px 0!important;margin:0!important;overscroll-behavior:contain!important}
.side-menu-group{margin:0 0 7px!important;border-radius:13px!important}.side-menu-group>summary{min-height:46px!important;padding:10px 12px!important;font-size:13px!important;line-height:1.35!important}.side-submenu a,.side-menu>a{padding:9px 10px!important;min-height:40px!important;font-size:13px!important}
.side-user{flex:0 0 auto!important;margin:8px 0 6px!important;padding:10px!important;border-radius:15px!important}.side-user strong{color:#fff!important}.side-user small{color:rgba(255,255,255,.86)!important}.logout-btn{flex:0 0 auto!important;margin:0!important;min-height:44px!important;padding:11px!important;border-radius:12px!important}

/* 6. Tableau de bord : topbar verte, fixe, compactable et masquable. */
body.admin-layout .workspace-topbar{position:sticky!important;top:0!important;z-index:1300!important;margin:0!important;border-radius:0!important;padding:12px 18px!important;min-height:72px!important;background:linear-gradient(135deg,#104c29,#145b30 62%,#315f2d)!important;border:0!important;border-bottom:3px solid var(--v131-yellow)!important;box-shadow:0 7px 20px rgba(20,91,48,.14)!important;color:#fff!important;transition:min-height .2s ease,padding .2s ease,transform .2s ease,opacity .2s ease!important}
body.admin-layout .workspace-topbar strong,body.admin-layout .workspace-topbar small,body.admin-layout .workspace-topbar span{color:#fff!important}
body.admin-layout .workspace-topbar .top-date{border-left-color:rgba(255,255,255,.24)!important}.workspace-topbar .top-date strong{color:#ffe584!important}.workspace-topbar .history-btn,.workspace-topbar .top-action-notifications,.workspace-topbar .top-action-support,.workspace-topbar .top-action-security,.workspace-topbar .top-action-public,.workspace-topbar .topbar-action-button{background:rgba(255,255,255,.11)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;box-shadow:none!important}.workspace-topbar .global-search-form input,.workspace-topbar .language-select{background:#fff!important;color:#193429!important;border-color:#d8e6d7!important}.workspace-topbar .global-search-form input::placeholder{color:#71847a!important}
body.admin-layout.topbar-compact .workspace-topbar{min-height:54px!important;padding-top:6px!important;padding-bottom:6px!important}.topbar-hidden .workspace-topbar{transform:translateY(-105%)!important;opacity:0!important;pointer-events:none!important;position:fixed!important}.topbar-hide-toggle{font-size:20px!important}.topbar-restore-button{position:fixed!important;top:10px!important;right:18px!important;z-index:1350!important;background:var(--v131-yellow)!important;color:#263d25!important;border:0!important;border-radius:999px!important;padding:9px 14px!important;font-weight:900!important;box-shadow:0 8px 24px rgba(20,91,48,.18)!important;cursor:pointer!important}
body.admin-layout .workspace-content{width:100%!important;max-width:none!important;padding:18px clamp(14px,1.8vw,28px) 0!important;margin:0!important}

/* 7. Dashboard : palette limitee vert / jaune, lisibilite forte. */
.dashboard-welcome,.production-welcome{border:1px solid var(--v131-line)!important;border-top:5px solid var(--v131-yellow)!important;background:#fff!important;box-shadow:0 10px 26px rgba(20,91,48,.06)!important}.dashboard-welcome h1,.dashboard-welcome p{color:var(--v131-ink)!important}.dashboard-welcome .eyebrow{color:var(--v131-green)!important}.kpi-card,.panel-card,.card{border-color:var(--v131-line)!important;box-shadow:0 8px 22px rgba(20,91,48,.045)!important}.kpi-icon.blue,.kpi-icon.red{background:linear-gradient(135deg,#176b38,#2f8a4e)!important}.kpi-icon.yellow{background:linear-gradient(135deg,var(--v131-yellow),#f6da64)!important;color:#294326!important}

/* 8. Footer compact, sans donnees fictives. */
.app-footer.dashboard-style-footer{width:100%!important;max-width:none!important;margin:22px 0 0!important;border-radius:0!important;padding:26px var(--v131-public-gutter) 54px!important;grid-template-columns:minmax(220px,1.15fr) minmax(220px,1.2fr) minmax(180px,.85fr) minmax(180px,.85fr)!important;gap:clamp(18px,2.3vw,34px)!important;background:linear-gradient(135deg,#104c29,#145b30 62%,#315f2d)!important;border-top:4px solid var(--v131-yellow)!important}.app-footer.dashboard-style-footer h3{font-size:17px!important;color:#ffe584!important}.app-footer.dashboard-style-footer p,.app-footer.dashboard-style-footer a,.app-footer.dashboard-style-footer span,.app-footer.dashboard-style-footer small{font-size:14px!important;color:#f3f8f4!important;line-height:1.55!important}.footer-logo{width:64px!important;height:64px!important;border-radius:16px!important;padding:4px!important}.language-card{display:none!important}.official-contact-footer{grid-column:1/-1!important;margin:2px 0 0!important;padding-top:10px!important}.official-contact-items{gap:9px!important}.official-contact-items>a{min-height:46px!important;padding:8px 12px!important;border-radius:12px!important;background:rgba(255,255,255,.08)!important}.official-contact-items b{width:32px!important;height:32px!important;background:#fff!important;color:#145b30!important}.footer-bottom{font-size:12px!important;padding:10px var(--v131-public-gutter)!important;background:rgba(5,42,22,.6)!important}

/* 9. Contacts tactiles et visibles. */
.footer-contact-row a,.socials a,.official-contact-items>a{-webkit-tap-highlight-color:transparent!important}.socials{gap:9px!important}.socials a{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:12px!important;background:#fff!important;color:#145b30!important;font-size:14px!important;display:inline-grid!important;place-items:center!important}

/* 10. Loader : texte et progression nets. */
.page-loader{background:linear-gradient(135deg,#104c29,#145b30)!important}.page-loader .loader-minimal{background:rgba(8,47,25,.86)!important;border:1px solid rgba(255,255,255,.18)!important}.page-loader .loader-minimal span{color:#fff!important;font-size:16px!important;font-weight:900!important;opacity:1!important;text-shadow:none!important}.loader-progress{background:rgba(255,255,255,.18)!important}.loader-progress span{background:linear-gradient(90deg,#ffe06a,var(--v131-yellow),#fff2a8)!important}

/* 11. Mobile / tablette : drapeau visible, menu hamburger fiable. */
@media(max-width:980px){
  body.admin-layout .app-shell{display:block!important;padding-left:0!important}.side-dashboard{position:fixed!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;width:min(88vw,340px)!important;height:100dvh!important;max-height:100dvh!important;transform:translateX(-105%)!important;z-index:2000!important;padding:12px!important}.side-dashboard .side-menu{max-height:none!important}.side-open .side-dashboard{transform:translateX(0)!important}
  body.admin-layout .workspace-topbar{padding:9px 10px 9px 64px!important;min-height:64px!important}
  body.public-layout>.site-header.public-header{grid-template-columns:58px minmax(0,1fr) 58px!important;min-height:72px!important;padding:7px 10px!important;gap:8px!important}
  .site-header.public-header .logo-box{width:52px!important;height:52px!important;padding:4px!important;border-radius:12px!important}.site-header.public-header .flag-real{display:flex!important;width:54px!important;height:38px!important;padding:2px!important;border-radius:9px!important}.site-header.public-header .brand-block strong{font-size:16px!important}.site-header.public-header .brand-block span{font-size:10px!important}.site-header.public-header .brand-block em{font-size:9px!important}
  .public-mobile-bar{position:sticky!important;top:0!important;z-index:1820!important;background:#104c29!important;border-bottom:2px solid var(--v131-yellow)!important;color:#fff!important}.public-mobile-brand,.public-mobile-login{color:#fff!important}.public-menu-toggle{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.2)!important}
  body.public-layout>.top-nav.public-nav{position:fixed!important;top:0!important;left:0!important;bottom:0!important;right:auto!important;width:min(86vw,340px)!important;height:100dvh!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:7px!important;padding:72px 12px 20px!important;background:#fff!important;transform:translateX(-110%)!important;transition:transform .22s ease!important;z-index:2100!important;overflow-y:auto!important;box-shadow:18px 0 42px rgba(14,60,31,.24)!important}
  body.public-layout>.top-nav.public-nav.is-open{transform:translateX(0)!important}
  #public-main-nav.public-nav a,#public-main-nav.public-nav .language-select{width:100%!important;min-height:48px!important;margin:0!important;text-align:left!important;justify-content:flex-start!important;color:#244f35!important;background:#f7fbf6!important;border:1px solid #dfeade!important;border-radius:12px!important;padding:11px 13px!important}
  #public-main-nav.public-nav .public-login-link{background:var(--v131-yellow)!important;color:#294326!important}
  .public-menu-backdrop.is-open{display:block!important;position:fixed!important;inset:0!important;background:rgba(9,39,22,.42)!important;z-index:2090!important}
  body.public-layout .main-content.public-content{padding:10px 10px 22px!important}
  .auth-premium-shell{width:100%!important;max-width:720px!important;grid-template-columns:1fr!important;margin:8px auto 18px!important;border-radius:18px!important;min-height:0!important}.auth-premium-brand{padding:22px!important}.auth-home-link{margin-bottom:12px!important}.auth-emblem-wrap{width:82px!important;height:82px!important;margin-bottom:14px!important}.auth-premium-card{padding:24px 20px!important}
  .app-footer.dashboard-style-footer{grid-template-columns:1fr 1fr!important;padding:24px 16px 52px!important;gap:20px!important}.official-contact-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.official-contact-items>a{width:100%!important}
}
@media(max-width:620px){
  body.public-layout>.site-header.public-header{grid-template-columns:52px minmax(0,1fr) 52px!important}.site-header.public-header .logo-box{width:48px!important;height:48px!important}.site-header.public-header .flag-real{width:48px!important;height:34px!important}.site-header.public-header .brand-block strong{font-size:14px!important;letter-spacing:.02em!important}.site-header.public-header .brand-block span{font-size:9px!important}.site-header.public-header .brand-block em{font-size:8px!important}
  .app-footer.dashboard-style-footer{grid-template-columns:1fr!important}.official-contact-items{grid-template-columns:1fr!important}.footer-about p{max-width:none!important}.official-contact-items>a{font-size:13px!important}
}

/* 12. Ecrans tres larges : pas d'interface minuscule au centre. */
@media(min-width:1600px){
  :root{--v131-public-gutter:clamp(28px,3vw,60px);--v131-side-width:310px}
  body{font-size:16px!important}.workspace-content,.public-content{font-size:16px!important}.auth-premium-shell{width:min(88vw,1480px)!important;max-width:1480px!important}.auth-premium-brand,.auth-premium-card{padding:54px!important}.dashboard-welcome h1{font-size:36px!important}
}


/* =========================================================
   CEN V132 — BARRES FIXES SANS CLIGNOTEMENT
   Ces règles finales prennent priorité sur les anciennes couches.
   ========================================================= */
:root{
  --v132-side-width:300px;
  --v132-admin-topbar-h:86px;
  --v132-admin-topbar-compact-h:60px;
  --v132-public-header-h:102px;
  --v132-public-nav-h:60px;
  --v132-mobile-bar-h:48px;
  --v132-mobile-header-h:72px;
  --v132-green:#145b30;
  --v132-green-dark:#104c29;
  --v132-yellow:#efbd13;
  --v132-line:#dce8dc;
}

/* Aucune transition de taille/position sur les barres fixes : élimine le clignotement. */
.workspace-topbar,.site-header.public-header,.top-nav.public-nav{
  transition:none!important;
  animation:none!important;
  transform:none!important;
}

/* ---------------- ADMIN : menu gauche + topbar fixe ---------------- */
@media(min-width:981px){
  body.admin-layout{overflow-x:hidden!important}
  body.admin-layout .app-shell{display:block!important;min-height:100vh!important;padding-left:var(--v132-side-width)!important}
  body.admin-layout .side-dashboard{
    position:fixed!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;
    width:var(--v132-side-width)!important;height:100vh!important;max-height:100vh!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
    padding:14px 12px 12px!important;z-index:1400!important;
    background:linear-gradient(180deg,#104c29 0%,#176b38 60%,#315f2d 100%)!important;
    box-shadow:12px 0 30px rgba(15,71,37,.16)!important;
  }
  body.admin-layout .side-top,
  body.admin-layout .side-menu-search,
  body.admin-layout .side-menu-search-empty,
  body.admin-layout .side-search-results,
  body.admin-layout .side-user,
  body.admin-layout .logout-btn{flex:0 0 auto!important}
  body.admin-layout .side-menu{
    flex:1 1 auto!important;min-height:0!important;max-height:none!important;
    overflow-y:auto!important;overflow-x:hidden!important;margin:8px 0!important;padding:0 4px 10px 0!important;
    overscroll-behavior:contain!important;
  }
  body.admin-layout .side-user{margin:8px 0 6px!important;padding:10px 11px!important;min-height:66px!important}
  body.admin-layout .logout-btn{
    display:flex!important;align-items:center!important;justify-content:center!important;
    min-height:48px!important;margin:0!important;padding:11px 12px!important;
    background:#ffe2e7!important;color:#951c38!important;border-radius:14px!important;
    font-weight:900!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:2!important;
  }
  body.admin-layout .workspace{margin:0!important;min-width:0!important;width:100%!important}
  body.admin-layout .workspace-topbar{
    position:fixed!important;left:var(--v132-side-width)!important;right:0!important;top:0!important;
    width:auto!important;height:var(--v132-admin-topbar-h)!important;min-height:var(--v132-admin-topbar-h)!important;max-height:var(--v132-admin-topbar-h)!important;
    margin:0!important;padding:12px 18px!important;border-radius:0!important;
    z-index:1300!important;overflow:hidden!important;
    background:linear-gradient(100deg,#104c29,#145b30 66%,#315f2d)!important;
    border:0!important;border-bottom:3px solid var(--v132-yellow)!important;
    box-shadow:0 8px 22px rgba(15,71,37,.12)!important;
  }
  body.admin-layout.topbar-compact .workspace-topbar{
    height:var(--v132-admin-topbar-compact-h)!important;min-height:var(--v132-admin-topbar-compact-h)!important;max-height:var(--v132-admin-topbar-compact-h)!important;
    padding-top:6px!important;padding-bottom:6px!important;
  }
  body.admin-layout .workspace-content{padding-top:calc(var(--v132-admin-topbar-h) + 16px)!important}
  body.admin-layout.topbar-compact .workspace-content{padding-top:calc(var(--v132-admin-topbar-compact-h) + 16px)!important}
  body.admin-layout.topbar-hidden .workspace-topbar{display:none!important}
  body.admin-layout.topbar-hidden .workspace-content{padding-top:18px!important}
  body.admin-layout.sidebar-collapsed .app-shell{padding-left:0!important}
  body.admin-layout.sidebar-collapsed .side-dashboard{transform:translateX(-105%)!important;visibility:hidden!important}
  body.admin-layout.sidebar-collapsed .workspace-topbar{left:0!important}
}

/* ---------------- PUBLIC : deux barres toujours fixes, même largeur ---------------- */
@media(min-width:981px){
  body.public-layout{padding-top:calc(var(--v132-public-header-h) + var(--v132-public-nav-h))!important}
  body.public-layout>.site-header.public-header{
    position:fixed!important;top:0!important;left:0!important;right:0!important;
    width:100vw!important;height:var(--v132-public-header-h)!important;min-height:var(--v132-public-header-h)!important;max-height:var(--v132-public-header-h)!important;
    margin:0!important;padding:10px clamp(18px,2.4vw,34px)!important;z-index:1800!important;
    background:linear-gradient(100deg,#104c29,#145b30 64%,#315f2d)!important;
    border:0!important;border-bottom:3px solid var(--v132-yellow)!important;box-shadow:none!important;
  }
  body.public-layout>.site-header.public-header .brand-block strong,
  body.public-layout>.site-header.public-header .brand-block span,
  body.public-layout>.site-header.public-header .brand-block em{color:#fff!important}
  body.public-layout>.site-header.public-header .logo-box{width:74px!important;height:72px!important}
  body.public-layout>.site-header.public-header .flag-real{width:76px!important;height:54px!important}
  body.public-layout>.top-nav.public-nav{
    position:fixed!important;top:var(--v132-public-header-h)!important;left:0!important;right:0!important;
    width:100vw!important;height:var(--v132-public-nav-h)!important;min-height:var(--v132-public-nav-h)!important;max-height:var(--v132-public-nav-h)!important;
    margin:0!important;padding:7px clamp(24px,3.2vw,52px)!important;z-index:1790!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;
    overflow:hidden!important;background:#f2f8f0!important;border:0!important;border-bottom:1px solid #d8e6d7!important;box-shadow:0 5px 15px rgba(18,72,38,.05)!important;
  }
  body.public-layout>.top-nav.public-nav a,
  body.public-layout>.top-nav.public-nav .language-select{flex:0 0 auto!important}
  body.public-layout .public-mobile-bar{display:none!important}
}

/* Contenu public : largeur professionnelle sans bandes latérales exagérées. */
body.public-layout .main-content.public-content{
  width:100%!important;max-width:none!important;margin:0!important;
  padding-left:clamp(18px,2.4vw,36px)!important;padding-right:clamp(18px,2.4vw,36px)!important;
}
body.public-layout .public-carousel-compact,
body.public-layout .welcome-hero,
body.public-layout .download-app-section,
body.public-layout .home-intro,
body.public-layout .home-health-gateway,
body.public-layout .president-biography-public,
body.public-layout .public-info-strip,
body.public-layout .grid,
body.public-layout .card{
  max-width:none!important;
}

/* Footer public et communiqués sur exactement la largeur de l'écran. */
body.public-layout>.app-footer.public-footer.dashboard-style-footer{
  width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
  border-radius:0!important;box-sizing:border-box!important;
}
body.public-layout>.communique-ticker{
  left:0!important;right:0!important;width:100vw!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;
}

/* ---------------- MOBILE : barre + en-tête fixes, menu tiroir ---------------- */
@media(max-width:980px){
  body.public-layout{padding-top:calc(var(--v132-mobile-bar-h) + var(--v132-mobile-header-h))!important}
  body.public-layout .public-mobile-bar{
    display:flex!important;position:fixed!important;top:0!important;left:0!important;right:0!important;
    width:100vw!important;height:var(--v132-mobile-bar-h)!important;min-height:var(--v132-mobile-bar-h)!important;
    z-index:2050!important;margin:0!important;
  }
  body.public-layout>.site-header.public-header{
    position:fixed!important;top:var(--v132-mobile-bar-h)!important;left:0!important;right:0!important;
    width:100vw!important;height:var(--v132-mobile-header-h)!important;min-height:var(--v132-mobile-header-h)!important;max-height:var(--v132-mobile-header-h)!important;
    margin:0!important;z-index:2040!important;background:linear-gradient(100deg,#104c29,#145b30 64%,#315f2d)!important;
    border-bottom:3px solid var(--v132-yellow)!important;overflow:hidden!important;
  }
  body.public-layout>.site-header.public-header .brand-block strong,
  body.public-layout>.site-header.public-header .brand-block span,
  body.public-layout>.site-header.public-header .brand-block em{color:#fff!important}
  body.public-layout>.top-nav.public-nav{
    top:0!important;height:100dvh!important;max-height:100dvh!important;
    z-index:2200!important;
  }
  body.public-layout .public-menu-backdrop.is-open{z-index:2190!important}
  body.public-layout .main-content.public-content{padding-left:10px!important;padding-right:10px!important}
}

/* Sécurité visuelle : aucun agrandissement de barre au scroll ou au focus. */
.workspace-topbar:focus-within,.site-header.public-header:focus-within,.top-nav.public-nav:focus-within{
  min-height:inherit!important;
}


/* =========================================================
   CEN V133 — CARROUSEL & MOBILE
   Légende éloignée du visuel, Connexion à droite sur mobile,
   densité/espacements responsive et confort tactile général.
   ========================================================= */
:root{
  --v133-green:#145b30;
  --v133-green-dark:#104c29;
  --v133-yellow:#efbd13;
  --v133-line:#d8e6d8;
  --v133-mobile-gutter:12px;
}

/* 1) Carrousel : la légende devient un bloc réellement séparé du visuel. */
.public-carousel-compact{min-height:320px!important;height:clamp(320px,31vw,430px)!important;background:#145b30!important}
.public-carousel-compact .slide{background-position:center!important}
.public-carousel-compact .slide-message{
  position:absolute!important;
  right:clamp(28px,5.5vw,82px)!important;
  bottom:clamp(26px,4.5vw,62px)!important;
  left:auto!important;top:auto!important;
  width:min(43%,570px)!important;max-width:570px!important;
  padding:22px 24px!important;margin:0!important;
  border-left:5px solid var(--v133-yellow)!important;
  border-radius:18px!important;
  background:rgba(10,77,39,.94)!important;
  box-shadow:0 18px 42px rgba(3,42,20,.22)!important;
  backdrop-filter:blur(8px)!important;
  z-index:5!important;
}
.public-carousel-compact .slide-message strong{display:block!important;color:#fff!important;font-size:clamp(20px,2vw,30px)!important;line-height:1.2!important;margin:0 0 10px!important}
.public-carousel-compact .slide-message span{display:block!important;color:#f4faf5!important;font-size:clamp(14px,1.25vw,17px)!important;line-height:1.65!important}
.carousel-fallback-slide{display:flex!important;align-items:center!important;justify-content:flex-start!important;padding:clamp(30px,5vw,72px)!important}
.carousel-fallback-logo{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:min(34%,420px)!important;height:min(62%,220px)!important;margin:0!important;padding:14px!important;background:#fff!important;border-radius:24px!important;box-shadow:0 14px 34px rgba(0,0,0,.13)!important;z-index:4!important}
.carousel-fallback-logo img{width:100%!important;height:100%!important;object-fit:contain!important;background:transparent!important;border-radius:0!important;padding:4px!important;box-shadow:none!important}
.carousel-control{z-index:8!important}
.carousel-dots{z-index:8!important;bottom:14px!important}

/* 2) Largeur et rythme global plus homogènes. */
body.public-layout .main-content.public-content{padding-left:clamp(14px,2.35vw,34px)!important;padding-right:clamp(14px,2.35vw,34px)!important}
body.public-layout .public-carousel-compact,
body.public-layout .welcome-hero,
body.public-layout .download-app-section,
body.public-layout .home-intro,
body.public-layout .home-health-gateway,
body.public-layout .president-biography-public,
body.public-layout .public-info-strip,
body.public-layout .grid{width:100%!important;box-sizing:border-box!important}
.card,.panel-card,.download-choice,.home-intro-card{overflow-wrap:anywhere!important}

/* 3) Mobile : barre supérieure compacte, Connexion toujours ancrée à droite. */
@media(max-width:980px){
  :root{--v132-mobile-bar-h:58px;--v132-mobile-header-h:72px}
  body.public-layout .public-mobile-bar{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr) auto!important;
    align-items:center!important;gap:8px!important;
    height:var(--v132-mobile-bar-h)!important;min-height:var(--v132-mobile-bar-h)!important;
    padding:7px 10px!important;
    background:#fff!important;border-bottom:1px solid var(--v133-line)!important;
    box-shadow:0 6px 18px rgba(16,76,41,.10)!important;
  }
  .public-menu-toggle{grid-column:1!important;width:44px!important;height:44px!important;margin:0!important;justify-self:start!important;border-radius:12px!important;background:#eef7ef!important;color:var(--v133-green)!important;border:1px solid #d7e6d8!important}
  .public-mobile-brand{grid-column:2!important;justify-self:center!important;text-align:center!important;font-size:18px!important;color:var(--v133-green-dark)!important;font-weight:950!important;min-width:0!important}
  .public-mobile-login{grid-column:3!important;justify-self:end!important;position:relative!important;right:0!important;min-height:44px!important;padding:0 14px!important;margin:0!important;border-radius:12px!important;background:var(--v133-yellow)!important;color:#263e25!important;font-weight:900!important;box-shadow:none!important;white-space:nowrap!important}

  body.public-layout>.site-header.public-header{grid-template-columns:54px minmax(0,1fr) 58px!important;padding:8px 10px!important;gap:8px!important}
  body.public-layout>.site-header.public-header .logo-box{width:50px!important;height:50px!important;padding:4px!important;border-radius:12px!important}
  body.public-layout>.site-header.public-header .flag-real{width:56px!important;height:40px!important;padding:2px!important;border-radius:9px!important;background:#fff!important}
  body.public-layout>.site-header.public-header .flag-real img{width:100%!important;height:100%!important;object-fit:contain!important;border-radius:7px!important}
  body.public-layout>.site-header.public-header .brand-block strong{font-size:clamp(14px,4.2vw,18px)!important;line-height:1.1!important;white-space:normal!important}
  body.public-layout>.site-header.public-header .brand-block span{font-size:10px!important;line-height:1.15!important}
  body.public-layout>.site-header.public-header .brand-block em{font-size:8.5px!important;line-height:1.1!important}

  body.public-layout .main-content.public-content{padding-left:var(--v133-mobile-gutter)!important;padding-right:var(--v133-mobile-gutter)!important}
  .public-carousel-compact{height:320px!important;min-height:320px!important;margin:14px 0!important;border-radius:18px!important}
  .public-carousel-compact .slide-message{
    left:18px!important;right:18px!important;bottom:24px!important;width:auto!important;max-width:none!important;
    padding:15px 16px!important;border-left-width:4px!important;border-radius:15px!important;
  }
  .public-carousel-compact .slide-message strong{font-size:19px!important;margin-bottom:6px!important}
  .public-carousel-compact .slide-message span{font-size:13px!important;line-height:1.5!important}
  .carousel-fallback-slide{align-items:flex-start!important;justify-content:center!important;padding:26px 18px 118px!important}
  .carousel-fallback-logo{width:150px!important;height:112px!important;padding:9px!important;border-radius:18px!important}
  .carousel-control{width:40px!important;height:40px!important;font-size:24px!important}
  .carousel-control.prev{left:9px!important}.carousel-control.next{right:9px!important}

  .welcome-hero,.download-app-section,.home-intro-card,.home-health-gateway,.president-biography-public,.card,.panel-card{border-radius:16px!important}
  .welcome-hero{padding:22px 16px!important;gap:18px!important}
  .welcome-copy h1{font-size:clamp(27px,8vw,38px)!important}
  .welcome-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .welcome-actions .btn{width:100%!important;min-height:46px!important}
  .welcome-trust{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}

  .download-app-section{padding:30px 14px!important}
  .download-app-section .download-app-copy h2{font-size:clamp(28px,8.5vw,39px)!important}
  .download-app-grid{grid-template-columns:1fr!important;gap:12px!important}
  .download-choice{padding:17px!important}

  .grid.two,.home-intro,.dashboard-panels,.dashboard-panels.two-columns,.kpi-grid,.admin-action-grid{grid-template-columns:1fr!important}
  .table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  table{min-width:680px}
  input,select,textarea,.btn{font-size:16px!important}
  .btn{min-height:44px!important}

  .floating-actions,.public-floating-actions{right:10px!important;bottom:76px!important;gap:8px!important}
  .floating-actions .btn,.public-floating-actions .btn{min-width:48px!important;max-width:128px!important;padding:10px 12px!important;font-size:13px!important}

  body.public-layout>.app-footer.public-footer.dashboard-style-footer{grid-template-columns:1fr!important;padding:24px 16px 62px!important;gap:18px!important}
  .official-contact-items{display:grid!important;grid-template-columns:1fr!important}
  .official-contact-items>a{width:100%!important;min-height:48px!important}
  .socials a{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}
}

@media(max-width:420px){
  .public-mobile-login{padding:0 11px!important;font-size:13px!important}
  .public-mobile-brand{font-size:16px!important}
  body.public-layout>.site-header.public-header .brand-block strong{font-size:14px!important}
  .public-carousel-compact{height:300px!important;min-height:300px!important}
  .carousel-fallback-logo{width:132px!important;height:96px!important}
  .public-carousel-compact .slide-message{left:14px!important;right:14px!important;bottom:20px!important}
}


/* =========================================================
   CEN V134 — FINITION INSTITUTIONNELLE
   Couche canonique : responsive, carrousel, login, footer,
   contacts, lisibilité, loader, formulaires et tableaux.
   ========================================================= */
:root{--cen134-green:#145c2b;--cen134-green2:#1b7f3b;--cen134-yellow:#f3c623;--cen134-ink:#183429;--cen134-text:#435a4f;--cen134-line:#dbe7da;--cen134-bg:#f5f9f3;--cen134-radius:18px;--cen134-shadow:0 12px 30px rgba(20,92,43,.07)}
html{scroll-padding-top:150px}body{background:var(--cen134-bg)!important;color:var(--cen134-ink)!important}
body.public-layout .main-content.public-content{width:min(100%,1700px)!important;max-width:1700px!important;margin:0 auto!important;padding-left:clamp(14px,2.4vw,36px)!important;padding-right:clamp(14px,2.4vw,36px)!important}
body.admin-layout .workspace-content{width:100%!important;max-width:none!important;padding-left:clamp(14px,2vw,28px)!important;padding-right:clamp(14px,2vw,28px)!important}
/* Texte */
p,li,td,th,label,small,.muted{color:var(--cen134-text)!important}.eyebrow,.welcome-kicker{color:var(--cen134-green2)!important}.card,.panel-card,.activity-card,.download-choice{border-color:var(--cen134-line)!important;box-shadow:var(--cen134-shadow)!important}
/* En-têtes fixes sans variation de hauteur */
body.public-layout>.site-header.public-header{position:sticky!important;top:0!important;z-index:1510!important;width:100%!important;max-width:none!important;margin:0!important;min-height:100px!important;height:100px!important;padding:10px clamp(16px,2.5vw,36px)!important;background:linear-gradient(135deg,#0f5128,#176b36)!important;border-bottom:3px solid var(--cen134-yellow)!important}
.site-header.public-header .brand-block strong,.site-header.public-header .brand-block span,.site-header.public-header .brand-block em{color:#fff!important}
body.public-layout>.top-nav.public-nav{position:sticky!important;top:100px!important;z-index:1500!important;width:100%!important;max-width:none!important;margin:0!important;min-height:60px!important;height:60px!important;padding:8px clamp(16px,2.5vw,36px)!important;justify-content:flex-end!important;background:#f1f8ef!important;border-bottom:1px solid var(--cen134-line)!important}
.top-nav.public-nav .public-login-link{margin-left:12px!important;background:linear-gradient(135deg,var(--cen134-yellow),#f8da58)!important;color:#254322!important}
/* Carrousel : plein cadre / image entière / auto */
.public-carousel-compact{position:relative!important;min-height:clamp(300px,36vw,520px)!important;height:clamp(300px,36vw,520px)!important;background:linear-gradient(135deg,#176b36,#4f8e37)!important;overflow:hidden!important;border-radius:24px!important;border:1px solid rgba(20,92,43,.18)!important;box-shadow:var(--cen134-shadow)!important}
.public-carousel-compact .slides,.public-carousel-compact .slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.public-carousel-compact .slide{display:block!important;opacity:0!important;transition:opacity .55s ease!important;background:none!important}
.public-carousel-compact .slide.is-active{opacity:1!important;z-index:2!important}
.carousel-slide-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;object-position:center!important;background:#f8faf6!important}
.carousel-fit-cover .carousel-slide-media{object-fit:cover!important}
.carousel-fit-contain .carousel-slide-media{object-fit:contain!important;padding:clamp(14px,3vw,38px)!important}
.carousel-fit-auto .carousel-slide-media{object-fit:cover!important;object-position:center center!important}
.public-carousel-compact .slide-message{position:absolute!important;left:auto!important;right:clamp(22px,4vw,64px)!important;bottom:clamp(22px,4vw,48px)!important;width:min(46%,620px)!important;max-width:620px!important;padding:20px 24px!important;border-radius:18px!important;background:rgba(13,83,41,.92)!important;border-left:5px solid var(--cen134-yellow)!important;box-shadow:0 18px 40px rgba(7,46,27,.24)!important;backdrop-filter:blur(8px)!important}
.public-carousel-compact .slide-message strong{display:block!important;color:#fff!important;font-size:clamp(21px,2vw,32px)!important;line-height:1.18!important}.public-carousel-compact .slide-message span{display:block!important;color:#fff!important;margin-top:10px!important;font-size:clamp(15px,1.1vw,18px)!important;line-height:1.6!important}
.carousel-control{z-index:5!important}.carousel-dots{z-index:5!important}
/* Communiqué : contraste maximum */
.communique-ticker.enhanced-ticker{background:linear-gradient(90deg,#ffd42a,#ffe477,#ffd42a)!important;color:#143b25!important;border-top:2px solid #e4ad00!important;box-shadow:0 -6px 18px rgba(94,68,0,.14)!important;font-weight:800!important}
.communique-ticker.enhanced-ticker strong{background:#0f5b31!important;color:#fff!important;border-radius:999px!important;padding:5px 12px!important;letter-spacing:.03em!important}.communique-ticker .ticker-track span{color:#173d26!important;font-weight:850!important;text-shadow:0 1px 0 rgba(255,255,255,.8)!important}.ticker-close{background:#fff2a8!important;color:#16462a!important;border:1px solid rgba(77,61,0,.15)!important;font-weight:900!important}
/* Footer professionnel */
.app-footer.dashboard-style-footer,.health-shared-footer{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;border-radius:0!important;background:linear-gradient(135deg,#0f5128,#145c2b 55%,#194c2c)!important;padding:32px clamp(20px,3vw,48px) 54px!important;gap:clamp(20px,3vw,42px)!important}
.app-footer h3{color:#ffe27a!important}.footer-bottom{background:#0c3f24!important;border-radius:14px!important;color:#fff!important;padding:13px 18px!important;text-align:center!important}.app-footer a,.app-footer p,.app-footer span,.app-footer small{color:#f5fff6!important}
.official-contact-footer{grid-column:1/-1!important;width:100%!important}.official-contact-items{display:flex!important;flex-wrap:wrap!important;gap:12px!important;justify-content:center!important;align-items:center!important}.official-contact-items .contact-pill{display:inline-flex!important;align-items:center!important;gap:9px!important;min-height:48px!important;padding:9px 14px!important;border-radius:14px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;text-decoration:none!important;margin:0!important}.official-contact-items .contact-pill:hover{background:rgba(255,255,255,.17)!important;transform:translateY(-1px)!important}.contact-icon{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:50%!important;background:#fff!important;color:#145c2b!important;flex:0 0 30px!important}.social-svg svg{width:19px!important;height:19px!important;fill:currentColor!important}.contact-whatsapp .contact-icon{color:#128c4b!important}.contact-facebook .contact-icon{color:#1877f2!important}.contact-youtube .contact-icon{color:#e62117!important}
/* Login comparable aux portails modernes */
body.public-layout .auth-premium-shell{width:min(1180px,calc(100vw - 56px))!important;max-width:1180px!important;min-height:620px!important;margin:clamp(28px,5vh,64px) auto!important;display:grid!important;grid-template-columns:minmax(360px,.9fr) minmax(460px,1.1fr)!important;border-radius:28px!important;overflow:hidden!important;box-shadow:0 24px 70px rgba(20,72,42,.13)!important;border:1px solid var(--cen134-line)!important}
.auth-premium-brand{padding:clamp(34px,4vw,58px)!important;background:linear-gradient(145deg,#0f5128,#1b7f3b)!important}.auth-premium-card{padding:clamp(36px,4vw,62px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;background:#fff!important}.auth-emblem-wrap{width:100px!important;height:100px!important;margin-top:20px!important}.auth-premium-form{gap:14px!important}.auth-input{min-height:56px!important}.auth-input input{font-size:16px!important}.auth-submit{min-height:54px!important;font-size:16px!important}.auth-home-link{display:inline-flex!important;position:relative!important;z-index:2!important;color:#fff!important;font-weight:800!important;margin-bottom:12px!important}
/* Sidebar : fixe, gauche, compact et logout toujours accessible */
@media(min-width:981px){body.admin-layout .app-shell{grid-template-columns:292px minmax(0,1fr)!important}.side-dashboard{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:292px!important;height:100dvh!important;z-index:1400!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.workspace{margin-left:292px!important;width:calc(100% - 292px)!important}.side-top{flex:0 0 auto!important}.side-menu-search{flex:0 0 auto!important}.side-menu{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}.side-user{flex:0 0 auto!important}.logout-btn{flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;margin:8px 10px 12px!important;position:relative!important;z-index:4!important}body.admin-layout.sidebar-collapsed .workspace{margin-left:0!important;width:100%!important}.workspace-topbar{position:sticky!important;top:0!important;z-index:1250!important}}
.logout-btn.is-logging-out{pointer-events:none!important;opacity:.88!important}
/* Tableau de bord cohérent */
.workspace-topbar{background:linear-gradient(135deg,#12572d,#1b7139)!important;border-bottom:3px solid var(--cen134-yellow)!important}.workspace-topbar strong,.workspace-topbar small,.workspace-topbar a,.workspace-topbar button,.workspace-topbar .top-date span,.workspace-topbar .top-date strong{color:#fff!important}.workspace-topbar .global-search-form input,.workspace-topbar .language-select{color:var(--cen134-ink)!important;background:#fff!important}.dashboard-welcome,.production-welcome{border-top:5px solid var(--cen134-yellow)!important}.kpi-card{border-top:3px solid #dbe7da!important}.kpi-card:nth-child(2n){border-top-color:var(--cen134-yellow)!important}
/* Loader */
.page-loader{background:rgba(10,55,30,.94)!important}.loader-minimal{background:#123e27!important;border:1px solid rgba(255,255,255,.15)!important;box-shadow:0 20px 50px rgba(0,0,0,.24)!important}.loader-minimal span{color:#fff!important;font-weight:850!important;font-size:16px!important;letter-spacing:.02em!important}
/* Formulaires et tableaux */
.form input,.form select,.form textarea,.filters input,.filters select,.auth-input,.global-search-form input{border:1px solid #cfe0d0!important}.form input:focus,.form select:focus,.form textarea:focus,.filters input:focus,.filters select:focus{outline:3px solid rgba(27,127,59,.12)!important;border-color:#72a67c!important}.table-wrap{border:1px solid var(--cen134-line)!important;border-radius:16px!important;background:#fff!important}table th{background:#edf7ee!important;color:#214a2f!important;font-weight:850!important}
/* États vides et messages */
.flash{border:1px solid rgba(20,92,43,.10)!important;box-shadow:0 6px 18px rgba(20,92,43,.04)!important}.flash.success{background:#eaf8ee!important;color:#145c2b!important}.flash.warning{background:#fff5cf!important;color:#654b00!important}.flash.danger{background:#fff0f0!important;color:#8a1f2a!important}
/* Mobile */
@media(max-width:980px){html{scroll-padding-top:64px}body.public-layout>.site-header.public-header,body.public-layout>.top-nav.public-nav{display:none!important}.public-mobile-bar{position:sticky!important;top:0!important;z-index:1700!important;display:grid!important;grid-template-columns:52px 1fr auto!important;align-items:center!important;min-height:64px!important;height:64px!important;padding:7px 10px!important;background:linear-gradient(135deg,#0f5128,#176b36)!important;border-bottom:3px solid var(--cen134-yellow)!important}.public-mobile-brand{color:#fff!important;font-weight:900!important}.public-mobile-login{justify-self:end!important;display:inline-flex!important;align-items:center!important;min-height:44px!important;padding:0 14px!important;border-radius:12px!important;background:var(--cen134-yellow)!important;color:#244021!important;font-weight:900!important}.public-menu-toggle{width:44px!important;height:44px!important}.public-carousel-compact{height:clamp(360px,86vw,500px)!important;min-height:360px!important;border-radius:18px!important}.public-carousel-compact .slide-message{left:14px!important;right:14px!important;bottom:16px!important;width:auto!important;max-width:none!important;padding:16px 17px!important}.carousel-fit-contain .carousel-slide-media{padding:18px!important}.public-carousel-compact .slide-message strong{font-size:21px!important}.public-carousel-compact .slide-message span{font-size:15px!important}.install-pwa-button,.floating-help{right:10px!important;transform:scale(.9);transform-origin:right center}.app-footer.dashboard-style-footer,.health-shared-footer{grid-template-columns:1fr!important;padding:28px 18px 54px!important}.official-contact-items{justify-content:flex-start!important}.official-contact-items .contact-pill{width:100%!important;justify-content:flex-start!important}.footer-bottom{font-size:12px!important}.auth-premium-shell{width:calc(100vw - 24px)!important;min-height:0!important;grid-template-columns:1fr!important;margin:18px auto!important}.auth-premium-brand,.auth-premium-card{padding:24px 20px!important}.auth-emblem-wrap{width:84px!important;height:84px!important}.auth-premium-brand{min-height:auto!important}.auth-trust-grid{grid-template-columns:1fr!important}.table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:680px!important}.form.grid.two,.grid.two,.filters{grid-template-columns:1fr!important}}
@media(max-width:560px){body.public-layout .main-content.public-content{padding-left:10px!important;padding-right:10px!important}.public-carousel-compact{border-radius:14px!important}.public-carousel-compact .slide-message{left:10px!important;right:10px!important;bottom:10px!important}.welcome-actions .btn,.quick-actions-row .btn{width:100%!important}.communicate-ticker.enhanced-ticker{font-size:12px!important}}


/* =========================================================
   CEN V135 — CORRECTION ESPACES + ICONES FOOTER
   ========================================================= */
/* Le header sticky reste dans le flux : aucun padding artificiel avant lui. */
body.public-layout{padding-top:0!important;margin-top:0!important}
body.public-layout>.site-header.public-header{margin-top:0!important}
body.public-layout .public-content{margin-top:0!important}
body.public-layout .public-content:has(.auth-premium-shell){padding-top:18px!important}

/* Footer compact, sans grand vide et sans réseaux dupliqués. */
.app-footer.dashboard-style-footer,.health-shared-footer{
  display:grid!important;
  grid-template-columns:minmax(220px,1.1fr) minmax(230px,1.15fr) minmax(170px,.85fr) minmax(170px,.85fr)!important;
  align-items:start!important;
  align-content:start!important;
  grid-auto-rows:auto!important;
  column-gap:clamp(20px,3vw,44px)!important;
  row-gap:18px!important;
  padding:26px clamp(20px,3vw,42px) 18px!important;
  min-height:0!important;
}
.app-footer.dashboard-style-footer .footer-about,
.app-footer.dashboard-style-footer .footer-contacts,
.app-footer.dashboard-style-footer>div{align-self:start!important}
.app-footer.dashboard-style-footer .footer-bottom{
  position:static!important;
  grid-column:1/-1!important;
  width:100%!important;
  margin:0!important;
  padding:12px 16px!important;
  border-radius:12px!important;
}
.official-contact-footer{
  grid-column:1/-1!important;
  margin:0!important;
  padding:0!important;
}
.official-double-line{margin:0 0 14px!important;gap:4px!important}
.official-contact-items{gap:10px!important;margin:0!important}
.official-contact-items .contact-pill{
  min-height:46px!important;
  padding:8px 13px!important;
}
.contact-icon{
  display:inline-grid!important;
  place-items:center!important;
  visibility:visible!important;
  opacity:1!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  border-radius:50%!important;
  background:#fff!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:950!important;
  font-family:Arial,Helvetica,sans-serif!important;
  text-align:center!important;
  overflow:visible!important;
}
.brand-whatsapp{background:#fff!important;color:#128c4b!important;font-size:17px!important}
.brand-facebook{background:#fff!important;color:#1877f2!important;font-family:Arial,Helvetica,sans-serif!important;font-size:22px!important;font-weight:900!important}
.brand-youtube{background:#fff!important;color:#e62117!important;font-size:17px!important;padding-left:2px!important}
.contact-phone .contact-icon{color:#0d6f3b!important}
.contact-email .contact-icon{color:#176a86!important}
.contact-site .contact-icon{color:#176a86!important}

/* Login : pas de grande zone blanche avant l’en-tête, proportions conservées. */
body.public-layout:has(.auth-premium-shell){padding-top:0!important}
body.public-layout:has(.auth-premium-shell)>.site-header.public-header{top:0!important}
body.public-layout:has(.auth-premium-shell)>.top-nav.public-nav{top:100px!important}
body.public-layout:has(.auth-premium-shell) .auth-premium-shell{margin-top:28px!important}

@media(max-width:980px){
  body.public-layout{padding-top:0!important}
  body.public-layout .public-content:has(.auth-premium-shell){padding-top:10px!important}
  .app-footer.dashboard-style-footer,.health-shared-footer{grid-template-columns:1fr!important;padding:22px 16px 14px!important;row-gap:15px!important}
  .official-contact-items{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .official-contact-items .contact-pill{width:100%!important}
  .app-footer.dashboard-style-footer .footer-bottom{font-size:11.5px!important}
}
