/* =========================================================
   style.php (CSS global) — Lantastic
   - Base / variables
   - Layout générique
   - Formulaires & boutons
   - Header (logo centré + gauche/droite)
   - Modale vote
   ========================================================= */

/* ========= Variables globales (typo & spacing fluides) ========= */
:root{
  --font-size-base: clamp(11.3px, 0.7vw, 13.5px);
  --font-size-sm: clamp(9.9px, 0.58vw, 11.5px);
  --font-size-lg: clamp(13.1px, 0.83vw, 14.9px);
  --line-height: 1.3;

  --space-1: clamp(4.5px, 0.4vw, 7.2px);
  --space-2: clamp(7.2px, 0.65vw, 10.8px);
  --space-3: clamp(10.8px, 0.9vw, 13.5px);
  --space-4: clamp(13.5px, 1.17vw, 18px);

  --container-max: clamp(320px, 88vw, 864px);
  --page-max-standard: 864px;
  --page-max-wide: 990px;

  --c-text: #edf3f5;
  --c-cyan: #00ffff;
  --c-cyan-soft: #00ffff55;
  --c-border: rgba(0,255,255,0.35);
  --c-glass-bg: rgba(8,14,22,0.76);
  --c-field-bg: rgba(0,0,0,0.45);
  --c-glass-shadow: rgba(0,255,255,0.25);
  --c-surface-strong: rgba(7, 17, 24, 0.78);
  --c-bg-veil: rgba(2,6,14,0.18);
  --c-magenta: #ff4fd8;
  --c-warning: #ffcc66;
  --shadow-soft: 0 0 1rem rgba(0,255,255,0.18);
  --shadow-strong: 0 0 1.4rem rgba(0,255,255,0.28);
  --radius-lg: 1rem;
  --sidebar-width: 224px;
}

/* ========= Base site ========= */
html{ -webkit-text-size-adjust: 100%; }
html, body{ height: 100%; }
html{
  background: #050814;
  scrollbar-gutter: stable;
}

*{ -webkit-tap-highlight-color: transparent; }
::selection{ background: rgba(0,255,255,0.25); color:#fff; }

body{
  font-family: 'Orbitron', sans-serif;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;

  margin: 0;
  color: var(--c-text);
  position: relative;
  background: transparent;
  background-color: #050814;
  isolation: isolate;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(5, 8, 20, 0.18), rgba(5, 8, 20, 0.18)),
    url('../img/gamer-bg.jpg?v=20260902') center / cover no-repeat;
  z-index: -2;
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  background: var(--c-bg-veil);
  z-index: -1;
  pointer-events: none;
}

/* Application shell */
.app-shell{min-height:100vh}
.site-sidebar{
  position:fixed;
  left:0;
  top:0;
  width:var(--sidebar-width);
  height:100vh;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  padding:1rem .8rem;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,229,239,.58) rgba(3,10,18,.42);
  background:rgba(4,9,18,.58);
  border-right:1px solid rgba(0,255,255,.2);
  backdrop-filter:blur(12px);
  z-index:20;
}

.site-sidebar::-webkit-scrollbar{
  width:7px;
}

.site-sidebar::-webkit-scrollbar-track{
  background:rgba(3,10,18,.42);
  border-left:1px solid rgba(0,229,239,.06);
}

.site-sidebar::-webkit-scrollbar-thumb{
  min-height:42px;
  border:2px solid transparent;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(0,229,239,.72),rgba(0,142,160,.5));
  background-clip:padding-box;
}

.site-sidebar::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,rgba(88,247,255,.92),rgba(0,192,209,.72));
  background-clip:padding-box;
}

