: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}}
@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}}
