:root {
  --bg: #0b0f17;
  --surface: rgba(255, 255, 255, .06);
  --surface2: rgba(255, 255, 255, .10);
  --border: rgba(255, 255, 255, .12);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .70);
  --muted2: rgba(255, 255, 255, .55);
  --accent: #ff4d6d;
  --accent2: #ffd166;
  --ok: #4ade80;
  --shadow: 0 18px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    linear-gradient(180deg, #070a10 0%, #0b0f17 50%, #070a10 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 40vw at 20% -10%,
      rgba(255, 77, 109, .28) 0%,
      rgba(255, 77, 109, .16) 25%,
      transparent 70%),
    radial-gradient(55vw 38vw at 90% 10%,
      rgba(255, 209, 102, .18) 0%,
      rgba(255, 209, 102, .10) 28%,
      transparent 72%),
    linear-gradient(180deg, #070a10 0%, #0b0f17 50%, #070a10 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Navbar * ----------------------------------------------------------------------------------------------------*/
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 15, .6);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo {
  width: 45px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 55%),
    linear-gradient(135deg, rgba(255, 77, 109, 1), rgba(255, 209, 102, 1));
  box-shadow: 0 12px 30px rgba(255, 77, 109, .18);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
}

.logo span {
  font-weight: 900;
  font-size: 14px;
  color: #0b0f17;
  letter-spacing: .5px;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title strong {
  font-size: 15px;
  letter-spacing: .2px;
}

.brand-title small {
  color: var(--muted2);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.chip:hover {
  transform: translateY(-1px);
  background: var(--surface2);
  border-color: rgba(255, 255, 255, .18);
  color: var(--text);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, .18);
}

.chip .icon {
  opacity: .95;
}

.menu-btn {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

/* Dropdown ----------------------------------------------------------------------------------------------------*/
.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgb(19, 17, 17);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 100;
}

/* 🔥 Apparition au survol */
.dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.open .dropdown-panel {
  display: block;
}

.dropdown a.item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}

.dropdown a.item:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  color: var(--text);
}

.dropdown a.item strong {
  font-size: 13px;
  display: block;
}

.dropdown a.item small {
  font-size: 12px;
  color: var(--muted2);
  display: block;
  margin-top: 2px;
}

/* Hero ----------------------------------------------------------------------------------------------------*/
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 23, .25) 0%, rgba(11, 15, 23, .86) 70%, rgba(11, 15, 23, 1) 100%),
    url("image.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(800px 400px at 20% 25%, rgba(255, 77, 109, .25), transparent 60%),
    radial-gradient(700px 380px at 90% 15%, rgba(255, 209, 102, .20), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  padding: 70px 0 46px;
}

.hero-card {
  width: min(860px, 100%);
  background: rgba(0, 0, 0, .20);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
  backdrop-filter: blur(10px);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: .2px;
}

.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-weight: 600;
  font-size: 13px;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(255, 77, 109, .92), rgba(255, 209, 102, .86));
  color: #0b0f17;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(255, 77, 109, .18);
}

/* Content ----------------------------------------------------------------------------------------------------*/
main {
  padding: 26px 0 70px;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
}

.card h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 209, 102, .12);
  border: 1px solid rgba(255, 209, 102, .22);
  color: rgba(255, 255, 255, .9);
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, .10);
  margin: 14px 0;
  border-radius: 999px;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.item:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  transform: translateY(-1px);
}

.pill {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 77, 109, .12);
  border: 1px solid rgba(255, 77, 109, .22);
  flex: 0 0 auto;
}

.item strong {
  display: block;
  font-size: 14px;
}

.item small {
  display: block;
  margin-top: 3px;
  color: var(--muted2);
  line-height: 1.4;
}

.cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .18);
}

.cta-row .left {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, .88);
}

.cta-row .left b {
  font-size: 14px;
}

.cta-row .left span {
  color: var(--muted);
  font-size: 13px;
}

footer {
  padding: 22px 0 34px;
  color: var(--muted2);
  border-top: 1px solid rgba(255, 255, 255, .10);
}

footer .foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Responsive ----------------------------------------------------------------------------------------------------*/
@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero-inner {
    padding: 54px 0 36px;
  }

  .hero-card {
    padding: 18px;
  }
}

/* Mobile drawer */
.drawer {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 0 16px;
}

.drawer.open {
  display: block;
}

.drawer .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Search  ----------------------------------------------------------------------------------------------------*/
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 10px 0;
  margin-left: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: width .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease;
  pointer-events: none;
}

.search-container.active .search-input {
  width: 220px;
  opacity: 1;
  margin-left: 8px;
  padding: 10px 14px;
  pointer-events: auto;
}

.search-input::placeholder {
  color: var(--muted2);
}


.draglist {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.dragitem {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04)
}

.dragitem.dragging {
  opacity: .5
}

.dragitem.over {
  outline: 2px solid rgba(255, 77, 109, .35)
}

.draglink {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none
}

.handle {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .25);
  cursor: grab;
  user-select: none
}

.txt {
  display: flex;
  flex-direction: column;
  gap: 2px
}


.photo-input {
  display: none;
}

.avatar-picker {
  position: relative;
  display: block;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.avatar-picker .avatar,
.avatar-picker .avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: filter .2s ease, transform .2s ease;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.avatar-picker:hover .avatar,
.avatar-picker:hover .avatar-fallback {
  filter: grayscale(.45) brightness(.55);
  transform: scale(1.03);
}

.avatar-picker:hover .avatar-overlay {
  opacity: 1;
}
