:root {
  --bg-0: #070a12;
  --bg-1: #0a0f1f;
  --bg-2: #0b1633;
  --card: rgba(255, 255, 255, .06);
  --card-2: rgba(255, 255, 255, .08);
  --stroke: rgba(255, 255, 255, .10);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .62);
  --brand-1: #6d5cff;
  --brand-2: #2bd4ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --radius: 16px;
  --radius-2: 22px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg-0);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(109, 92, 255, .20), transparent 60%),
    radial-gradient(800px 520px at 80% 10%, rgba(43, 212, 255, .15), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-2));
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}







/* =========================
   Header 
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(7, 10, 18, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.header-search {
  width: min(680px, 100%);
  min-width: 280px;
  max-width: 680px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 6px 6px 12px;
  border-radius: 16px;

  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .06);

  min-width: 0;
}

.search-pill input {
  flex: 1 1 auto;
  min-width: 0;

  border: 0;
  outline: 0;
  background: transparent;

  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}

.search-pill input::placeholder {
  color: rgba(255, 255, 255, .45);
}

.search-btn {
  border: 0;
  cursor: pointer;

  width: 32px;
  height: 32px;
  border-radius: 10px;

  background: linear-gradient(135deg, #2bd4ff, #6d5cff);
  color: rgba(255, 255, 255, .95);

  display: inline-grid;
  place-items: center;
}

.search-btn i {
  font-size: 13px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 16px;

  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hbtn>i {
  margin-right: 8px;
}

.hbtn>i:last-child {
  margin-right: 0;
  margin-left: 8px;
}


.hbtn--ghost {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .80);
}

.hbtn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .92);
}

.hbtn--red {
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(53, 14, 14, 0.95), rgba(57, 9, 9, 0.7));
  color: rgba(255, 255, 255, .92);
}

.hbtn--red:hover {
  filter: brightness(1.08);
}

.hbtn--primary {
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(22, 14, 53, 0.95), rgba(14, 9, 57, 0.7));
  color: rgba(255, 255, 255, .92);
}

.hbtn--primary:hover {
  filter: brightness(1.05);
}

.header-actions .hbtn {
  gap: 8px;
}

.header-actions .hbtn i {
  font-size: 13px;
  line-height: 1;
}




/* =========================
   User dropdown (desktop)
========================= */
.user-menu{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-trigger{
  gap: 12px; 
}

.user-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;

  padding: 10px;
  border-radius: 16px;

  background: rgba(7,10,18,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);

  display: none;
  z-index: 80;
}

.user-menu.is-open .user-dropdown{
  display: block;
}

.ud-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.88);
}

.ud-item:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.96);
}

.ud-item i{
  width: 18px;
  text-align: center;
  color: rgba(255,255,255,.72);
}

.ud-sep{
  height: 1px;
  margin: 8px 6px;
  background: rgba(255,255,255,.10);
}

.ud-item--danger{
  color: rgba(255,255,255,.90);
}




/* =========================
   Header — responsive mobile (dropdown sous le header)
========================= */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .92);
  cursor: pointer;

  align-items: center;
  justify-content: center;
}

.burger:hover {
  background: rgba(255, 255, 255, .07);
}

.burger-ico {
  font-size: 18px;
  line-height: 1;
}

.burger .burger-ico--close {
  display: none;
}

.burger[aria-expanded="true"] .burger-ico--open {
  display: none;
}

.burger[aria-expanded="true"] .burger-ico--close {
  display: block;
}

.header-drawer {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(9, 15, 29, 0.78);
  backdrop-filter: blur(14px);
}

body.nav-open .header-drawer {
  display: block;
}

.header-drawer__inner {
  padding: 14px 0 16px;
}

.drawer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.drawer-actions .hbtn {
  flex: 0 0 auto;
}

@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    height: 96px;
  }

  .header-center {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .header-search {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .burger {
    display: inline-flex;
    order: 3;
    flex: 0 0 auto;
  }

  .header-actions {
    display: none;
  }

  .hbtn>i {
    margin-right: 16px;
  }

  .hbtn>i:last-child {
    margin-right: 0;
    margin-left: 16px;
  }

  .drawer-actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .header-search {
    min-width: 0;
  }

  .drawer-actions .hbtn {
    flex: 1 1 160px;
  }
}

/* =========================
   Drawer (mobile) - layout connecté (override safe)
========================= */

@media (max-width: 1080px){
  .drawer-actions .drawer-user{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  /* Pseudo en haut */
  .drawer-actions .drawer-user__name{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;

    font-weight: 900;
    font-size: 18px;
    color: rgba(255,255,255,.92);

    justify-content: flex-end;
  }

  .drawer-actions .drawer-user__name i{
    width: 18px;
    text-align: center;
    color: rgba(255,255,255,.78);
  }

  .drawer-actions .drawer-user .hbtn{
    font-size: 16px;
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
  }
}

@media (max-width: 720px){
  .drawer-actions .drawer-user .hbtn{
    flex: 0 0 auto;
    width: 100%;
  }
}





















/* =========================
   Footer
========================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 10, 18, .55);
  backdrop-filter: blur(16px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
  padding: 28px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.footer-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(109, 92, 255, .12);
}

.footer-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .82);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .68);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, .92);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-social i {
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .70);
}

.footer-social a:hover i {
  color: rgba(255, 255, 255, .92);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* =========================
   Footer 
========================= */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-col,
  .footer-bottom {
    text-align: center;
    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-social a {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
  }
}