/* Icons */
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-chubby/css/uicons-solid-chubby.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-rounded/css/uicons-solid-rounded.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-brands/css/uicons-brands.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-chubby/css/uicons-regular-chubby.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/regular.min.css");
@import url("https://cdn.hugeicons.com/font/hgi-stroke-rounded.css");
@import url("https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  /* === Brand Palette === */
  --royal-orchid:  #9200ac;
  --indigo-bloom:  #6f2da8;
  --cherry-rose:   #ad0054;
  --gunmetal:      #3f3f3f;
  --white:         #fbfbfb;

  /* === Semantic Aliases === */
  --primary-color:  var(--royal-orchid);
  --primary:        var(--royal-orchid);
  --primary-dark:   var(--indigo-bloom);
  --primary-light:  rgba(146, 0, 172, 0.12);
  --accent:         var(--cherry-rose);

  --text:           var(--gunmetal);
  --text-dark:      var(--gunmetal);
  --text-light:     #777;
  --text-color:     var(--gunmetal);

  --bg-color:       var(--white);
  --second-color:   #f5f0ff;

  /* === Component Vars === */
  --box-shadow:     0 0 10px 0 rgba(146, 0, 172, 0.2);
  --border-r:       10px;
  --border-radius:  10px;
  --shadow-sm:      0 2px 3px rgba(146, 0, 172, 0.15);
  --shadow-md:      0 2px 5px #3f3f3f1a;
  --transition:     all 0.3s ease;
}

