/* LogiMission V3.2.1 — décor typographique Marlboro ; aucun produit, cigarette ou tabac.
   Dédié au thème interne « rouge ». Les autres thèmes et les composants métier sont inchangés. */
:root[data-theme="rouge"] .v321-mast-mark{
 position:absolute!important;left:71%;top:55%;transform:translate(-50%,-50%);z-index:3!important;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
 width:235px;min-width:0;pointer-events:none;text-align:center;color:#a4001b;
 filter:drop-shadow(0 2px 2px #ffffff44);
}
:root[data-theme="rouge"] .v321-mast-mark small{
 font:800 9px/1.2 Inter,system-ui,sans-serif;letter-spacing:3px;color:#ad1530;
}
:root[data-theme="rouge"] .v321-mast-mark strong{
 font:italic 900 43px/.98 Georgia,"Times New Roman",serif;letter-spacing:-2.5px;
 color:#a8001e;text-shadow:0 1px #fff,0 2px 1px #71001c19;
}
:root[data-theme="rouge"] .v321-mast-mark span{
 font:800 8px/1.5 Inter,system-ui,sans-serif;letter-spacing:1.45px;color:#7d1127;
 border-top:1px solid #ab1838;padding-top:2px;margin-top:4px;white-space:nowrap;
}
/* Bande de signature présente sur tableau de bord ET dans chaque autre rubrique. */
:root[data-theme="rouge"] .v321-signature-ribbon{
 box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
 gap:16px;min-height:40px;padding:7px 15px 7px 17px;
 width:100%;min-width:0;overflow:hidden;
 border:1px solid #ca1430;border-radius:6px;
 background:linear-gradient(104deg,#a00018 0%,#bd001e 44%,#870016 100%);
 box-shadow:0 4px 14px #41001924,inset 0 1px #ffffff25;
 color:white;position:relative;isolation:isolate;
}
:root[data-theme="rouge"] .v321-signature-ribbon::before{
 content:"";position:absolute;inset:0 auto 0 55%;width:23%;
 clip-path:polygon(50% 0,100% 100%,0 100%);background:#fff;opacity:.15;pointer-events:none;
}
:root[data-theme="rouge"] .v321-signature-ribbon::after{
 content:"";position:absolute;top:0;bottom:0;right:15px;width:65px;
 background:repeating-linear-gradient(130deg,transparent 0 8px,#ffffff18 9px 10px);
 pointer-events:none;
}
:root[data-theme="rouge"] .v321-signature-ribbon strong{
 color:#fff;font:italic 900 27px/1 Georgia,"Times New Roman",serif;
 letter-spacing:-1.2px;text-shadow:0 2px #5600134d;
}
:root[data-theme="rouge"] .v321-signature-ribbon span{
 color:#ffe7ec;font:800 10px/1.35 Inter,system-ui,sans-serif;
 letter-spacing:2px;text-transform:uppercase;text-align:center;
}
:root[data-theme="rouge"] .v321-signature-ribbon span i{font-style:normal;padding:0 5px}
:root[data-theme="rouge"] .v321-signature-ribbon .v321-ribbon-end{
 font-size:9px;color:#ffffffb9;white-space:nowrap;letter-spacing:1.3px;
}
/* Sur le tableau de bord, rester compact pour préserver les indicateurs métier. */
:root[data-theme="rouge"] .sam-dashboard>.v321-signature-ribbon{margin:0;}
/* Fond: texture légère et filigrane en second plan, sans réduire la lisibilité des tableaux. */
:root[data-theme="rouge"] .app .main{
 background:linear-gradient(165deg,#f9f7f8db,#f1edefef),
 url('./assets/marlboro-signature-pattern-v321.svg') right 0 top 0/800px 640px repeat-y,
 #f4f1f2!important;
}
/* Signature de bas de menu, distincte des options de navigation et sans zone cliquable. */
:root[data-theme="rouge"] .sidebar-bottom::before{
 content:"Marlboro";display:block;width:100%;margin:0 0 9px;padding:10px 1px 8px;
 font:italic 900 26px/.95 Georgia,"Times New Roman",serif;
 text-align:center;color:#fff;letter-spacing:-1px;
 border-bottom:1px solid #ffffff48;text-shadow:0 1px 7px #0006;
}
:root[data-theme="rouge"] .sidebar-bottom{
 background:linear-gradient(170deg,#460016,#230c15)!important;
 border-color:#ad233c!important;
}
/* Sceau typographique discret sur la bannière inférieure du tableau de bord. */
:root[data-theme="rouge"] .sam-dashboard-footer::before{
 content:"Marlboro  /  SIGNATURE EDITION";display:block;
 font:italic 800 23px/1.2 Georgia,"Times New Roman",serif;
 letter-spacing:.35px;color:#fff;margin:0 0 7px;
 text-shadow:0 2px 8px #26000e;
}
/* La tuile « Mon apparence » montre le thème comme une petite étiquette de packaging. */
:root[data-theme="rouge"] .v30-theme-tile .v30-preview-rouge{
 background:linear-gradient(145deg,#c80025 0%,#920019 100%)!important;
}
:root[data-theme="rouge"] .v30-theme-tile .v30-preview-rouge::before{
 content:"Marlboro";font:italic 900 18px Georgia,"Times New Roman",serif;
 position:absolute;left:6%;top:37%;width:88%;z-index:2;text-align:center;color:#fff;
 text-shadow:0 2px 5px #530019;
}
/* Adapte l'inscription sur les tablettes sans chevaucher le nom d'utilisateur. */
@media(max-width:1200px){
 :root[data-theme="rouge"] .v3-mast-brand small{display:none!important}
 :root[data-theme="rouge"] .v321-mast-mark{left:70%;top:58%;width:175px}
 :root[data-theme="rouge"] .v321-mast-mark strong{font-size:31px}
 :root[data-theme="rouge"] .v321-mast-mark small{font-size:7px;letter-spacing:1.8px}
 :root[data-theme="rouge"] .v321-mast-mark span{font-size:6px;letter-spacing:.8px}
 :root[data-theme="rouge"] .v321-signature-ribbon{gap:9px;padding:7px 12px}
 :root[data-theme="rouge"] .v321-signature-ribbon span{font-size:9px;letter-spacing:1.1px}
 :root[data-theme="rouge"] .v321-signature-ribbon .v321-ribbon-end{font-size:8px;letter-spacing:.7px}
}
@media(max-width:940px){
 :root[data-theme="rouge"] .v321-mast-mark{display:none}
 :root[data-theme="rouge"] .v321-signature-ribbon .v321-ribbon-end{display:none}
 :root[data-theme="rouge"] .v321-signature-ribbon strong{font-size:24px}
 :root[data-theme="rouge"] .v321-signature-ribbon{min-height:37px}
}
@media(max-width:760px){
 :root[data-theme="rouge"] .v321-mast-mark{display:none!important}
 :root[data-theme="rouge"] .v321-signature-ribbon{gap:8px;min-height:34px;padding:7px 9px}
 :root[data-theme="rouge"] .v321-signature-ribbon strong{font-size:20px;letter-spacing:-.8px}
 :root[data-theme="rouge"] .v321-signature-ribbon span{font-size:8px;letter-spacing:.6px}
 :root[data-theme="rouge"] .sidebar-bottom::before{font-size:23px}
 :root[data-theme="rouge"] .sam-dashboard-footer::before{font-size:19px}
}
@media(max-width:380px){
 :root[data-theme="rouge"] .v321-signature-ribbon span{font-size:7px;letter-spacing:.25px}
}
@media(prefers-reduced-motion:reduce){
 :root[data-theme="rouge"] .v321-signature-ribbon{transition:none!important}
}
