
/* =====  Thème RedSide Pêche (peche.redside.fr), accent vert #30e080  =====
   DM Sans, panneaux translucides à filets fins, barre de navigation flottante, lueurs et grain en fond. */
:root{--bg:#0c0e13;--pn:#12141a;--pn2:#191c23;--ln:rgba(202,207,220,.09);--ln2:rgba(202,207,220,.15);--tx:#e8e3d8;--mu:#8a8e99;--dim:#7a7f8a;
 --ac:#30e080;--ac-t:rgba(48,224,128,.12);--ac-ln:rgba(48,224,128,.3);--ink:#06140d;--ko:#ed655e;--ko-t:rgba(237,75,66,.12);--wa:#f0c56b;--wa-t:rgba(240,197,107,.1);--in:#7aa8ff;--in-t:rgba(102,139,208,.14);
 --r:12px;--fs:'DM Sans',system-ui,sans-serif;--fd:'DM Sans',system-ui,sans-serif}
html{background:#0c0e13}
body{font:14px/1.5 var(--fs);background:radial-gradient(circle at 82% 2%,rgba(31,150,86,.15),transparent 28rem),radial-gradient(circle at 12% 80%,rgba(17,48,62,.14),transparent 30rem),#0c0e13;background-attachment:fixed;overflow-x:hidden}
body::before{content:'';position:fixed;inset:0;z-index:60;pointer-events:none;opacity:.032;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E")}
body::after{content:'';position:fixed;left:0;right:0;top:0;height:62vh;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(177,186,204,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(177,186,204,.035) 1px,transparent 1px);background-size:52px 52px;-webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.45) 55%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.45) 55%,transparent 100%)}
h1,h2,h3{font-family:var(--fd);letter-spacing:-.03em}
/* --- navigation flottante --- */
.nx{position:fixed;inset:0 0 auto 0;z-index:30;padding:16px 32px 0}
.nx-bar{max-width:1180px;margin:0 auto;border-radius:16px;padding:12px 16px;background:rgba(12,14,19,.78);border:1px solid var(--ln);box-shadow:0 16px 55px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.035);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.nx-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.nx-brand{display:flex;align-items:center;gap:10px;color:var(--tx);flex:none}.nx-brand img{height:30px}
.nx-brand b{display:block;font-size:15px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
.nx-brand small{display:block;font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--ac);font-weight:600}
.nx-links{display:flex;align-items:center;gap:4px;min-width:0}
.nx-links a,.nx-drawer a{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;color:rgba(220,222,229,.62);font-size:12px;font-weight:600;letter-spacing:.015em;white-space:nowrap;transition:color .25s,background-color .25s,transform .25s}
.nx-links a:hover,.nx-drawer a:hover{color:var(--tx);background:rgba(255,255,255,.045)}
.nx-links a:active{transform:translateY(1px)}
.nx-links a[aria-current=page],.nx-drawer a[aria-current=page]{color:#effff6;background:rgba(48,224,128,.12);box-shadow:inset 0 0 0 1px rgba(48,224,128,.14)}
.nx-links svg,.nx-drawer svg{width:15px;height:15px;stroke-width:1.8}
.nx .cnt{font-size:11px;color:var(--dim);margin-left:2px}
.nx-right{display:flex;align-items:center;gap:8px;flex:none}
.nx-sep{width:1px;height:20px;background:rgba(220,222,229,.1)}
.nx-acc{position:relative}
.nx-accbtn{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid var(--ln2);border-radius:12px;background:rgba(255,255,255,.02);font-size:12px;font-weight:600;color:var(--tx);transition:border-color .25s,background-color .25s}
.nx-accbtn:hover,.nx-accbtn[aria-expanded=true]{border-color:rgba(48,224,128,.5);background:rgba(48,224,128,.12)}
.nx-accbtn svg{width:14px;height:14px}.nx-accbtn .cv{width:13px;height:13px;transform:rotate(90deg);color:var(--dim);transition:transform .2s}.nx-accbtn[aria-expanded=true] .cv{transform:rotate(-90deg)}
.nx-menu{position:absolute;right:0;top:calc(100% + 12px);width:240px;padding:6px;border:1px solid rgba(48,224,128,.28);border-radius:14px;background:#12151a;box-shadow:0 24px 60px rgba(0,0,0,.5)}
.nx-menu::before{content:'';position:absolute;top:-6px;right:22px;width:10px;height:10px;transform:rotate(45deg);border-left:1px solid rgba(48,224,128,.28);border-top:1px solid rgba(48,224,128,.28);background:#12151a}
.nx-prof{display:flex;align-items:center;gap:10px;margin:2px 4px 6px;padding:10px 8px 12px;border-bottom:1px solid var(--ln)}
.nx-prof b{display:block;font-size:12.5px;line-height:1.2}.nx-prof small{color:var(--dim);font-size:11px}
.nx-menu a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:#c7c3bc;font-size:12.5px;font-weight:500}
.nx-menu a:hover{background:rgba(48,224,128,.1);color:#fff}.nx-menu a svg{color:var(--ac);width:15px;height:15px}
.nx-menu a.dng,.nx-drawer a.dng{color:#cf8a84}.nx-menu a.dng{margin-top:4px;border-top:1px solid var(--ln);border-radius:4px 4px 10px 10px}.nx-menu a.dng svg,.nx-drawer a.dng svg{color:#ed655e}
.nx-burger{display:none;width:40px;height:40px;border:1px solid var(--ln2);border-radius:12px;background:rgba(255,255,255,.03);align-items:center;justify-content:center;flex:none;padding:0}
.nx-burger:hover{background:rgba(255,255,255,.07)}
.nx-burger span,.nx-burger span::before,.nx-burger span::after{display:block;width:18px;height:2px;background:var(--tx);border-radius:1px;transition:transform .2s,background .2s}
.nx-burger span{position:relative}.nx-burger span::before,.nx-burger span::after{content:"";position:absolute;left:0}
.nx-burger span::before{top:-6px}.nx-burger span::after{top:6px}
.nx-bar.open .nx-burger span{background:transparent}.nx-bar.open .nx-burger span::before{top:0;transform:rotate(45deg)}.nx-bar.open .nx-burger span::after{top:0;transform:rotate(-45deg)}
.nx-drawer{display:none}
@media(max-width:1180px){.nx{padding:12px 16px 0}.nx-links,.nx-right{display:none}.nx-burger{display:inline-flex}
 .nx-bar.open .nx-drawer{display:grid;gap:2px;margin-top:12px;padding-top:12px;border-top:1px solid var(--ln)}}
/* --- page --- */
.content{max-width:1180px;width:100%;margin:0 auto;padding:7.5rem 2rem 3rem}
.content>*{animation:rise .6s cubic-bezier(.22,.8,.2,1) both}.content>*:nth-child(2){animation-delay:.06s}.content>*:nth-child(3){animation-delay:.12s}.content>*:nth-child(n+4){animation-delay:.18s}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.crumbline{display:flex;align-items:center;gap:8px;margin-bottom:2rem;padding-bottom:1rem;border-bottom:1px solid rgba(220,222,229,.1);font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:#737782;font-weight:500}
.crumbline svg{width:12px;height:12px;color:var(--ac)}.crumbline .cur{color:#aaa7a0}
.nx-foot{max-width:1180px;margin:0 auto;padding:1.35rem 2rem 4.5rem;border-top:1px solid var(--ln);text-align:center;color:#686d78;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:600}
.ph{margin-bottom:28px}.ph h1{font-size:clamp(2.1rem,4.6vw,3.6rem);line-height:.98;letter-spacing:-.065em;font-weight:700}.ph p{color:var(--mu);font-size:13px;margin-top:8px}
/* --- composants --- */
.btn{height:38px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid var(--ln2);font-weight:600;font-size:12.5px;transition:transform .25s,background-color .25s,border-color .25s,box-shadow .25s}
.btn:hover{background:rgba(255,255,255,.07);border-color:rgba(202,207,220,.28)}
.btn.pr{background:var(--ac);border-color:var(--ac);color:var(--ink);box-shadow:0 10px 28px rgba(31,170,96,.22),inset 0 1px rgba(255,255,255,.22)}
.btn.pr:hover{background:#52eb96;transform:translateY(-2px);box-shadow:0 14px 34px rgba(31,170,96,.32),inset 0 1px rgba(255,255,255,.25)}.btn.pr:active{transform:none}
.btn.ko{color:#ef8f89;border-color:rgba(237,75,66,.32);background:rgba(237,75,66,.06)}.btn.ko:hover{background:rgba(237,75,66,.14)}
.btn.ghost{background:transparent;border-color:transparent}.btn.ghost:hover{background:rgba(255,255,255,.05)}
.btn.sm{height:32px;border-radius:10px}.btn.lg{height:46px}.btn.ic{width:38px}.btn.ic.sm{width:32px}
.in{background:rgba(10,12,16,.56);border:1px solid rgba(220,222,229,.14);border-radius:10px}
.in:focus{border-color:rgba(48,224,128,.5);box-shadow:0 0 0 3px rgba(48,224,128,.08)}
label.l{letter-spacing:.01em}
.card{background:linear-gradient(145deg,rgba(26,29,37,.9),rgba(16,18,24,.9));border:1px solid var(--ln);border-radius:14px;box-shadow:inset 0 1px rgba(255,255,255,.035),0 20px 70px rgba(0,0,0,.22)}
.card>.hd{border-bottom:1px solid var(--ln)}.card>.hd h2{font-size:15px;font-weight:600;letter-spacing:-.02em}
.glow{border-color:rgba(48,224,128,.22);background:radial-gradient(circle at 15% 0%,rgba(48,224,128,.13),transparent 32%),linear-gradient(120deg,rgba(24,52,38,.62),rgba(19,21,27,.88))}
.badge{border-radius:8px;font-weight:600;background:rgba(255,255,255,.03)}
.badge.g{background:var(--ac-t)}.badge.r{background:var(--ko-t)}.badge.w{background:var(--wa-t)}.badge.b{background:var(--in-t)}
.avatar{background:rgba(48,224,128,.08);border-color:rgba(48,224,128,.3)}
/* indicateurs : quadrillage à filets fins */
.kpis{gap:0;border-top:1px solid var(--ln2);border-left:1px solid var(--ln2);margin-bottom:24px}
.kpis .kpi{border:0;border-right:1px solid var(--ln2);border-bottom:1px solid var(--ln2);border-radius:0;background:rgba(26,29,37,.37);box-shadow:none;padding:18px 20px}
.kpi small,.lab{text-transform:uppercase;letter-spacing:.12em;font-size:10.5px;color:var(--dim);font-weight:500}
.kpi b{font:400 1.9rem var(--fs);letter-spacing:-.05em}
/* tableaux */
th{background:transparent;text-transform:uppercase;letter-spacing:.12em;font-size:10.5px;font-weight:500;color:var(--dim);border-bottom:1px solid rgba(220,222,229,.11)}
td{color:#c7c3bc;border-bottom:1px solid rgba(220,222,229,.065)}
tbody tr:hover td{background:rgba(48,224,128,.045)}
.pag{border-top:1px solid var(--ln)}
/* onglets : pastilles de filtre */
.tabsb{border:0;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tabsb button{border:1px solid transparent;border-radius:10px;padding:8px 12px;margin:0;font-size:12px}
.tabsb button:hover{color:var(--tx);background:rgba(255,255,255,.035)}
.tabsb button[aria-selected=true]{border-color:rgba(48,224,128,.26);color:#f0eae2;background:rgba(48,224,128,.1)}
/* durées et formules */
.dur span,.pb{border-radius:12px;background:rgba(255,255,255,.02)}
.dur input:checked+span,.plan input:checked+.pb{border-color:rgba(48,224,128,.5);background:rgba(48,224,128,.1)}
.pm{border-radius:12px}.pm:has(input:checked){border-color:rgba(48,224,128,.5);background:rgba(48,224,128,.1)}
/* fenêtres */
.drawer,.modal{background:linear-gradient(145deg,#1a1d25,#10121a);border-color:var(--ln2)}.modal{border-radius:16px}
.toast{border-radius:12px;background:var(--tx)}
/* connexion / inscription : une carte centrée sous la barre flottante */
.auth{display:block;min-height:100vh}.brandp{display:none}
.formp{min-height:100vh;display:grid;place-items:center;padding:7rem 20px 4rem}
.formw{width:100%;max-width:430px;padding:32px;border:1px solid var(--ln);border-radius:16px;background:linear-gradient(145deg,rgba(26,29,37,.9),rgba(16,18,24,.9));box-shadow:inset 0 1px rgba(255,255,255,.035),0 20px 70px rgba(0,0,0,.3)}
.formw h1{font-size:clamp(2rem,4vw,2.6rem);letter-spacing:-.06em;line-height:1}
.discord{border-radius:12px}
@media(max-width:700px){.content{padding:6.5rem 1rem 3rem}.nx-foot{padding:1.2rem 1rem 4.5rem}.formw{padding:24px 20px}}

/* ===== éléments repris du calculateur RedSide (valeurs d'origine, rouge -> vert) ===== */
/* recherche : .calculator-search */
.sbar{padding:12px 16px;border-bottom:1px solid var(--ln)}
.calculator-search{display:flex;align-items:center;gap:.65rem;min-width:0;max-width:420px;min-height:3.2rem;padding:0 .85rem;border:1px solid rgba(220,222,229,.12);border-radius:.7rem;background:rgba(14,16,21,.68);box-shadow:inset 0 1px rgba(255,255,255,.035);color:#30e080}
.calculator-search svg{width:16px;height:16px}
.calculator-search:focus-within{border-color:rgba(48,224,128,.45);background:rgba(21,23,29,.9)}
.calculator-search input{min-width:0;flex:1;height:auto;padding:0;border:0;outline:0;color:#e8e3d8;background:transparent;font-size:.8rem;box-shadow:none}
.calculator-search input::placeholder{color:#686d78}
.calculator-search input::-webkit-search-cancel-button{display:none}
/* liste déroulante : .calculator-select */
select.in{min-height:2.6rem;border:1px solid rgba(220,222,229,.12);border-radius:.7rem;background:rgba(14,16,21,.68);color:#dfd9d0;box-shadow:inset 0 1px rgba(255,255,255,.035)}
select.in option{color:#17191f;background:#eeeae2}
/* filtres : .calculator-rarity-filters */
.tabsb{border:0;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tabsb a{display:inline-flex;align-items:center;gap:.4rem;min-height:2.15rem;padding:.45rem .75rem;margin:0;border:1px solid transparent;border-bottom-width:1px;border-radius:.48rem;color:#8a8e99;background:transparent;font:500 .75rem/1 'DM Sans',sans-serif;transition:color .2s ease,background-color .2s ease,border-color .2s ease}
.tabsb a:hover{color:#e8e3d8;background:rgba(255,255,255,.035)}
.tabsb a[aria-selected=true]{border-color:rgba(48,224,128,.24);color:#f0eae2;background:rgba(48,224,128,.1)}
.tabsb .c{background:rgba(255,255,255,.05);color:var(--dim)}
/* tableau : .calculator-table */
table{border-collapse:collapse}
th{padding:.8rem .9rem;border-bottom:1px solid rgba(220,222,229,.11);color:#7a7f8a;font-size:.66rem;font-weight:500;text-align:left;white-space:nowrap;letter-spacing:.12em;text-transform:uppercase;background:transparent;position:static}
th a{color:inherit}
td{padding:.68rem .9rem;border-bottom:1px solid rgba(220,222,229,.065);color:#c7c3bc;font-size:.8rem;vertical-align:middle}
tbody tr{transition:background-color .2s ease}
tbody tr:hover td{background:rgba(48,224,128,.045)}
tbody tr:last-child td{border-bottom:0}
/* pagination : .calculator-pagination */
.calculator-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.55rem;padding:.7rem;border-top:1px solid var(--ln);background:rgba(18,20,26,.4)}

.calculator-page-numbers{display:flex;align-items:center;gap:.25rem}
.calculator-pagination .pg{display:grid;place-items:center;min-width:2rem;height:2rem;padding:0 .4rem;border:1px solid transparent;border-radius:.45rem;color:#858994;background:transparent;font-size:.72rem;cursor:pointer;transition:color .2s,border-color .2s,background-color .2s,transform .2s}
.calculator-pagination a.pg:hover{border-color:rgba(48,224,128,.28);color:#f0eae2;background:rgba(48,224,128,.08);transform:translateY(-1px)}
.calculator-pagination .pg.is-active{border-color:rgba(48,224,128,.42);color:#06140d;background:#30e080;box-shadow:0 5px 16px rgba(48,224,128,.18);font-weight:700}
.calculator-pagination .pg[aria-disabled=true]{color:#414650;cursor:not-allowed}
.calculator-pagination .pg:focus-visible{outline:2px solid rgba(48,224,128,.88);outline-offset:2px}
.calculator-page-summary{margin-left:.35rem;color:#686d78;font-size:.64rem;letter-spacing:.08em;text-transform:uppercase}
/* notifications : toasts */
.flash{position:fixed;left:auto;right:16px;bottom:16px;transform:none;z-index:100;display:flex;flex-direction:column;gap:12px;width:calc(100vw - 2rem);max-width:420px}
.flash div{padding:16px;border:1px solid #477c58;border-radius:8px;background:#17241e;color:#e8f3e9;box-shadow:0 16px 38px rgba(0,0,0,.35);font-size:14px;font-weight:500;animation:rise .35s cubic-bezier(.22,.8,.2,1) both}
.flash .err{border-color:#a94440;background:#301d20;color:#ffe7e4}
/* fenêtre de confirmation */
dialog.cf{margin:auto;border:1px solid rgba(202,207,220,.15);border-radius:16px;background:linear-gradient(145deg,#1a1d25,#10121a);color:var(--tx);box-shadow:0 24px 70px rgba(0,0,0,.5)}
dialog.cf::backdrop{background:rgba(0,0,0,.66)}
.nx-menu .nx-logout{margin:0}.nx-menu .nx-logout button,.nx-drawer .nx-logout button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#c7c3bc;font:500 12.5px 'DM Sans',sans-serif;cursor:pointer;text-align:left}
.nx-menu .nx-logout button{margin-top:4px;border-top:1px solid var(--ln);border-radius:4px 4px 10px 10px;color:#cf8a84}
.nx-menu .nx-logout button:hover{background:rgba(237,75,66,.1);color:#ffd9d6}.nx-menu .nx-logout svg,.nx-drawer .nx-logout svg{color:#ed655e;width:15px;height:15px}
.nx-drawer .nx-logout button{padding:10px 12px;border-radius:12px;font-size:12px;font-weight:600;letter-spacing:.015em;color:#cf8a84}
.nx-drawer .nx-logout button:hover{background:rgba(255,255,255,.045)}
.nx-menu a[role=menuitem].cur{background:rgba(48,224,128,.08)}
.nx-foot{margin-top:1rem}
/* l'ancienne mise en page à barre latérale n'est plus utilisée */
.side,.scrim,.burger,.cmdk{display:none!important}

/* ===== tableaux à l'identique du calculateur RedSide : titre, outils, cadre, pagination séparée ===== */
.tblblock{min-width:0}
.calculator-catalogue-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.25rem;margin:0 0 1rem}
.calculator-catalogue-heading h2{margin-top:.55rem;color:#e8e3d8;font-size:1.25rem;font-weight:600;letter-spacing:-.035em}
.calculator-catalogue-heading .ch-tools{display:flex;align-items:center;gap:.65rem}
.calculator-eyebrow{display:flex;align-items:center;gap:.6rem;color:#4fe898;font-size:.66rem;line-height:1.25;letter-spacing:.12em;text-transform:uppercase;font-weight:500}
.calculator-eyebrow>span{width:1.45rem;height:1px;background:#30e080}
.sbar{margin:0 0 .8rem;padding:0;border:0}
.calculator-search{max-width:none;width:100%}
.card.calculator-table-wrap{overflow:hidden;border:1px solid var(--ln);border-radius:.9rem;background:rgba(18,20,26,.74);box-shadow:inset 0 1px rgba(255,255,255,.035),0 18px 48px rgba(0,0,0,.18)}
.calculator-table-wrap .tblw{overflow-x:auto}
.calculator-table-wrap table{width:100%}
.calculator-table-wrap .feed{margin:0}
.calculator-pagination{margin-top:1rem;border:1px solid var(--ln);border-radius:.75rem;background:rgba(18,20,26,.58)}
@media(max-width:700px){.calculator-catalogue-heading{flex-direction:column;align-items:flex-start}}

/* ===== recherche intégrée à l'en-tête du tableau : .calculator-table-search-row / .calculator-table-head-tools ===== */
.calculator-table-search-row th,.tool-row{padding:.65rem .9rem;background:rgba(8,10,14,.28);border-bottom:1px solid rgba(220,222,229,.11);text-transform:none;letter-spacing:0;white-space:normal;font-weight:400}
.calculator-table-head-tools{display:flex;align-items:stretch;gap:.65rem}
.calculator-table-head-tools form{display:flex;flex:1;min-width:0;margin:0}
.calculator-table-head-tools form.filter{flex:0 0 min(18rem,34%)}
.calculator-search.table-search{flex:1;width:100%;max-width:none;min-height:2.8rem;padding:0 .75rem;gap:.55rem;border-radius:.5rem;background:rgba(8,10,14,.54)}
.calculator-table-head-tools select.in{width:100%;min-height:2.8rem;border-radius:.5rem;background:rgba(8,10,14,.54);font-size:.8rem}
.calculator-table-head-tools select.in:focus{border-color:rgba(48,224,128,.6);background:rgba(21,23,29,.9)}
.sbar{display:none}
@media(max-width:700px){.calculator-table-head-tools{flex-direction:column}.calculator-table-head-tools form.filter{flex:1}}

/* ===== fenêtre de connexion / inscription : .auth-dialog de RedSide Pêche (accent vert) ===== */
.auth-dialog-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:1rem;background:rgba(5,7,10,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overflow-y:auto}
.nx{z-index:30}
.auth-dialog{position:relative;width:min(100%,27rem);margin:4.5rem 0 1rem;padding:2rem;border:1px solid rgba(48,224,128,.3);border-radius:1rem;background:linear-gradient(145deg,rgba(22,30,27,.98),rgba(14,16,21,.99));box-shadow:0 30px 90px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.05)}
.auth-dialog-kicker{display:inline-flex;align-items:center;gap:.45rem;color:#4fe898;font:600 .62rem 'DM Sans',sans-serif;letter-spacing:.16em}
.auth-dialog-kicker svg{width:13px;height:13px}
.auth-dialog h2{margin:1rem 0 .5rem;color:#eee8df;font:600 2rem/.98 'DM Sans',sans-serif;letter-spacing:-.06em}
.auth-dialog>p{margin:0 2rem 1.5rem 0;color:#858994;font-size:.8rem;line-height:1.65}
.auth-dialog form{display:grid;gap:1rem}
.auth-dialog label{display:grid;gap:.42rem}
.auth-dialog label>span{color:#8a8e99;font:600 .6rem 'DM Sans',sans-serif;letter-spacing:.13em}
.auth-dialog label>div{display:flex;align-items:center;gap:.55rem;padding:.72rem .75rem;border:1px solid rgba(220,222,229,.13);border-radius:.55rem;background:rgba(8,10,14,.54)}
.auth-dialog label>div:focus-within{border-color:rgba(48,224,128,.6)}
.auth-dialog label svg{flex:0 0 auto;width:15px;height:15px;color:#30e080}
.auth-dialog input:not([type=checkbox]){width:100%;min-width:0;height:auto;padding:0;border:0;outline:0;color:#f1ece5;background:transparent;box-shadow:none;font:600 .8rem 'DM Sans',sans-serif}
.auth-dialog input::placeholder{color:#656a75;font-weight:500}
.auth-dialog .auth-eye{display:grid;place-items:center;flex:0 0 auto;padding:0;border:0;background:transparent;color:#8a8e99;cursor:pointer}
.auth-dialog .auth-eye svg{color:inherit}.auth-dialog .auth-eye:hover{color:#f1ece5}
.auth-field-error{color:#ed8178;font-size:.7rem;font-style:normal;line-height:1.4}
.auth-dialog-message{margin:0;color:#ed8178;font-size:.72rem;line-height:1.5}
.auth-dialog-note{display:flex;gap:.5rem;align-items:flex-start;margin:0;padding:.7rem .8rem;border:1px solid rgba(240,197,107,.3);border-radius:.55rem;background:rgba(240,197,107,.07);color:#f0c56b;font-size:.72rem;line-height:1.5}
.auth-dialog-note svg{flex:0 0 auto;width:15px;height:15px;margin-top:1px}
.auth-check{display:flex!important;align-items:flex-start;gap:.65rem!important;color:#858994;font-size:.75rem;line-height:1.5}
.auth-check input{width:16px!important;height:16px;margin-top:2px;accent-color:#30e080;flex:none}
.auth-dialog-submit{width:100%;min-height:2.65rem;padding:.72rem .9rem;border:1px solid rgba(48,224,128,.48);border-radius:.62rem;color:#ddd7ce;background:linear-gradient(135deg,rgba(48,224,128,.14),rgba(10,12,17,.65));box-shadow:inset 0 1px rgba(255,255,255,.04);font:600 .8rem 'DM Sans',sans-serif;cursor:pointer;transition:.22s ease}
.auth-dialog-submit:hover{border-color:#30e080;color:#f3fff8;background:linear-gradient(135deg,rgba(48,224,128,.28),rgba(10,12,17,.72));box-shadow:0 14px 30px rgba(0,0,0,.28),0 0 22px rgba(48,224,128,.2);transform:translateY(-2px)}
.auth-discord-button{display:flex;align-items:center;justify-content:center;gap:.55rem;width:100%;min-height:2.65rem;padding:.72rem .9rem;border:1px solid rgba(88,101,242,.62);border-radius:.62rem;color:#d8dcff;background:linear-gradient(135deg,rgba(88,101,242,.2),rgba(10,12,17,.7));box-shadow:inset 0 1px rgba(255,255,255,.06);font:600 .8rem 'DM Sans',sans-serif;cursor:pointer;transition:.22s ease}
.auth-discord-button:hover{border-color:#7280ff;color:#fff;transform:translateY(-2px)}
.auth-discord-button svg{width:16px;height:16px}
.auth-dialog-switch{display:block;width:100%;margin-top:1rem;color:#8a8e99;font-size:.75rem;text-align:center}
.auth-dialog-switch b{color:#4fe898;font-weight:600}.auth-dialog-switch:hover{color:#e8e3d8}.auth-dialog-switch:hover b{text-decoration:underline;text-underline-offset:.2em}
@media(max-width:700px){.auth-dialog{padding:1.5rem}.auth-dialog h2{font-size:1.7rem}}

/* ===== bouton « Mon compte » : .nox-account-button de RedSide ===== */
.nx-accbtn{gap:.42rem;padding:.42rem .65rem;height:auto;min-height:2.3rem;border:1px solid rgba(48,224,128,.22);border-radius:.5rem;color:#d7d1c7;background:rgba(48,224,128,.07);font:600 .7rem 'DM Sans',sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s}
.nx-accbtn:hover,.nx-accbtn[aria-expanded=true],.nx-accbtn[aria-current=page]{border-color:rgba(48,224,128,.5);color:#effff6;background:rgba(48,224,128,.14)}
a.nx-accbtn{display:inline-flex;align-items:center}
.nx-drawer a[aria-current=page],.nx-drawer a:hover{color:#effff6}
/* ===== page d'accueil ===== */
.content.home{padding-top:8rem}
.home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:3rem;align-items:center;margin-bottom:5rem}
.home-copy h1{margin:1.1rem 0 1rem;font-size:clamp(2.6rem,6vw,4.9rem);line-height:.95;letter-spacing:-.068em;font-weight:700}
.home-lead{max-width:34rem;color:#9a9ea9;font-size:1.02rem;line-height:1.65}
.home-cta{display:flex;flex-wrap:wrap;gap:.65rem;margin:1.8rem 0 1.6rem}
.home-points{list-style:none;padding:0;display:grid;gap:.6rem;color:#aaa7a0;font-size:.85rem}
.home-points li{display:flex;gap:.6rem;align-items:flex-start}.home-points svg{color:var(--ac);margin-top:3px}
.home-demo{justify-self:center;width:100%;max-width:460px}
.home-demo .ezapp{margin:0 auto}
.home-demo-note{display:flex;gap:.55rem;margin:1rem .2rem 0;color:#8a8e99;font-size:.78rem;line-height:1.55}.home-demo-note svg{flex:none;margin-top:2px;color:var(--ac)}
.home-demo-note b{color:#d7d1c7}
.home-section{margin-bottom:4.5rem}
.home-section .calculator-catalogue-heading h2{font-size:1.9rem;letter-spacing:-.05em}
.home-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.home-steps li{position:relative;padding:1.4rem 1.2rem 1.3rem;border:1px solid var(--ln);border-radius:.9rem;background:rgba(18,20,26,.74);box-shadow:inset 0 1px rgba(255,255,255,.035)}
.home-step-n{position:absolute;top:1rem;right:1.1rem;color:rgba(202,207,220,.25);font-size:1.6rem;font-weight:700;letter-spacing:-.05em}
.home-step-ic{display:grid;place-items:center;width:2.4rem;height:2.4rem;margin-bottom:.9rem;border:1px solid rgba(48,224,128,.28);border-radius:.6rem;background:rgba(48,224,128,.08);color:var(--ac)}
.home-steps b{display:block;margin-bottom:.35rem;font-size:.95rem;letter-spacing:-.02em}.home-steps p{color:#8a8e99;font-size:.82rem;line-height:1.6}
.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.home-grid b{display:flex;align-items:center;gap:.5rem;margin-bottom:.45rem;font-size:1rem;letter-spacing:-.02em}.home-grid b svg{color:var(--ac)}
.home-grid p{color:#9a9ea9;font-size:.85rem;line-height:1.65}
.home-prices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem}
.home-price{display:flex;flex-direction:column;gap:.35rem;padding:1.1rem 1rem;color:var(--tx);transition:transform .25s,border-color .25s,background-color .25s}
.home-price:hover{transform:translateY(-3px);border-color:rgba(48,224,128,.4)}
.home-price.is-pop{border-color:rgba(48,224,128,.4);background:radial-gradient(circle at 15% 0%,rgba(48,224,128,.12),transparent 40%),linear-gradient(145deg,rgba(26,29,37,.9),rgba(16,18,24,.9))}
.home-price-name{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;font-size:.8rem;font-weight:600;color:#aaa7a0}
.home-price b{font-size:1.5rem;font-weight:700;letter-spacing:-.05em}.home-price small{color:var(--dim);font-size:.72rem}
.home-faq{display:grid;gap:.6rem}
.home-faq details{border:1px solid var(--ln);border-radius:.8rem;background:rgba(18,20,26,.74)}
.home-faq summary{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;cursor:pointer;font-weight:600;font-size:.9rem;list-style:none}
.home-faq summary::-webkit-details-marker{display:none}
.home-faq summary::after{content:"+";color:var(--ac);font-size:1.2rem;line-height:1;transition:transform .2s}
.home-faq details[open] summary::after{transform:rotate(45deg)}
.home-faq details p{padding:0 1.2rem 1.1rem;color:#9a9ea9;font-size:.85rem;line-height:1.65}
.home-faq summary:focus-visible{outline:2px solid var(--ac);outline-offset:2px;border-radius:.8rem}
@media(max-width:1180px){.home-hero{grid-template-columns:1fr;gap:2rem}.home-demo{justify-self:center}.home-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.home-prices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.content.home{padding-top:6.5rem}.home-steps,.home-grid{grid-template-columns:1fr}.home-prices{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== accueil : texte remonté sous l'en-tête ===== */
.content.home{padding-top:6.4rem}
.home-hero{align-items:start;margin-bottom:4.5rem}
.home-copy{padding-top:1rem}
.home-copy h1{margin-top:.9rem}
.home-teaser{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.6rem 1.8rem}
.home-teaser h2{margin:.55rem 0 .4rem;font-size:1.6rem;letter-spacing:-.05em}.home-teaser p{color:#9a9ea9;font-size:.9rem}
/* ===== page Tarifs ===== */
.tarifs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.tarif{display:flex;flex-direction:column;gap:.45rem;padding:1.5rem 1.4rem;color:var(--tx);transition:transform .25s,border-color .25s}
.tarif:hover{transform:translateY(-3px);border-color:rgba(48,224,128,.4)}
.tarif.is-pop{border-color:rgba(48,224,128,.4);background:radial-gradient(circle at 15% 0%,rgba(48,224,128,.12),transparent 40%),linear-gradient(145deg,rgba(26,29,37,.9),rgba(16,18,24,.9))}
.tarif-name{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;color:#aaa7a0;font-size:.9rem;font-weight:600}
.tarif b{font-size:2.3rem;font-weight:700;letter-spacing:-.06em;line-height:1.1}
.tarif small{color:var(--dim);font-size:.8rem}
.tarif-go{display:inline-flex;align-items:center;gap:.3rem;margin-top:.6rem;color:var(--ac);font-size:.8rem;font-weight:600}.tarif-go svg{width:14px;height:14px}
.tarifs-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1180px){.home-teaser{flex-direction:column;align-items:flex-start}}
@media(max-width:900px){.tarifs-grid,.tarifs-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tarifs-grid,.tarifs-steps{grid-template-columns:1fr}.content.home{padding-top:5.8rem}}

/* ===== en-tête : valeurs exactes du .nox-nav de RedSide Pêche (accent vert) ===== */
.nx{padding:16px 16px 0}
@media(min-width:640px){.nx{padding:16px 24px 0}}
@media(min-width:1024px){.nx{padding:16px 32px 0}}
.nx-bar{max-width:1180px;border-radius:16px;padding:12px;background:rgba(12,14,19,.78);border:1px solid rgba(202,207,220,.09);box-shadow:0 16px 55px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.035);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
@media(min-width:640px){.nx-bar{padding:12px 16px}}
.nx-row{gap:12px}
.nx-brand{gap:12px}
.nx-brand img{width:44px;height:44px;border-radius:12px;object-fit:contain}
.nx-brand-copy{line-height:1}
.nx-brand-copy b{display:block;font:700 14px 'DM Sans',sans-serif;letter-spacing:.13em;color:#f1eee7;line-height:1}
.nx-brand-copy small{display:block;margin-top:4px;font:400 8px 'DM Sans',sans-serif;letter-spacing:.2em;text-transform:none;color:#777b86}
.nx-links a,.nx-drawer a{padding:10px 12px;border-radius:12px;color:rgba(220,222,229,.58);font-size:12px;font-weight:600;letter-spacing:.015em}
.nx-links a:hover,.nx-drawer a:hover{color:#e8e3d8;background:rgba(255,255,255,.045)}
.nx-links a[aria-current=page],.nx-drawer a[aria-current=page]{color:#effff6;background:rgba(48,224,128,.12);box-shadow:inset 0 0 0 1px rgba(48,224,128,.12)}
.nx-sep{width:1px;height:20px;background:rgba(220,222,229,.1)}
/* bouton « Mon compte » : .nox-account-button */
.nx-accbtn{display:inline-flex;align-items:center;flex-shrink:0;gap:.42rem;min-width:0;max-width:10rem;height:auto;min-height:0;padding:.42rem .6rem;overflow:hidden;border:1px solid rgba(48,224,128,.22);border-radius:.5rem;color:#d7d1c7;background:rgba(48,224,128,.07);font:600 .55rem 'DM Sans',sans-serif;letter-spacing:.06em;text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,color .2s ease}
.nx-accbtn>svg{flex:0 0 auto;width:14px;height:14px}
.nx-accbtn>span{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nx-accbtn:hover,.nx-accbtn[aria-expanded=true],.nx-accbtn[aria-current=page]{border-color:rgba(48,224,128,.5);color:#effff6;background:rgba(48,224,128,.14)}
.nx-acc{position:relative;width:max-content;max-width:10rem;min-width:0;flex:0 1 auto}
.nx-acc>.nx-accbtn{display:grid;grid-template-columns:auto minmax(0,1fr) auto;width:max-content;max-width:100%;box-sizing:border-box}
.nx-accbtn svg.cv{width:13px;height:13px;color:#777c87;transform:none;transition:transform .2s ease}
.nx-accbtn[aria-expanded=true] svg.cv{transform:rotate(180deg)}
/* menu du compte : .nox-account-menu */
.nx-menu{position:absolute;top:calc(100% + .65rem);right:0;z-index:8;width:14.5rem;padding:.45rem;border:1px solid rgba(48,224,128,.28);border-radius:.75rem;background:rgba(18,22,22,.98);box-shadow:0 18px 45px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.05);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:nox-menu-in .18s ease both}
.nx-menu::before{content:'';position:absolute;top:-.35rem;right:1.45rem;width:.65rem;height:.65rem;transform:rotate(45deg);border-left:1px solid rgba(48,224,128,.28);border-top:1px solid rgba(48,224,128,.28);background:#121616}
@keyframes nox-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.nx-prof{display:flex;align-items:center;gap:.65rem;margin:.15rem .2rem .4rem;padding:.65rem .55rem .75rem;border-bottom:1px solid rgba(202,207,220,.09)}
.nx-prof .avatar{display:grid;place-items:center;width:2rem;height:2rem;flex:0 0 auto;border:1px solid rgba(48,224,128,.3);border-radius:50%;color:#4fe898;background:rgba(48,224,128,.08);font-size:.7rem}
.nx-prof>span:last-child{display:grid;gap:.2rem;min-width:0}
.nx-prof b{overflow:hidden;color:#eee8df;font-size:.65rem;text-overflow:ellipsis;white-space:nowrap}
.nx-prof small{overflow:hidden;color:#686d78;font-size:.52rem;text-overflow:ellipsis;white-space:nowrap}
.nx-menu a,.nx-menu .nx-logout button{display:flex;align-items:center;gap:.6rem;width:100%;padding:.65rem .7rem;border:0;border-radius:.45rem;color:#aaa49b;background:transparent;font:600 .63rem 'DM Sans',sans-serif;text-align:left;cursor:pointer;transition:.18s ease}
.nx-menu a:hover,.nx-menu .nx-logout button:hover{color:#f3fff8;background:rgba(48,224,128,.1)}
.nx-menu a svg,.nx-menu .nx-logout svg{width:15px;height:15px;color:#4fe898}
.nx-menu .nx-logout button{margin-top:.25rem;border-top:1px solid rgba(202,207,220,.09);border-radius:.2rem .2rem .45rem .45rem;color:#cf8a84}
.nx-menu .nx-logout button:hover{background:rgba(237,75,66,.1);color:#ffd9d6}
.nx-menu .nx-logout svg{color:#ed655e}
/* bouton à 3 traits : mêmes bordure et fond que RedSide */
.nx-burger{width:40px;height:40px;border:1px solid rgba(220,222,229,.11);border-radius:12px;background:rgba(255,255,255,.035);color:#e8e3d8}
.nx-burger:hover{border-color:rgba(48,224,128,.35);background:rgba(48,224,128,.1)}
/* bascule vers le menu réduit à 1280 px (xl) comme chez RedSide */
@media(min-width:1280px){.nx-burger{display:none!important}.nx-drawer{display:none!important}}
@media(max-width:1279px){.nx-links,.nx-right{display:none}.nx-burger{display:inline-flex}.nx-bar.open .nx-drawer{display:grid;gap:4px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(220,222,229,.1)}}
.nx-drawer a,.nx-drawer .nx-logout button{padding:12px;font-size:14px}

/* arrondi des onglets de l'en-t?te : rounded-xl de RedSide = rayon + 4 px = 1rem */
.nx-links a,.nx-drawer a,.nx-drawer .nx-logout button,.nx-burger{border-radius:1rem}


/* ===== page « Paramètres » : page « Mon compte » de RedSide Pêche (accent vert) ===== */
.profile-kicker{display:inline-flex;align-items:center;gap:.45rem;color:#4fe898;font:600 .62rem/1.2 'DM Sans',sans-serif;letter-spacing:.17em;text-transform:uppercase}
.profile-kicker svg{width:13px;height:13px}.profile-kicker.is-danger{color:#ed8178}
.profile-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:0}
.profile-info-card{display:flex;align-items:flex-start;gap:.8rem;min-width:0;padding:1.1rem;border:1px solid rgba(220,222,229,.1);border-radius:.8rem;background:linear-gradient(145deg,rgba(27,29,37,.85),rgba(15,17,22,.88));box-shadow:inset 0 1px rgba(255,255,255,.035)}
.profile-card-icon{display:grid;place-items:center;flex:0 0 auto;width:2.55rem;height:2.55rem;border:1px solid rgba(48,224,128,.25);border-radius:.65rem;color:#4fe898;background:rgba(48,224,128,.08)}
.profile-card-icon svg{width:18px;height:18px}
.profile-info-card>div{display:grid;gap:.28rem;min-width:0;padding-top:.05rem}
.profile-card-label{color:#8a8e99;font:600 .6rem 'DM Sans',sans-serif;letter-spacing:.13em;text-transform:uppercase}
.profile-info-card strong{overflow:hidden;color:#eee8df;font:600 .88rem 'DM Sans',sans-serif;text-overflow:ellipsis;white-space:nowrap}
.profile-info-card small{color:#7a7f8a;font-size:.68rem}
.profile-settings-card{margin-top:1.25rem;overflow:hidden;border:1px solid rgba(220,222,229,.12);border-radius:.9rem;background:linear-gradient(145deg,rgba(27,29,37,.95),rgba(15,17,22,.95));box-shadow:0 28px 80px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.04)}
.profile-settings-heading{display:flex;justify-content:space-between;gap:1rem;padding:1.8rem 2rem 1.35rem;border-bottom:1px solid rgba(202,207,220,.09)}
.profile-settings-heading h2{margin:.55rem 0 .35rem;color:#eee8df;font:600 1.55rem/1.05 'DM Sans',sans-serif;letter-spacing:-.045em}
.profile-settings-heading p{margin:0;color:#8a8e99;font-size:.78rem;line-height:1.65}
.profile-form-columns{display:grid;grid-template-columns:1fr 1fr;gap:0}
.profile-form-section{display:grid;align-content:start;gap:.55rem;padding:1.45rem 1.55rem 1.6rem}
.profile-form-section+.profile-form-section{border-left:1px solid rgba(202,207,220,.09)}
.profile-form-section>small{color:#7a7f8a;font-size:.68rem}
.profile-rp-section,.profile-password-section{grid-column:1/-1;border-top:1px solid rgba(202,207,220,.09);border-left:0!important}
.profile-input{display:flex;align-items:center;gap:.55rem;padding:.72rem .75rem;border:1px solid rgba(220,222,229,.13);border-radius:.5rem;background:rgba(8,10,14,.54)}
.profile-input:focus-within{border-color:rgba(48,224,128,.65);box-shadow:0 0 0 3px rgba(48,224,128,.06)}
.profile-input svg{flex:0 0 auto;width:16px;height:16px;color:#30e080}
.profile-input input{width:100%;min-width:0;height:auto;padding:0;border:0;outline:0;color:#f1ece5;background:transparent;box-shadow:none;font:600 .78rem 'DM Sans',sans-serif}
.profile-input input::placeholder{color:#656a75;font-weight:500}
.profile-password-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;align-items:start}
.profile-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;width:min(100%,12.5rem);padding:.72rem .9rem;border:1px solid rgba(48,224,128,.48);border-radius:.65rem;color:#30e080;background:linear-gradient(135deg,rgba(48,224,128,.13),rgba(10,12,17,.68));box-shadow:0 10px 26px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.1),0 0 20px rgba(48,224,128,.07);font:600 .72rem 'DM Sans',sans-serif;cursor:pointer;transition:.22s ease}
.profile-btn svg{width:14px;height:14px}.profile-btn b{font-weight:600}
.profile-btn:hover{border-color:#30e080;color:#f3fff8;background:linear-gradient(135deg,rgba(48,224,128,.28),rgba(10,12,17,.72));box-shadow:0 14px 30px rgba(0,0,0,.28),0 0 22px rgba(48,224,128,.2);transform:translateY(-2px)}
.profile-btn:active{transform:none}
.profile-discord-linked{display:flex;align-items:center;gap:.65rem;min-height:2.7rem}
.profile-discord-ic{display:grid;place-items:center;flex:0 0 auto;width:2.35rem;height:2.35rem;border:1px solid rgba(48,224,128,.75);border-radius:50%;color:#fff;background:#5865f2}
.profile-discord-ic svg{width:16px;height:16px}
.profile-discord-identity{display:grid;flex:1 1 auto;gap:.2rem;min-width:0}
.profile-discord-linked strong{overflow:hidden;color:#eee8df;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}
.profile-discord-linked small{color:#7a7f8a;font-size:.68rem}
.profile-discord-unlink-button,.profile-device-button,.profile-delete-button{width:auto;min-height:2.45rem;flex:0 0 auto;max-width:100%;white-space:nowrap}
.profile-discord-link-button{width:min(100%,12.5rem);border-color:rgba(88,101,242,.72);color:#aeb6ef;background:linear-gradient(135deg,rgba(88,101,242,.18),rgba(10,12,17,.68));box-shadow:0 10px 26px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.1),0 0 20px rgba(88,101,242,.1)}
.profile-discord-link-button:hover{border-color:#7280ff;color:#fff;background:linear-gradient(135deg,rgba(88,101,242,.36),rgba(10,12,17,.72))}
.profile-device{display:flex;align-items:center;gap:.8rem}
.profile-device>div{display:grid;gap:.25rem;flex:1;min-width:0}
.profile-device strong{color:#eee8df;font-size:.82rem}.profile-device small{color:#7a7f8a;font-size:.68rem}
.profile-form-message{margin:0;padding:.8rem 1.55rem;border-top:1px solid rgba(202,207,220,.09);color:#a9c98f;font-size:.72rem}.profile-form-message.is-error{color:#ed8178}
.profile-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.55rem;border-top:1px solid rgba(202,207,220,.09);background:rgba(9,11,15,.32)}
.profile-settings-footer>span{color:#7a7f8a;font-size:.68rem}
.profile-save-button{width:min(100%,14rem);white-space:nowrap}
.profile-danger{border-color:rgba(237,75,66,.22)}
.profile-danger .profile-settings-heading{padding:1.4rem 2rem 1.1rem}.profile-danger h2{font-size:1.25rem}
.profile-danger-input{flex:1;max-width:24rem}
.profile-delete-button{border-color:rgba(237,75,66,.5);color:#ef8f89;background:linear-gradient(135deg,rgba(237,75,66,.13),rgba(10,12,17,.68));box-shadow:0 10px 26px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.08)}
.profile-delete-button:hover{border-color:#ed4b42;color:#fff3f1;background:linear-gradient(135deg,rgba(237,75,66,.28),rgba(10,12,17,.72));box-shadow:0 14px 30px rgba(0,0,0,.28),0 0 22px rgba(237,75,66,.2)}
@media(max-width:900px){.profile-card-grid{grid-template-columns:1fr}.profile-form-columns{grid-template-columns:1fr}.profile-form-section+.profile-form-section{border-left:0;border-top:1px solid rgba(202,207,220,.09)}.profile-password-fields{grid-template-columns:1fr}.profile-settings-heading{padding:1.4rem 1.2rem 1.1rem}.profile-settings-footer{flex-direction:column;align-items:stretch}.profile-save-button,.profile-delete-button{width:100%}.profile-danger-input{max-width:none}.profile-device{flex-wrap:wrap}.profile-discord-linked{flex-wrap:wrap}}

/* ===== liste déroulante : .calculator-select / .calculator-zone-dropdown de RedSide (accent vert) ===== */
.calculator-select{display:flex;align-items:center;gap:.45rem;min-width:0;min-height:3.2rem;padding:0 .7rem;border:1px solid rgba(220,222,229,.12);border-radius:.7rem;background:rgba(14,16,21,.68);box-shadow:inset 0 1px rgba(255,255,255,.035)}
.calculator-zone-dropdown{position:relative}
.table-filter-dropdown{min-height:2.8rem;border-radius:.5rem;background:rgba(8,10,14,.54)}
.calculator-table-head-tools .calculator-select{flex:0 0 min(18rem,34%)}
.calculator-zone-trigger{display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-width:0;flex:1;padding:0;border:0;outline:0;color:#dfd9d0;background:transparent;font:400 .8rem 'DM Sans',sans-serif;text-align:left;cursor:pointer}
.calculator-zone-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calculator-zone-trigger svg{flex:0 0 auto;width:15px;height:15px;color:#aeb0b8;transition:color .2s ease,transform .2s ease}
.calculator-zone-dropdown:focus-within,.calculator-zone-dropdown:has(.calculator-zone-trigger[aria-expanded=true]){border-color:rgba(48,224,128,.45);background:rgba(21,23,29,.9)}
.calculator-zone-dropdown:has(.calculator-zone-trigger[aria-expanded=true]) .calculator-zone-trigger svg{color:#4fe898;transform:rotate(180deg)}
.calculator-zone-menu{position:fixed;z-index:100;min-width:15rem;max-height:min(20rem,70vh);overflow-y:auto;padding:.35rem;border:1px solid rgba(48,224,128,.3);border-radius:.65rem;background:rgba(20,22,29,.98);box-shadow:0 18px 35px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.04);scrollbar-width:none;overscroll-behavior:contain}
.calculator-zone-menu::-webkit-scrollbar{display:none}
.calculator-zone-menu[hidden]{display:none}
.calculator-zone-menu a,.calculator-zone-menu button{display:flex;align-items:center;justify-content:space-between;gap:.8rem;width:100%;min-height:2.15rem;padding:.45rem .6rem;border:1px solid transparent;border-radius:.4rem;color:#aeb0b8;background:transparent;font:400 .76rem 'DM Sans',sans-serif;text-align:left;cursor:pointer;transition:color .2s ease,border-color .2s ease,background-color .2s ease}
.calculator-zone-menu .c{color:#686d78;font-size:.7rem;background:none}
.calculator-zone-menu a:hover,.calculator-zone-menu a.is-active{border-color:rgba(48,224,128,.2);color:#f0eae2;background:rgba(48,224,128,.1)}
.calculator-zone-menu a.is-active{color:#4fe898}
.calculator-zone-menu a:focus-visible{outline:2px solid rgba(48,224,128,.88);outline-offset:-2px}
@media(max-width:700px){.calculator-table-head-tools .calculator-select{flex:1 1 auto}}

/* liste déroulante : tailles exactes de RedSide (.calculator-zone-trigger .7rem, options .68rem) */
.calculator-zone-trigger{font-size:.7rem}
.calculator-zone-menu{position:fixed;min-width:0;top:auto}
.calculator-zone-menu a,.calculator-zone-menu button{font-size:.68rem}
.calculator-zone-menu .c{font-size:.62rem}

/* liste déroulante dans un formulaire : même design, à la hauteur des champs voisins */
.form-dd{width:100%;min-height:2.5rem;border-radius:.5rem;padding:0 .8rem}
.form-dd .calculator-zone-trigger{height:2.5rem;font-size:.8rem}
.calculator-zone-menu button[role=option]{justify-content:flex-start}

.calculator-zone-menu button:hover,.calculator-zone-menu button.is-active{border-color:rgba(48,224,128,.2);color:#f0eae2;background:rgba(48,224,128,.1)}
.calculator-zone-menu button.is-active{color:#4fe898}
.calculator-zone-menu button:focus-visible{outline:2px solid rgba(48,224,128,.88);outline-offset:-2px}


/* Discord lié : avatar rond comme sur « Mon compte » de RedSide */
.profile-discord-linked img{width:2.35rem;height:2.35rem;flex:0 0 auto;border:1px solid rgba(48,224,128,.75);border-radius:50%;object-fit:cover;background:#1b1e26}
.profile-discord-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Fiche utilisateur en panneau latéral (admin-member-drawer de RedSide, en vert) */
body:has(.admin-member-overlay){overflow:hidden}
.admin-member-overlay{position:fixed;inset:0;z-index:60;display:flex;justify-content:flex-end;background:rgba(4,6,9,.68);backdrop-filter:blur(5px);animation:adm-ov .18s ease both}
.admin-member-backdrop{position:absolute;inset:0;cursor:default}
.admin-member-drawer{position:relative;display:flex;flex-direction:column;width:min(31rem,100%);height:100%;overflow:hidden;border-left:1px solid rgba(48,224,128,.28);background:linear-gradient(155deg,#171d1b 0%,#11131a 48%,#0c0e13 100%);box-shadow:-24px 0 70px rgba(0,0,0,.42);animation:adm-dr .22s ease both}
.admin-member-drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.35rem 1.35rem 1.1rem;border-bottom:1px solid var(--ln)}
.admin-member-drawer-header p{margin:.4rem 0 0;color:#858994;font-size:.68rem}
.admin-member-drawer-body{overflow-y:auto;padding:1.25rem 1.35rem 2rem;display:grid;gap:1rem;align-content:start}
.admin-kicker{color:#8a8e98;font:600 .53rem monospace;letter-spacing:.15em}.admin-kicker.is-danger{color:#ed655e}
.admin-icon-button{display:grid;place-items:center;width:1.9rem;height:1.9rem;border:1px solid rgba(220,222,229,.12);border-radius:.4rem;color:#a8abb3}
.admin-icon-button:hover{border-color:rgba(48,224,128,.4);color:#effff6}.admin-icon-button svg{width:15px;height:15px}
.admin-member-identity{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;padding-bottom:1.15rem;border-bottom:1px solid rgba(220,222,229,.09)}
.admin-member-avatar{display:grid;place-items:center;width:3rem;height:3rem;border:1px solid rgba(48,224,128,.3);border-radius:.8rem;color:#4fe898;background:rgba(48,224,128,.08);font-weight:700;font-size:.8rem}
.admin-member-identity h2{margin:0;overflow:hidden;color:#eee8df;font-size:1.35rem;line-height:1.05;letter-spacing:-.045em;text-overflow:ellipsis;white-space:nowrap}
.admin-member-identity p{margin:.3rem 0 0;overflow:hidden;color:#aaa49b;font-size:.66rem;text-overflow:ellipsis;white-space:nowrap}
.admin-member-identity small{display:block;margin-top:.35rem;color:#686d78;font:.5rem monospace}
.admin-role-badge{align-self:start;padding:.25rem .55rem;border:1px solid rgba(220,222,229,.12);border-radius:99px;color:#aaa49b;font-size:.55rem;font-weight:600}
.admin-role-badge.is-admin{border-color:rgba(48,224,128,.4);color:#4fe898;background:rgba(48,224,128,.08)}
.admin-discord-badge{display:flex;align-items:center;gap:.7rem;padding:.65rem .75rem;border:1px solid rgba(88,101,242,.35);border-radius:.6rem;background:rgba(88,101,242,.08)}
.admin-discord-badge img{width:2.25rem;height:2.25rem;border-radius:50%;object-fit:cover}.admin-discord-badge>svg{width:20px;height:20px;color:#8f98ff}
.admin-discord-badge span{display:grid;min-width:0}.admin-discord-badge strong{color:#eee8df;font-size:.78rem}.admin-discord-badge small{color:#858994;font-size:.6rem;overflow:hidden;text-overflow:ellipsis}
.admin-member-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}
.admin-member-metrics div{display:grid;gap:.3rem;min-width:0;padding:.75rem .7rem;border:1px solid rgba(220,222,229,.1);border-radius:.55rem;background:rgba(8,10,14,.3)}
.admin-member-metrics svg{width:15px;height:15px;color:#30e080}
.admin-member-metrics strong{overflow:hidden;color:#eee8df;font-size:.85rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.admin-member-metrics span{color:#777c87;font:600 .5rem monospace;letter-spacing:.08em;text-transform:uppercase}
.admin-member-edit-form{display:grid;gap:.75rem;padding:1rem;border:1px solid var(--ln);border-radius:.7rem;background:rgba(8,10,14,.25)}
.admin-drawer-section-heading{display:grid;gap:.35rem}.admin-drawer-section-heading h3{margin:.1rem 0 0;color:#eee8df;font-size:1rem;line-height:1.1;letter-spacing:-.03em}
.admin-drawer-section-heading p{margin:0 0 .25rem;color:#777c87;font-size:.62rem;line-height:1.5}
.admin-field,.admin-label{display:flex;flex-direction:column;gap:.35rem;color:#888c96;font:600 .54rem monospace;letter-spacing:.06em;text-transform:uppercase}
.admin-field input{width:100%;box-sizing:border-box;border:1px solid rgba(220,222,229,.12);border-radius:.4rem;padding:.62rem .65rem;outline:0;color:#e7e0d6;background:#171a21;font:400 .72rem sans-serif;letter-spacing:normal;text-transform:none}
.admin-field input:focus{border-color:rgba(48,224,128,.55)}.admin-field input[aria-invalid=true]{border-color:#ed655e}
.admin-form-hint{margin:0;color:#777c87;font-size:.65rem}
.admin-member-save-button{display:flex;width:100%;box-sizing:border-box;justify-content:center;align-items:center;gap:.4rem;text-align:center}
.admin-lic-form{display:grid;gap:.6rem}.admin-drawer-actions{display:flex;gap:.5rem;flex-wrap:wrap}.admin-drawer-actions form{margin:0}
.admin-pending{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.6rem .7rem;border:1px solid #25507e;border-radius:.5rem;background:rgba(40,100,170,.08)}.admin-pending span{flex:1;color:#858994;font-size:.65rem}
.admin-danger{border-color:rgba(237,101,94,.25)}
.admin-member-history-badge{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.65rem .7rem;border:1px solid rgba(220,222,229,.1);border-radius:.55rem;color:#aaa49b;background:rgba(8,10,14,.28);transition:.18s}
.admin-member-history-badge:hover{border-color:rgba(48,224,128,.4);color:#eee8df;background:rgba(48,224,128,.07)}
.admin-member-history-badge-icon{display:grid;place-items:center;width:2rem;height:2rem;border:1px solid rgba(220,222,229,.12);border-radius:.5rem;color:#858994}
.admin-member-history-badge strong{display:block;font-size:.72rem}.admin-member-history-badge small{color:#777c87;font-size:.6rem}.admin-member-history-badge svg{width:15px;height:15px}
.admin-member-history .admin-drawer-section-heading{margin-bottom:.8rem}
.admin-member-overlay .calculator-zone-menu{z-index:70}
@keyframes adm-dr{from{transform:translateX(1.5rem);opacity:.7}to{transform:none;opacity:1}}@keyframes adm-ov{from{opacity:0}to{opacity:1}}
@media(max-width:640px){.admin-member-drawer-header,.admin-member-drawer-body{padding-left:1rem;padding-right:1rem}.admin-member-metrics{grid-template-columns:1fr}}
.admin-member-save-button.profile-btn{min-height:2.6rem}

/* Historique utilisateur (admin-history-page de RedSide, en vert) */
.admin-history-page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}
.admin-history-back-link{display:inline-flex;align-items:center;gap:.35rem;color:#4fe898;font-weight:600;font-size:.7rem}.admin-history-back-link:hover{color:#effff6}.admin-history-back-link svg{width:14px;height:14px}
.admin-history-member-id{color:#686d78;font:.55rem monospace}.admin-history-member-id:hover{color:#4fe898}
.admin-history-category-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-bottom:1rem}
.admin-history-category-link{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.65rem;min-width:0;min-height:4.2rem;padding:.65rem .72rem;border:1px solid rgba(220,222,229,.1);border-radius:.7rem;color:#858994;background:rgba(8,10,14,.28);transition:border-color .2s,background-color .2s,color .2s,transform .2s}
.admin-history-category-link:hover{border-color:rgba(48,224,128,.34);color:#eee8df;background:rgba(48,224,128,.055);transform:translateY(-1px)}
.admin-history-category-link.is-active{border-color:rgba(48,224,128,.48);color:#effff6;background:rgba(48,224,128,.1);box-shadow:inset 0 0 0 1px rgba(48,224,128,.06)}
.admin-history-category-icon{display:grid;place-items:center;width:2.15rem;height:2.15rem;flex:0 0 auto;border:1px solid rgba(220,222,229,.14);border-radius:.62rem;color:#9a9da6;background:rgba(255,255,255,.025)}
.admin-history-category-icon svg{width:16px;height:16px}.admin-history-category-icon.sm{width:1.7rem;height:1.7rem;border-radius:.5rem}.admin-history-category-icon.sm svg{width:14px;height:14px}
.admin-history-category-link:hover .admin-history-category-icon,.admin-history-category-link.is-active .admin-history-category-icon,tr:hover .admin-history-category-icon.sm{border-color:rgba(48,224,128,.34);color:#4fe898;background:rgba(48,224,128,.1)}
.admin-history-category-copy{display:grid;gap:.22rem;min-width:0}.admin-history-category-copy strong{overflow:hidden;color:inherit;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.admin-history-category-copy small{overflow:hidden;color:#686d78;font:500 .55rem monospace;text-overflow:ellipsis;white-space:nowrap}
.admin-history-page-card{overflow:hidden;border:1px solid var(--ln);border-radius:.85rem;background:linear-gradient(145deg,rgba(27,29,37,.82),rgba(15,17,22,.9));box-shadow:inset 0 1px rgba(255,255,255,.035),0 20px 55px rgba(0,0,0,.18)}
.admin-history-page-card-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid var(--ln)}
.admin-history-page-card-heading h2{margin:.4rem 0 0;color:#eee8df;font-size:1.15rem;line-height:1;letter-spacing:-.04em}
.admin-history-page-card-heading>strong{color:#777c87;font:600 .52rem monospace;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.admin-history-page-table-wrap{overflow-x:auto}.admin-history-table{width:100%;min-width:640px}
.admin-history-event-cell{display:flex;align-items:center;gap:.55rem;min-width:10rem}.admin-history-event-cell strong{color:#e8e3d8;font-size:.72rem;white-space:nowrap}
.admin-history-description{display:block;max-width:30rem;overflow:hidden;color:#999da6;text-overflow:ellipsis;white-space:nowrap}
.admin-history-date{color:#999da6;font:.62rem monospace;white-space:nowrap}
@media(max-width:640px){.admin-history-category-nav{grid-template-columns:1fr}.admin-history-page-card-heading{align-items:flex-start;flex-direction:column}.admin-history-page-toolbar{flex-direction:column;align-items:flex-start}}

/* formulaire « Nouveau code » : espacement régulier, étiquette au-dessus, aide en dessous */
.pform{display:grid;gap:18px}.pf-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.pf{display:grid;gap:7px;min-width:0;align-content:start}.pf .l{margin:0}.pf .help,.pf .err{margin:0;font-size:12px}
.pf .form-dd{margin:0}.pform .btn.full{margin-top:2px}
@media(max-width:480px){.pf-row{grid-template-columns:1fr}}

/* barre de défilement horizontale des tableaux : fine, sombre, discrète (plus de barre blanche du navigateur) */
.tblw,.admin-history-page-table-wrap{scrollbar-width:thin;scrollbar-color:rgba(48,224,128,.28) transparent}
.tblw::-webkit-scrollbar,.admin-history-page-table-wrap::-webkit-scrollbar{height:6px;background:transparent}
.tblw::-webkit-scrollbar-track,.admin-history-page-table-wrap::-webkit-scrollbar-track{background:transparent}
.tblw::-webkit-scrollbar-thumb,.admin-history-page-table-wrap::-webkit-scrollbar-thumb{background:rgba(48,224,128,.22);border-radius:99px}
.tblw::-webkit-scrollbar-thumb:hover,.admin-history-page-table-wrap::-webkit-scrollbar-thumb:hover{background:rgba(48,224,128,.45)}
.tblw::-webkit-scrollbar-button,.admin-history-page-table-wrap::-webkit-scrollbar-button{display:none}

/* aucun défilement horizontal : les tableaux s'adaptent à la largeur (retours à la ligne), jamais de barre */
.tblw,.admin-history-page-table-wrap,.calculator-table-wrap .tblw{overflow-x:hidden;scrollbar-width:none}
.tblw::-webkit-scrollbar,.admin-history-page-table-wrap::-webkit-scrollbar{display:none}
.tblw table,.admin-history-table{min-width:0!important;table-layout:auto}
.tblw th,.tblw td{white-space:normal}
#kb td,#pb td{white-space:normal}
.tblw td,.tblw th{padding-left:12px;padding-right:12px}
.tblw code{white-space:normal;word-break:break-all}
.tblw td div[style*="justify-content:flex-end"]{flex-wrap:wrap}
.admin-history-description{white-space:normal;max-width:none}
.pf .in,.pf input{min-width:0;width:100%;max-width:100%}

/* actions d'une clé : trois points + petit menu */
.kebab{display:inline-block;margin:0}
.kebab-btn{display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:1px solid transparent;border-radius:.5rem;color:#9a9da6;background:transparent;cursor:pointer;transition:.18s}
.kebab-btn:hover,.kebab-btn[aria-expanded=true]{border-color:rgba(48,224,128,.3);color:#effff6;background:rgba(48,224,128,.08)}
.kebab-btn svg{width:18px;height:18px;stroke-width:3;stroke-linecap:round}
.calculator-zone-menu form.inl{display:block;margin:0}
.calculator-zone-menu button[role=menuitem],.calculator-zone-menu a[role=menuitem],.calculator-zone-menu .kb-item{justify-content:flex-start}
.calculator-zone-menu [role=menuitem] span,.calculator-zone-menu .kb-item{display:inline-flex;align-items:center;gap:.55rem}
.calculator-zone-menu svg{width:14px;height:14px;flex:0 0 auto}
.calculator-zone-menu .dng{color:#cf8a84}.calculator-zone-menu .dng:hover{color:#ffd9d6;border-color:rgba(237,101,94,.3);background:rgba(237,75,66,.1)}
.calculator-zone-menu a[role=menuitem]:hover{border-color:rgba(48,224,128,.2);color:#f0eae2;background:rgba(48,224,128,.1)}
.kebab{display:inline-flex;align-items:center;justify-content:flex-end;width:auto;height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none}

/* fenêtre « Attribuer une clé » */
dialog.assign{width:min(30rem,calc(100% - 2rem));max-width:none;padding:1.4rem;overflow:visible}
dialog.assign h2{margin:0;font-size:1.25rem}dialog.assign #assign-sub{margin:.35rem 0 1rem;font:600 .75rem monospace;color:#858994}
dialog.assign form{display:grid;gap:.6rem}dialog.assign .l{margin:0}
.assign-list{list-style:none;margin:0;padding:0;display:grid;gap:.25rem;max-height:14rem;overflow-y:auto;scrollbar-width:none}
.assign-list::-webkit-scrollbar{display:none}
.assign-list:empty{display:none}
.assign-list button{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:.55rem .7rem;border:1px solid rgba(220,222,229,.1);border-radius:.55rem;background:rgba(8,10,14,.35);color:#eee8df;cursor:pointer;text-align:left}
.assign-list button:hover,.assign-list button:focus-visible{border-color:rgba(48,224,128,.45);background:rgba(48,224,128,.08)}
.assign-list b{font-size:.8rem}.assign-list small{color:#858994;font-size:.65rem}
.assign-list .none{padding:.6rem .7rem;color:#858994;font-size:.75rem;text-align:center}
dialog.assign .row{margin-top:.6rem}
dialog.assign #assign-ok:disabled{opacity:.45;cursor:not-allowed}