/* ═══ Dark Theme ═══════════════════════════════════════════════════ */
[data-theme="dark"] {
  --white:         #1a1a2e;
  --gunmetal:      #e0e0e0;
  --bg-color:      #0f0f1a;
  --second-color:  #1e1e3a;
  --text:          #e0e0e0;
  --text-dark:     #f0f0f0;
  --text-light:    #999;
  --text-color:    #e0e0e0;
  --box-shadow:    0 0 10px 0 rgba(146, 0, 172, 0.3);
  --shadow-sm:     0 2px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:     0 2px 5px rgba(0, 0, 0, 0.2);
  --primary-light: rgba(146, 0, 172, 0.2);
}
[data-theme="dark"] body {
  background-color: #0f0f1a;
  color: #e0e0e0;
}
[data-theme="dark"] .container,
[data-theme="dark"] #container.container {
  background: rgba(26, 26, 46, 0.95);
  border-color: rgba(146, 0, 172, 0.2);
}
[data-theme="dark"] .db-shell { background: #0f0f1a; }
[data-theme="dark"] .db-sidebar {
  background: #16162b;
  border-right-color: rgba(146, 0, 172, 0.15);
}
[data-theme="dark"] .db-topbar { background: #16162b; border-bottom-color: rgba(146, 0, 172, 0.12); }
[data-theme="dark"] .db-main { background: #0f0f1a; }
[data-theme="dark"] .db-card {
  background: #1a1a2e;
  border-color: rgba(146, 0, 172, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .db-input,
[data-theme="dark"] .db-select {
  background: #252545;
  border-color: rgba(146, 0, 172, 0.2);
  color: #e0e0e0;
}
[data-theme="dark"] .db-input:focus,
[data-theme="dark"] .db-select:focus {
  border-color: #9200AC;
  box-shadow: 0 0 0 3px rgba(146, 0, 172, 0.2);
}
[data-theme="dark"] .db-alert { background: rgba(146, 0, 172, 0.1); }
[data-theme="dark"] .db-alert-warning { background: rgba(230, 138, 0, 0.1); }
[data-theme="dark"] .db-alert-error { background: rgba(173, 0, 84, 0.1); }
[data-theme="dark"] .db-alert-success { background: rgba(34, 139, 34, 0.1); }
[data-theme="dark"] .db-btn-primary { background: #9200AC; }
[data-theme="dark"] .db-btn-ghost { background: transparent; color: #e0e0e0; border-color: rgba(146, 0, 172, 0.3); }
[data-theme="dark"] .db-divider { border-color: rgba(146, 0, 172, 0.12); }
[data-theme="dark"] .db-notif-item { border-bottom-color: rgba(146, 0, 172, 0.1); }
[data-theme="dark"] .db-notif-item.unread { background: rgba(146, 0, 172, 0.06); }
[data-theme="dark"] .db-tabs button { color: #999; }
[data-theme="dark"] .db-tabs button.is-active { color: #9200AC; border-bottom-color: #9200AC; }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #252545;
  color: #e0e0e0;
  border-color: rgba(146, 0, 172, 0.2);
}
[data-theme="dark"] .db-nav-item { color: #bbb; }
[data-theme="dark"] .db-nav-item.is-active { color: #9200AC; background: rgba(146, 0, 172, 0.15); }
[data-theme="dark"] .db-nav-item:hover { background: rgba(146, 0, 172, 0.1); }
[data-theme="dark"] .db-profile-mini { border-bottom-color: rgba(146, 0, 172, 0.12); }
[data-theme="dark"] .db-sidebar-brand { border-bottom-color: rgba(146, 0, 172, 0.12); }
[data-theme="dark"] .db-stat-card { background: #1a1a2e; border-color: rgba(146, 0, 172, 0.12); }
[data-theme="dark"] a { color: inherit; }
[data-theme="dark"] .db-badge-count { background: #9200AC; }
[data-theme="dark"] #help { background-color: #1a1a2e; box-shadow: 0 0 10px rgba(146, 0, 172, 0.3); }

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Text";
  src: url(/assets/fonts/BeVietnamPro-Regular.ttf) format("truetype");
}

@font-face {
  font-family: "T-Bold";
  src: url(/assets/fonts/BeVietnamPro-SemiBold.ttf) format("truetype");
}

@font-face {
  font-family: "T-Black";
  src: url(/assets/fonts/BeVietnamPro-Black.ttf) format("truetype");
}

body {
  font-family: "Text";
  background-color: var(--bg-color);

  margin: 0;
  padding: 0;
}

* {
  cursor: none;
  --webkit---scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid var(--royal-orchid);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--royal-orchid);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}

.custom-cursor.hover-anchor {
  border-color: var(--cherry-rose);
  width: 45px;
  height: 45px;
}

.custom-cursor.hover-anchor::before {
  background: var(--cherry-rose);
}

html,
body {
  overflow-y: auto;
}

*::-webkit-scrollbar {
  display: none;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

/*===== ICON =====*/
.icon {
  width: fit-content;
}
.icon.header {
  height: 20px;
}


/* Aide Btn */
#help {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;

  border-radius: 10px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);

  padding: 10px;
  z-index: 1000;
  transition: 0.5s;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#help:hover #helpers {
  display: block;
  transition: 0.5s;
  margin-bottom: 10px;
}

#help:hover div:nth-of-type(2) {
  transition: 0.5s;
  transform: translateX(100%);
}

#helpers {
  display: none;
  border-radius: 10px;
  padding: 10px;
  transition: 0.5s;
  margin-bottom: -50px;
}

#helpers > div > div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  transition: 0.5s;
  border-radius: 10px;
}

#helpers a {
  transition: 0.5s;
  padding: 10px;
  margin: 5px;
  border-radius: 10px;
  width: 90%;
}

#helpers a:hover {
  background-color: var(--primary-light);
  transition: 0.5s;
}

#help img {
  width: 50px;
  height: fit-content;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

#help a {
  color: var(--royal-orchid);
  text-decoration: none;
  font-weight: bolder;
  transition: 0.5s;
}

#helpers img {
  max-width: fit-content;
  height: 30px;
  margin-right: 10px;
}

#helpers a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Icons design */
.fi {
  font-size: 20px;
  gap: 10px;

  font-style: normal;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Btn */
.btn {
  color: white;
  border: solid 2px var(--royal-orchid);
  font-family: "T-Bold";
  height: auto;
  width: auto;
  text-align: center;

  background-color: var(--primary-color);
  border-radius: var(--border-r);
  padding: 10px 20px;
  transition: 0.5s;
}

.btn.inverse {
  background-color: white;
  color: var(--primary-color);
  border: white solid 2px;
  transition: 0.5s;
}

.btn:hover {
  background-color: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  transition: 0.5s;
}

.btn.inverse:hover {
  background-color: #e4e4e4;
  color: #000;
  transition: 0.5s;
}

/* DM */
.poppup {
  background-color: rgba(225, 176, 176, 0.7);
  /* fond semi-transparent */
  height: 100%;
  width: 100%;
  top: 0;

  position: fixed;
  z-index: 999;

  text-align: center;

  /* effet de flou */
  -webkit-backdrop-filter: blur(10px);
  /* pour Safari */
  backdrop-filter: blur(10px);

}

.poppup-content {
  background-color: white;
  width: 400px;
  height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 2rem 1rem;
  border-radius: var(--border-r);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.poppup-content img {
  width: 60px;
  height: 60px;
  transition: 0.5s ease;
}

.poppup-content img:not(:hover) {
  width: 50px;
  height: 50px;
  opacity: 0.7;
  transition: 0.5s ease;
}

.poppup-content div {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
