/* Orixfy Cookies Banner */
:root{
  --orx-bg:#061329;
  --orx-bg-2:#081c39;
  --orx-card:rgba(8,24,47,.95);
  --orx-border:rgba(94,146,255,.22);
  --orx-text:#eef5ff;
  --orx-muted:#9fb1c8;
  --orx-blue:#3d82ff;
  --orx-blue-2:#5aa5ff;
  --orx-green:#54d3a0;
  --orx-danger:#ff7a96;
  --orx-shadow:0 24px 70px rgba(0,0,0,.42);
  --orx-radius:18px;
}
.orx-cookie-hidden{display:none!important}
.orx-cookie-banner,
.orx-cookie-modal{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--orx-text);
}
.orx-cookie-banner{
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:9998;
  max-width:1040px;
  margin:0 auto;
  background:linear-gradient(180deg,rgba(7,22,44,.98),rgba(5,16,32,.98));
  border:1px solid var(--orx-border);
  box-shadow:var(--orx-shadow);
  border-radius:22px;
  overflow:hidden;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.orx-cookie-banner-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:center;
  padding:18px 18px;
}
.orx-cookie-logo{
  width:64px;
  height:64px;
  flex:0 0 auto;
}
.orx-cookie-copy h3{
  margin:0 0 6px;
  font-size:1.1rem;
  line-height:1.2;
}
.orx-cookie-copy p{
  margin:0;
  color:var(--orx-muted);
  font-size:.95rem;
  line-height:1.45;
}
.orx-cookie-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
.orx-btn{
  appearance:none;
  border:1px solid transparent;
  background:#0a2142;
  color:var(--orx-text);
  border-radius:12px;
  padding:12px 15px;
  font-size:.95rem;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.orx-btn:hover{transform:translateY(-1px)}
.orx-btn:active{transform:translateY(0)}
.orx-btn-primary{background:linear-gradient(180deg,var(--orx-blue-2),var(--orx-blue));}
.orx-btn-secondary{border-color:rgba(120,160,255,.2); background:rgba(13,33,61,.78);}
.orx-btn-ghost{border-color:rgba(120,160,255,.16); background:transparent;}
.orx-btn-danger{border-color:rgba(255,122,150,.24); background:rgba(55,16,29,.65);}
.orx-cookie-link{
  color:#b8d4ff;
  text-decoration:none;
  font-weight:700;
}
.orx-cookie-link:hover{text-decoration:underline}
.orx-cookie-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:9998;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.orx-cookie-modal{
  position:fixed;
  z-index:9999;
  top:50%;
  left:50%;
  width:min(96vw,760px);
  max-height:min(92vh,900px);
  transform:translate(-50%,-50%);
  background:linear-gradient(180deg,rgba(8,25,49,.985),rgba(5,16,32,.99));
  border:1px solid var(--orx-border);
  box-shadow:var(--orx-shadow);
  border-radius:24px;
  overflow:hidden;
}
.orx-cookie-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid rgba(120,160,255,.11);
}
.orx-cookie-modal-head h3{
  margin:0;
  font-size:1.15rem;
}
.orx-cookie-close{
  font-size:24px;
  line-height:1;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(120,160,255,.16);
  background:transparent;
  color:#fff;
  cursor:pointer;
}
.orx-cookie-modal-body{
  padding:18px 20px;
  overflow:auto;
  max-height:calc(92vh - 170px);
}
.orx-cookie-intro{
  margin:0 0 18px;
  color:var(--orx-muted);
  line-height:1.5;
}
.orx-cookie-group{
  border:1px solid rgba(120,160,255,.14);
  background:rgba(8,21,42,.55);
  border-radius:18px;
  padding:16px;
  margin-bottom:14px;
}
.orx-cookie-group-top{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
}
.orx-cookie-group h4{
  margin:0 0 6px;
  font-size:1rem;
}
.orx-cookie-group p{
  margin:0;
  color:var(--orx-muted);
  line-height:1.45;
  font-size:.93rem;
}
.orx-cookie-always-on{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--orx-green);
  font-weight:700;
  font-size:.92rem;
}
.orx-switch{
  position:relative;
  display:inline-block;
  width:56px;
  height:32px;
  flex:0 0 auto;
}
.orx-switch input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.orx-slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#203754;
  border:1px solid rgba(120,160,255,.14);
  transition:.18s ease;
}
.orx-slider::before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 3px 12px rgba(0,0,0,.3);
  transition:.18s ease;
}
.orx-switch input:checked + .orx-slider{
  background:linear-gradient(180deg,var(--orx-blue-2),var(--orx-blue));
}
.orx-switch input:checked + .orx-slider::before{
  transform:translateX(24px);
}
.orx-switch input:disabled + .orx-slider{
  opacity:.75;
}
.orx-cookie-modal-foot{
  padding:18px 20px;
  border-top:1px solid rgba(120,160,255,.11);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
@media (max-width:860px){
  .orx-cookie-banner-inner{
    grid-template-columns:1fr;
    justify-items:start;
  }
  .orx-cookie-actions{
    justify-content:flex-start;
  }
}
@media (max-width:560px){
  .orx-cookie-banner{
    left:10px;
    right:10px;
    bottom:10px;
  }
  .orx-cookie-actions{
    width:100%;
  }
  .orx-cookie-actions .orx-btn{
    width:100%;
  }
  .orx-cookie-modal{
    width:min(96vw,96vw);
  }
  .orx-cookie-modal-foot .orx-btn{
    width:100%;
  }
}

/* Un seul gestionnaire de cookies ; les attributs hidden priment sur le layout. */
.orx-cookie-banner[hidden], .orx-cookie-modal[hidden], .orx-cookie-backdrop[hidden] { display:none !important; }
.orx-cookie-modal { max-height:calc(100dvh - 32px); overflow-y:auto; }
.orx-cookie-banner { z-index:1085; max-height:70dvh; overflow-y:auto; }
.orx-cookie-backdrop { z-index:1090; }
.orx-cookie-modal { z-index:1091; }
.orx-cookie-actions .orx-btn-secondary { min-height:42px; }
.orx-cookie-close:focus-visible, .orx-btn:focus-visible, .orx-switch input:focus-visible + .orx-slider { outline:2px solid #8eb5ff; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .orx-cookie-logo, .orx-slider { animation:none !important; transition:none !important; } }