.site-sidebar::-webkit-scrollbar-button{
  display:none;
}
.sidebar-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding:.15rem .45rem 1.9rem;
  color:#fff;
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.06em;
  text-align:center;
}
.sidebar-brand img{width:72%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 0 10px rgba(0,255,255,.42))}
.sidebar-nav{display:flex;flex-direction:column;gap:1rem}
.sidebar-group{display:flex;flex-direction:column;gap:.2rem}
.sidebar-label{padding:0 .55rem .25rem;color:#658b95;font-size:.58rem;text-transform:uppercase;letter-spacing:.12em}
.sidebar-link{padding:.58rem .65rem;border-radius:8px;color:#bdd0d5;font-size:.7rem;transition:background .15s ease,color .15s ease}
.sidebar-link:hover,.sidebar-link.is-active{background:rgba(0,255,255,.09);color:#fff;text-shadow:none}
.sidebar-link.is-active{box-shadow:inset 2px 0 0 var(--c-cyan)}
.sidebar-clan-group{gap:.3rem}
.sidebar-clan-card{display:grid;gap:.42rem;margin:0 .4rem;padding:.62rem .68rem;border:1px solid rgba(0,255,255,.16);border-radius:10px;background:linear-gradient(135deg,rgba(0,255,255,.055),rgba(255,79,216,.035)),rgba(5,13,22,.56);transition:background .15s ease,border-color .15s ease}
.sidebar-clan-card:hover{border-color:rgba(0,255,255,.34);background:linear-gradient(135deg,rgba(0,255,255,.1),rgba(255,79,216,.06)),rgba(5,13,22,.68);text-shadow:none}
.sidebar-clan-name{overflow:hidden;color:#eefbfe;font-size:.66rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.sidebar-clan-status{justify-self:start;padding:.2rem .42rem;border:1px solid rgba(0,255,255,.22);border-radius:999px;background:rgba(0,255,255,.08);color:#8ff1f1;font-size:.54rem;letter-spacing:.06em;text-transform:uppercase}
.sidebar-clan-status--leader{border-color:rgba(255,79,216,.26);background:rgba(255,79,216,.09);color:#ffb7ef}
.sidebar-clan-status--co-leader{border-color:rgba(255,190,74,.28);background:rgba(255,190,74,.09);color:#ffd38a}
.sidebar-clan-status--empty{border-color:rgba(180,200,208,.16);background:rgba(180,200,208,.05);color:#8da5ac}
.sidebar-lan-form{padding:0 .4rem}
.sidebar-lan-form select{
  width:100%;
  margin:0;
  padding:.5rem .55rem;
  border:1px solid rgba(0,255,255,.22);
  border-radius:7px;
  background:#07111c;
  color:#eef8fa;
  color-scheme:dark;
  font-size:.65rem;
}
.sidebar-lan-form select option{background:#07111c;color:#eef8fa}
.sidebar-lan-form select[aria-busy="true"]{opacity:.65;cursor:wait}
.sidebar-account{margin-top:auto;padding:1rem .45rem .25rem;border-top:1px solid rgba(0,255,255,.13);display:grid;gap:.3rem}
.sidebar-account-link{display:grid;gap:.3rem;padding:.52rem .58rem;margin:-.52rem -.58rem 0;border:1px solid transparent;border-radius:9px;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.sidebar-account-link:hover,.sidebar-account-link.is-active{background:rgba(0,255,255,.08);border-color:rgba(0,255,255,.18);text-shadow:none}
.sidebar-account-link strong{font-size:.68rem;color:#fff}
.sidebar-account-link span{font-size:.58rem;color:#7697a0;overflow:hidden;text-overflow:ellipsis}
.sidebar-account-link .sidebar-account-action{color:#65dce8;font-weight:600}
.sidebar-account-link:hover span,.sidebar-account-link.is-active span{color:#a9cbd3}
.sidebar-account form{margin-top:.35rem}
.sidebar-logout{padding:0;border:0;background:none;color:#e59ab0;font:inherit;font-size:.62rem;cursor:pointer}
.app-content{min-width:0;margin-left:var(--sidebar-width);display:flex;flex-direction:column;min-height:100vh}
.app-content>.container{width:min(calc(100% - 2rem), 1180px);max-width:1180px;margin-top:clamp(1.5rem,2vw,2rem)}
.app-content>.site-footer{margin-top:auto}
.sidebar-toggle{display:none;position:fixed;top:.7rem;left:.7rem;z-index:40;padding:.5rem .65rem;border:1px solid rgba(0,255,255,.35);border-radius:8px;background:#07111c;color:#fff;font-family:inherit}
.support-fab{position:fixed;right:1rem;bottom:1rem;z-index:35;display:grid;place-items:center;width:38px;height:38px;box-sizing:border-box;border:1px solid rgba(0,229,239,.55);border-radius:50%;color:#9fffff;background:rgba(5,17,28,.9);box-shadow:0 0 14px rgba(0,229,239,.2);font-size:.9rem;font-weight:700;text-decoration:none;text-shadow:none;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.support-fab:hover,.support-fab:focus-visible{border-color:#70f7ff;background:#092735;box-shadow:0 0 18px rgba(0,229,239,.38);outline:none;text-shadow:none}
.support-fab::after{position:absolute;right:calc(100% + .55rem);padding:.35rem .5rem;border:1px solid rgba(0,229,239,.2);border-radius:7px;opacity:0;pointer-events:none;white-space:nowrap;content:attr(data-label);color:#dffbff;background:rgba(4,12,21,.96);font-size:.6rem;font-weight:500;transform:translateX(4px);transition:opacity .15s ease,transform .15s ease}
.support-fab:hover::after,.support-fab:focus-visible::after{opacity:1;transform:translateX(0)}

@media (max-width:760px){
  .app-shell{display:block}
  .site-sidebar{position:fixed;left:0;transform:translateX(-105%);width:min(82vw,var(--sidebar-width));transition:transform .2s ease;box-shadow:12px 0 30px rgba(0,0,0,.45)}
  .site-sidebar.is-open{transform:translateX(0)}
  .sidebar-toggle{display:block}
  .app-content{margin-left:0;padding-top:2.8rem}
}

/* Liens */
a{ color: var(--c-cyan); text-decoration: none; }
a:hover{ text-shadow: 0 0 3px rgba(0,255,255,0.25); }

/* Messages */
.error{ color:#ff8080; margin-bottom: var(--space-1); }
.msg{ color: var(--c-cyan); margin-bottom: var(--space-1); }
.fatal-message{
  width:min(92vw, 36rem);
  margin:12vh auto 0;
  padding:1rem 1.25rem;
  text-align:center;
  color:#fff;
  background:rgba(24, 10, 18, 0.72);
  border:1px solid rgba(255, 94, 128, 0.45);
  border-radius:12px;
  box-shadow:0 0 18px rgba(255, 94, 128, 0.16);
}

.feedback-banner{
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 0 14px rgba(0,0,0,0.14);
}

.feedback-banner--success{
  background: rgba(0,255,170,0.1);
  border: 1px solid rgba(0,255,170,0.35);
  color: #9ff8de;
}

.feedback-banner--error{
  background: rgba(255,90,90,0.12);
  border: 1px solid rgba(255,90,90,0.35);
  color: #ffb0b0;
}

.feedback-banner--warning{
  background: rgba(255,204,102,0.12);
  border: 1px solid rgba(255,204,102,0.35);
  color: #ffd38b;
}

.success-message{
  background: rgba(0,255,170,0.08);
  border: 1px solid rgba(0,255,204,0.28);
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: #9ff8de;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(0,255,204,0.08);
  margin-top: 0.75rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 1.45;
}

/* ========= Layout générique ========= */
.container{
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: calc(var(--space-4) * 0.92) auto;
  padding: calc(var(--space-3) * 0.92);
  box-sizing: border-box;
}

.panel-glass{
  background: var(--c-glass-bg);
  border: 1px solid rgba(0,255,255,0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(2px);
}

.panel-glass--form{
  background: rgba(255,255,255,0.035);
}

.page-title{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap: clamp(0.28rem, 0.7vw, 0.55rem);
  color: var(--c-cyan);
  text-shadow: 0 0 4px rgba(0,255,255,0.35);
  font-weight:600;
  font-size: clamp(1.08rem, 1.08vw, 1.28rem);
  letter-spacing:0.04em;
  text-align:center;
  margin: clamp(0.65rem, 1.5vh, 1rem) auto;
  line-height:1.05;
}

.icon-title{
  width: clamp(22px, 4vw, 44px);
  height:auto;
  filter: drop-shadow(0 0 3px rgba(0,255,255,0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
  vertical-align: middle;
}

.icon-title:hover{
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(0,255,255,0.45));
}

.no-lan-msg{
  text-align:center;
  color:#ffcc00;
  font-weight:bold;
  margin:1rem 0;
}

.section-title{
  color:var(--c-cyan);
  text-shadow:0 0 2px rgba(0,255,255,0.22);
  border-bottom:1px solid rgba(0,255,255,0.18);
  padding-bottom:4px;
  margin-top:1rem;
  margin-bottom:0.5rem;
  font-size:clamp(0.78rem,0.86vw,0.9rem);
}

.table-glass{
  width:100%;
  border-collapse:collapse;
  margin-top:0.6rem;
  font-size:clamp(0.66rem,0.72vw,0.74rem);
  border:1px solid rgba(0,255,255,0.22);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 0 12px rgba(0,255,255,0.18);
  background:var(--c-surface-strong);
}

.table-glass th,
.table-glass td{
  padding:4px 6px;
  text-align:center;
}

.table-glass th{
  color:var(--c-cyan);
  background:rgba(255,255,255,0.05);
}

.table-glass tr:nth-child(even){
  background: rgba(0,255,255,0.015);
}

.table-glass tr:hover{
  background: rgba(0,255,255,0.06);
}

.form-panel{
  background: rgba(255,255,255,0.04);
  border:1px solid var(--c-border);
  border-radius:7px;
  padding:clamp(0.58rem,1vw,0.78rem);
  backdrop-filter:blur(2px);
  margin-top:0.45rem;
}

.form-panel label{
  color:var(--c-cyan);
  font-weight:bold;
  font-size:clamp(0.62rem,0.68vw,0.7rem);
  display:block;
  margin-top:0;
}

.form-panel input,
.form-panel select,
.form-panel textarea{
  width:100%;
  padding:5px 7px;
  border-radius:5px;
  border:1px solid rgba(0,255,255,0.3);
  background:var(--c-field-bg);
  color:#fff;
  margin-top:2px;
  margin-bottom:5px;
  font-size:clamp(0.62rem,0.68vw,0.7rem);
  transition:all 0.2s ease;
  box-sizing:border-box;
  font-family: 'Orbitron', sans-serif;
}

.form-panel input,
.form-panel select{
  min-height:clamp(1.5rem,1.75vw,1.8rem);
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus{
  outline:none;
  border-color:var(--c-cyan);
  box-shadow:0 0 8px var(--c-cyan-soft);
}

.form-panel select option{
  background-color:rgba(10,10,10,0.9) !important;
  color:#fff !important;
}

/* ========= Boutons génériques ========= */
.btn{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.3rem;
  padding: calc(var(--space-2) * 0.7) calc(var(--space-3) * 0.88);
  border-radius: 8px;
  border: 1px solid rgba(0,255,255,0.28);
  background: rgba(0,255,255,0.08);
  color: var(--c-cyan);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0.45rem rgba(0,255,255,0.12), 0 0 0.55rem rgba(0,255,255,0.15);
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: inset 0 0 0.55rem rgba(0,255,255,0.18), 0 0 0.85rem rgba(0,255,255,0.28);
}

.btn--small{
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  font-size: 0.7rem;
  gap: 0.22rem;
}

.btn--primary{
  background: linear-gradient(135deg, #12d4ff, #0053a6);
  color:#02121a;
  border-color: rgba(93,232,255,0.55);
  box-shadow: 0 0 1rem rgba(0,196,255,0.22);
}

.btn--primary:hover{
  box-shadow: 0 0 1.2rem rgba(0,196,255,0.35);
}

.btn--danger{
  background: rgba(255,80,120,0.1);
  border-color: rgba(255,100,130,0.32);
  color:#ff879f;
}

.btn--muted{
  background: rgba(255,79,216,0.08);
  border-color: rgba(255,79,216,0.24);
  color:#ff9ae7;
}

.btn--warning{
  background: rgba(255,204,102,0.1);
  border-color: rgba(255,204,102,0.3);
  color: var(--c-warning);
}

.btn-orange{
  background: rgba(255,166,0,0.08);
  border: 1px solid rgba(255,166,0,0.32);
  color: #ffc266;
}

.btn-red{
  background: rgba(255,80,120,0.1);
  border: 1px solid rgba(255,100,130,0.32);
  color: #ff879f;
}

.btn-reset{
  background:none;
  border:0;
  color:inherit;
  font:inherit;
  padding:0;
  cursor:pointer;
}

/* ========= Utilitaires ========= */
.u-hidden{ display:none !important; }
.u-text-center{ text-align:center; }
.u-inline-form{ display:inline; margin:0; }
.u-w-full{ width:100%; }
.u-grow{ flex:1 1 0; }
.u-muted{ color:#ccc; }
.u-accent{ color:#ff66ff; }
.u-danger{ color:#ff5555; }

.u-flex{
  display:flex;
}

.u-flex-wrap{
  flex-wrap:wrap;
}

.u-align-center{
  align-items:center;
}

.u-align-start{
  align-items:flex-start;
}

.u-justify-center{
  justify-content:center;
}

.u-justify-between{
  justify-content:space-between;
}

.u-gap-sm{ gap:10px; }
.u-gap-md{ gap:20px; }
.u-mt-sm{ margin-top:10px; }
.u-mt-md{ margin-top:15px; }

.stack-sm > * + *{
  margin-top: 0.75rem;
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:0.6rem;
}

.dialog-reset{
  border:none;
  padding:0;
  background:transparent;
}

.dialog-reset::backdrop{
  background:rgba(0,0,0,0.72);
}

.dialog-card{
  background:rgba(10,15,20,0.65);
  border:1px solid rgba(0,255,255,0.5);
  border-radius:14px;
  box-shadow:0 0 14px rgba(0,255,255,0.22), inset 0 0 8px rgba(0,80,100,0.35);
  padding:16px 18px;
  color:#e0ffff;
  font-family:'Orbitron', sans-serif;
  backdrop-filter:blur(3px);
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.modal-content{
  background: linear-gradient(180deg, rgba(10,18,30,0.94), rgba(14,12,24,0.94));
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.38), 0 0 24px rgba(0,255,255,0.08);
  padding: 1.05rem 1.25rem;
  color: #e6fbff;
  width: min(92vw, 420px);
  text-align: center;
}

.dialog-card--narrow{
  width:min(92vw,320px);
  margin:auto;
}

.dialog-card--wide{
  width:min(92vw,640px);
  margin:auto;
}

.dialog-title{
  margin-top:0;
  color:var(--c-cyan);
  text-shadow:0 0 4px rgba(0,255,255,0.35);
}

.modal-text{
  font-size:0.78rem;
  color:#ccc;
  margin-bottom:0.8rem;
}

.vote-option-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.vote-option-main{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  gap:0.55rem;
}

.vote-option-label{
  color:#ff66ff;
}

.vote-modal-actions{
  margin-top:0.6rem;
}

.vote-modal-msg{
  margin-top:0.45rem;
  font-size:0.74rem;
}

/* ========= Inputs génériques ========= */
input[type=text], input[type=password], input[type=email]{
  width: 100%;
  padding: calc(var(--space-2) * 0.88);
  margin: var(--space-1) 0;
  border-radius: 7px;
  border: 1px solid rgba(0,255,255,0.27);
  background: rgba(10,10,10,0.8);
  color: var(--c-text);
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
}
input:focus{
  outline: none;
  border-color: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan-soft);
}

/* Anti-autofill blanc (Chrome/Edge) */
input:-webkit-autofill{
  -webkit-box-shadow: 0 0 0 30px rgba(10,10,10,0.8) inset !important;
  -webkit-text-fill-color: var(--c-text) !important;
  transition: background-color 5000s ease-in-out 0s;
}

select,
textarea{
  font-family: 'Orbitron', sans-serif;
}

.cockpit-card{
  background:
    linear-gradient(180deg, rgba(12,22,34,0.84), rgba(18,14,30,0.78)),
    rgba(255,255,255,0.035);
  border:1px solid rgba(0,255,255,0.14);
  border-radius:16px;
  padding:1rem;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.02), 0 16px 34px rgba(0,0,0,0.18);
  backdrop-filter:blur(3px);
}

input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"]{
  color-scheme:dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.95;
  filter:brightness(0) saturate(100%) invert(90%) sepia(55%) saturate(1211%) hue-rotate(115deg) brightness(106%) contrast(101%);
}

/* ========= Responsive global ========= */
@media (max-width: 1280px){
  :root{ --container-max: clamp(320px, 92vw, 828px); }
}
@media (max-width: 700px){
  :root{ --font-size-base: clamp(11.8px, 1.4vw, 12.6px); }
  .container{ padding: var(--space-2); }
  .page-title{ flex-direction:column; gap:0.32rem; font-size: clamp(1rem, 3.5vw, 1.2rem); }
  .icon-title{ width: clamp(28px, 10vw, 42px); }
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(10, 15, 25, 0.75);
  border-bottom: 0.1rem solid rgba(0,255,255,0.22);
  box-shadow: 0 0 0.7rem rgba(0,255,255,0.12);
  backdrop-filter: blur(4px);
}

.site-header-inner{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  min-height: 52px;
  box-sizing: border-box;
}

/* Zone gauche / zone droite = 2 colonnes flex */
.header-left,
.site-actions{
  flex: 1 1 0;
  min-width: 0; /* autorise ellipsis */
  z-index: 2;
}

.header-left{
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

/* Bloc centré parfait (logo + titre) */
.site-brand{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #e8faff;
  white-space: nowrap;
  z-index:10;
  pointer-events:auto; 
}

.site-logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0,255,255,0.18));
}

.site-title{
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.07rem;
  text-shadow: 0 0 4px rgba(0,255,255,0.16);
  line-height: 1;
}

.site-actions{
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

/* Bannière sondage */
.poll-banner{
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.36rem 1rem;
  border-radius: 999px;
  text-decoration: none;

  background: rgba(255,0,255,0.35);
  border: 1px solid rgba(0,255,255,0.22);
  color: #e8faff;

  box-shadow:
    0 0 8px rgba(255,0,255,0.32),
    0 0 14px rgba(255,0,255,0.18);

  backdrop-filter: blur(3px);
  font-size: clamp(0.7rem, 0.78vw, 0.8rem);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poll-banner:hover{
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 10px rgba(255,0,255,0.42),
    0 0 18px rgba(255,0,255,0.24);
}

/* PayPal alert (dans le header) */
.paypal-alert{
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.3rem 0.65rem;
  border-radius: 0.45rem;
  text-decoration: none;

  background: rgba(0, 0, 0, 0.55);
  border: 0.07rem solid rgba(255, 215, 0, 0.5);
  color: #f5b222ff;
  font-weight: 600;
  font-size: clamp(0.66rem, 0.75vw, 0.76rem);

  text-shadow: 0 0 0.18rem rgba(255, 204, 0, 0.5);
  box-shadow: 0 0 0.45rem rgba(255, 215, 0, 0.22);
  backdrop-filter: blur(2px);

  cursor: pointer;
  transition: all 0.25s ease;

  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paypal-alert:hover{
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 0.7rem rgba(255, 215, 0, 0.35);
  transform: translateY(-1px);
}

/* Menu profil */
.profil-menu{
  position: relative;
  margin-right: 6px;
  z-index: 10000;
}

.profil-btn{
  background: rgba(0, 0, 0, 0.55);
  border: 0.07rem solid rgba(0,255,255,0.4);
  border-radius: 0.45rem;
  padding: 0.3rem 0.65rem;
  color: var(--c-cyan);
  font-weight: 500;
  font-size: clamp(0.66rem, 0.75vw, 0.76rem);
  cursor: pointer;
  box-shadow: 0 0 0.35rem rgba(0, 255, 255, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.profil-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0.55rem rgba(0,255,255,0.35);
}

.profil-dropdown{
  position: absolute;
  right: 0;
  margin-top: 0.3rem;

  background: rgba(0, 0, 0, 0.6);
  border: 0.07rem solid rgba(0,255,255,0.33);
  border-radius: 0.45rem;

  min-width: 10rem;
  box-shadow: 0 0 0.9rem rgba(0, 255, 255, 0.3);

  opacity: 0;
  transform: translateY(-0.3rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profil-dropdown.open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profil-dropdown div{
  border-bottom: 0.04rem solid rgba(0,255,255,0.2);
  color: var(--c-cyan);
  font-size: clamp(0.66rem, 0.75vw, 0.76rem);
  padding: 0.36rem 0.65rem;
}

.profil-dropdown a{
  display: block;
  padding: 0.36rem 0.65rem;
  color: #e0e0e0;
  text-decoration: none;
  font-size: clamp(0.66rem, 0.75vw, 0.76rem);
}

.profil-dropdown form{
  margin: 0;
}

.profil-dropdown form button{
  display: block;
  width: 100%;
  padding: 0.36rem 0.65rem;
  color: #e0e0e0;
  text-decoration: none;
  text-align: left;
  font-size: clamp(0.66rem, 0.75vw, 0.76rem);
  font-family: inherit;
  line-height: 1.2;
}

.profil-dropdown a:hover{
  background: rgba(0, 255, 255, 0.1);
  color: var(--c-cyan);
  text-shadow: none;
}

.profil-dropdown form button:hover{
  background: rgba(0, 255, 255, 0.1);
  color: var(--c-cyan);
  text-shadow: none;
}

/* Mobile tweaks */
@media (max-width: 520px){
  .poll-banner span{ display: none; }
  .poll-banner strong{ display: none; }
  .site-title{ display: none; }
  .site-logo{ width: 52px; height: 52px; }
}

/* =========================================================
   FOOTER (bandeau style header)
   ========================================================= */

/* Permet d'avoir le footer en bas si la page est courte */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Le footer pousse en bas */
.site-footer{
  margin-top: auto; /* ✅ pousse le footer en bas */
  position: relative;
  z-index: 1;
  width: 100%;

  background: rgba(10, 15, 25, 0.75);
  border-top: 0.1rem solid rgba(0,255,255,0.22);
  box-shadow: 0 0 0.7rem rgba(0,255,255,0.12);
  backdrop-filter: blur(4px);
}

.site-footer-inner{
  width: 100%;
  padding: 10px 18px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  color: rgba(224, 224, 224, 0.9);
  font-size: var(--font-size-sm);
  letter-spacing: 0.03rem;
}

.brand-cyan{
  color: var(--c-cyan);
  text-shadow: 0 0 3px rgba(0,255,255,0.24);
}

/* =========================================================
   MODALE VOTE (dans le header)
   ========================================================= */

.modal{
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(4,8,14,0.78);
  backdrop-filter: blur(6px);
  z-index: 20000; /* doit être au-dessus du header (9999) */
}

.vote-modal-content{
  width: 90%;
  max-width: 430px;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;

  background: linear-gradient(180deg, rgba(18, 10, 28, 0.94), rgba(10, 14, 26, 0.94));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 1px solid rgba(255, 79, 216, 0.28);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.36),
    0 0 24px rgba(255, 79, 216, 0.12),
    inset 0 0 10px rgba(255, 255, 255, 0.02);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;

  animation: popupScale 0.25s ease;
}

@keyframes popupScale{
  0%{ transform: scale(0.85); opacity: 0; }
  100%{ transform: scale(1); opacity: 1; }
}

.vote-modal-content h3{
  margin-bottom: 0.8rem;
  color: #ffdff8;
  text-shadow: 0 0 6px rgba(255,79,216,0.22);
  font-size: 1rem;
}

/* Checkbox ronde neon */
.neon-round{
  appearance: none;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid rgba(255,0,255,0.53);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,0,255,0.1);
  box-shadow:
    inset 0 0 6px rgba(255,0,255,0.35),
    0 0 8px rgba(255,0,255,0.25);
  position: relative;
  transition: 0.2s ease-in-out;
}

.neon-round:checked{
  border-color: #ff00ff;
  background: radial-gradient(circle, #ffffff 30%, #ff00ff 70%);
  box-shadow:
    0 0 10px #ff00ff,
    0 0 18px #ff33ff,
    inset 0 0 10px rgba(0,0,0,0.4);
}

.neon-round:checked::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff;
}

.vote-option{
  display: block;
  background: rgba(255,0,255,0.08);
  margin: 5px 0;
  padding: 0.38rem 0.5rem;
  border: 1px solid rgba(255,0,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}
.vote-option:hover{
  background: rgba(255,0,255,0.18);
  border-color: rgba(255,0,255,0.45);
}

.vote-count{
  color: #ff88ff;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(255,0,255,0.3);
  white-space: nowrap;
  font-size: 0.78rem;
}

.btn-vote{
  background: rgba(0,255,255,0.15);
  border: 1px solid rgba(0,255,255,0.4);
  color: var(--c-cyan);
  border-radius: 5px;
  padding: 0.32rem 0.72rem;
  cursor: pointer;
}
.btn-vote:hover{
  background: rgba(0,255,255,0.25);
}

.btn-cancel{
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,0,0,0.4);
  color: #ff8080;
  border-radius: 5px;
  padding: 0.32rem 0.72rem;
  cursor: pointer;
}

/* ========= Typo normalization ========= */
:root{
  --type-title: clamp(0.94rem, 0.97vw, 1.12rem);
  --type-subtitle: clamp(0.7rem, 0.74vw, 0.79rem);
  --type-section: clamp(0.7rem, 0.76vw, 0.81rem);
  --type-label: clamp(0.59rem, 0.65vw, 0.67rem);
  --type-body: clamp(0.65rem, 0.72vw, 0.72rem);
  --type-meta: clamp(0.61rem, 0.68vw, 0.68rem);
}

.page-title{
  font-size: var(--type-title);
  line-height: 1.08;
}

.section-title{
  font-size: var(--type-section);
  line-height: 1.15;
}

.btn,
button,
input,
select,
textarea{
  font-size: var(--type-body);
}

th,
td,
label,
.table,
.table-glass{
  font-size: var(--type-body);
}

[class*="cockpit-page"] .page-title{
  font-size: var(--type-title) !important;
}

[class*="cockpit-page"] .cockpit-hero-main{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0.55rem;
}

.tricount-cockpit-page .tricount-hero-main,
.historique-cockpit-page .historique-hero-main{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0.55rem;
}

[class*="cockpit-page"] .section-title{
  font-size: var(--type-section) !important;
}

[class*="cockpit-page"] .metric-label,
[class*="cockpit-page"] .signal-label,
[class*="cockpit-page"] .mini-title,
[class*="cockpit-page"] .survey-card-title,
[class*="cockpit-page"] .template-badge,
[class*="cockpit-page"] .mail-badge,
[class*="cockpit-page"] .phase-badge{
  font-size: var(--type-label) !important;
  line-height: 1.2;
}

[class*="cockpit-page"] .metric-meta,
[class*="cockpit-page"] .cockpit-subtitle,
[class*="cockpit-page"] .focus-line span,
[class*="cockpit-page"] .resume-box,
[class*="cockpit-page"] .info-box,
[class*="cockpit-page"] .checkbox-list label,
[class*="cockpit-page"] .mail-checklist div,
[class*="cockpit-page"] .template-side-meta span,
[class*="cockpit-page"] .mail-side-meta span,
[class*="cockpit-page"] .template-subline,
[class*="cockpit-page"] .mail-subline,
[class*="cockpit-page"] .lan-dates,
[class*="cockpit-page"] .empty-state{
  font-size: var(--type-meta) !important;
  line-height: 1.42;
}

.tricount-cockpit-page .cockpit-subtitle,
.historique-cockpit-page .cockpit-subtitle{
  font-size: var(--type-meta) !important;
  line-height: 1.42;
}

[class*="cockpit-page"] .focus-line strong,
[class*="cockpit-page"] .metric-value,
[class*="cockpit-page"] .lan-name{
  line-height: 1.08;
}

[class*="cockpit-page"] .cockpit-title,
.tricount-cockpit-page .tricount-title,
.historique-cockpit-page .historique-title{
  margin:0;
}

[class*="cockpit-page"] .cockpit-subtitle,
.tricount-cockpit-page .cockpit-subtitle,
.historique-cockpit-page .cockpit-subtitle{
  margin:0;
  max-width:42rem;
  color:#d6eef5;
}

[class*="cockpit-page"] .cockpit-status{
  justify-content:center;
  gap:1rem;
}

[class*="cockpit-page"] .cockpit-status-head{
  align-items:flex-start;
  gap:1rem;
}

[class*="cockpit-page"] .lan-block{
  max-width:38rem;
  gap:0.32rem;
}

.tricount-cockpit-page .tricount-status{
  gap:1rem;
}

.tricount-cockpit-page .tricount-status-head,
.historique-cockpit-page .historique-status-head{
  gap:1rem;
}

.tricount-cockpit-page .tricount-lan-block,
.historique-cockpit-page .historique-block{
  max-width:38rem;
}

[class*="cockpit-page"] .cockpit-status .phase-badge,
.tricount-cockpit-page .tricount-status .tricount-phase,
.historique-cockpit-page .historique-status .historique-phase{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:2rem;
  padding:0.45rem 0.8rem;
  border-radius:999px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border:1px solid rgba(0,255,255,0.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05);
}

[class*="cockpit-page"] .cockpit-status .phase-badge--planned,
.tricount-cockpit-page .tricount-status .tricount-phase--planned{
  color:#8ce8ff;
  background:rgba(0,163,255,0.12);
}

[class*="cockpit-page"] .cockpit-status .phase-badge--live,
.tricount-cockpit-page .tricount-status .tricount-phase--live{
  color:#7ff3d8;
  background:rgba(0,255,170,0.12);
}

[class*="cockpit-page"] .cockpit-status .phase-badge--ended,
[class*="cockpit-page"] .cockpit-status .phase-badge--empty,
.tricount-cockpit-page .tricount-status .tricount-phase--ended,
.tricount-cockpit-page .tricount-status .tricount-phase--empty{
  color:#ffafc7;
  background:rgba(255,80,120,0.1);
}

.historique-cockpit-page .historique-status .historique-phase{
  color:#8ce8ff;
  background:rgba(0,163,255,0.12);
}

[class*="cockpit-page"] .cockpit-grid .metric-card,
[class*="cockpit-page"] .historique-metrics .metric-card,
.tricount-cockpit-page .tricount-metrics .metric-card,
.historique-cockpit-page .historique-metrics .metric-card{
  min-height:7.45rem;
  gap:0.6rem;
}

[class*="cockpit-page"] .cockpit-grid .metric-card .metric-meta,
[class*="cockpit-page"] .historique-metrics .metric-card .metric-meta,
.tricount-cockpit-page .tricount-metrics .metric-card .metric-meta,
.historique-cockpit-page .historique-metrics .metric-card .metric-meta{
  margin-top:auto;
}

[class*="cockpit-page"] .cockpit-main-grid .signal-card,
[class*="cockpit-page"] .cockpit-main-grid--power .signal-card,
[class*="cockpit-page"] .cockpit-main-grid--teams .signal-card,
[class*="cockpit-page"] .cockpit-main-grid--matches .signal-card,
[class*="cockpit-page"] .cockpit-main-grid--results .signal-card{
  display:grid;
  align-content:start;
  gap:0.78rem;
}

[class*="cockpit-page"] .card-heading-actions,
.tricount-cockpit-page .card-heading-actions{
  align-items:center;
  gap:0.5rem;
}

[class*="cockpit-page"] .cockpit-status-actions{
  display:flex;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-top:auto;
}

[class*="cockpit-page"] .cockpit-card .focus-line,
[class*="cockpit-page"] .cockpit-card .signal-row,
[class*="cockpit-page"] .cockpit-card .signal-inline,
[class*="cockpit-page"] .cockpit-card .resume-box,
[class*="cockpit-page"] .cockpit-status .status-note,
[class*="cockpit-page"] .cockpit-card .signal-box,
.tricount-cockpit-page .tricount-card .signal-box,
.historique-cockpit-page .historique-card .signal-box{
  padding:0.72rem 0.82rem;
  border-radius:14px;
  background:rgba(255,255,255,0.035);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.02);
}

[class*="cockpit-page"] .cockpit-card .focus-line span,
[class*="cockpit-page"] .cockpit-card .signal-inline,
[class*="cockpit-page"] .cockpit-card .signal-meta,
[class*="cockpit-page"] .cockpit-card .resume-box,
[class*="cockpit-page"] .cockpit-status .status-note,
[class*="cockpit-page"] .cockpit-card .signal-box span:last-child,
.tricount-cockpit-page .tricount-card .signal-box span:last-child,
.historique-cockpit-page .historique-card .signal-box span:last-child{
  color:#d6e4ea;
}
