/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #0f172a;
  --text: #e5e7eb;
  --muted: #a8a9b4;
  --border: rgba(255, 255, 255, 0.10);
  --primary: #149ddd;
  --primary-2: #3aa7e6;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --sidebar-header-padding-top: max(2.5rem, env(safe-area-inset-top, 0px));
  --nav-top-body-pad: max(4.25rem, calc(2.75rem + env(safe-area-inset-top, 0px)));
}

html {
  color-scheme: dark;
}

body {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(20, 157, 221, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(58, 167, 230, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: var(--sidebar-header-padding-top) 15px 0;
  background: linear-gradient(180deg, #040b14, #050d1a);
  overflow-y: auto;
}

#header .profile {
  flex-shrink: 0;
  padding-bottom: 0.35rem;
}

#header .profile h1.text-light {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-brand__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.site-brand__link:hover {
  color: #fff;
}

.site-brand__logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(20, 157, 221, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.site-brand__link:hover .site-brand__logo {
  transform: scale(1.03);
  border-color: rgba(20, 157, 221, 0.65);
}

.site-brand__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}



#main {
  margin-left: 300px;
}

@media (max-width: 1199px) {
  #header {
    left: -330px;
  }

  #main {
    margin-left: 0;
  }
}
@media (min-width: 1199px) {
  body{
    padding-left: 300px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  padding: 30px 0 0 0;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: var(--muted);
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 10px;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 24px;
  padding-right: 8px;
  color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover>a i {
  color: var(--primary);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  background-color: var(--primary);
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 50px;
  cursor: pointer;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

/* ---------- Layout navbar : latéral (défaut) / barre du haut (fixe au scroll) ---------- */
#header .header-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#header .nav-menu {
  flex: 1 1 auto;
  min-height: 0;
}

/* Barre latérale : sans ça, Bootstrap .navbar centre le <ul> verticalement dans la zone flex */
#header .nav-menu.navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
  display: block;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
}

.nav-layout-toggle {
  flex-shrink: 0;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 0.75rem;
  border: 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-layout-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-layout-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-layout-toggle__label {
  white-space: nowrap;
}

/* Barre horizontale fixe en haut */
html.nav-layout-top #header {
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) 1rem 0.65rem;
  overflow: visible;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #040b14, #0a1524);
}

html.nav-layout-top #header .header-inner {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  min-height: 0;
  width: 100%;
}

html.nav-layout-top #header .profile.site-brand {
  order: 0;
}

html.nav-layout-top #header .profile {
  display: block;
  flex-shrink: 0;
  padding-bottom: 0;
}

html.nav-layout-top #header .site-brand__link {
  flex-direction: row;
  gap: 0.55rem;
}

html.nav-layout-top #header .site-brand__logo {
  width: 36px;
  height: 36px;
}

html.nav-layout-top #header .site-brand__title {
  font-size: 1rem;
  white-space: nowrap;
}

html.nav-layout-top #header .nav-menu {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  order: 1;
}

/* Neutralise Bootstrap .navbar / .nav-link (padding, flex) qui décale les entrées entre elles */
html.nav-layout-top #header .nav-menu.navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
  display: block;
  padding: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
}

html.nav-layout-top #header .nav-menu > ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.2rem 0.35rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

html.nav-layout-top #header .nav-menu > ul > li {
  display: flex;
  align-items: center;
  align-self: center;
}

html.nav-layout-top #header .nav-menu a,
html.nav-layout-top #header .nav-menu a.nav-link {
  margin-bottom: 0 !important;
  padding: 0.45rem 0.65rem !important;
  font-size: 0.9rem;
  line-height: 1.25;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  min-height: 2.25rem;
}

html.nav-layout-top #header .nav-menu a i,
html.nav-layout-top #header .nav-menu a:focus i {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

html.nav-layout-top #header .nav-layout-toggle {
  flex-shrink: 0;
  margin-top: 0;
  width: auto;
  margin-left: auto;
  order: 2;
  border-top: 0;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  align-self: center;
}

html.nav-layout-top body {
  padding-left: 0 !important;
  padding-top: var(--nav-top-body-pad);
}

@media (min-width: 1200px) {
  html.nav-layout-top body {
    padding-left: 0 !important;
  }
}

html.nav-layout-top .titlePage {
  padding-top: max(1.25rem, calc(0.5rem + env(safe-area-inset-top, 0px)));
}

@media (max-width: 1199px) {
  html.nav-layout-top #header {
    left: 0 !important;
  }

  html.nav-layout-top .mobile-nav-toggle {
    display: none !important;
  }

  html.nav-layout-top body.mobile-nav-active {
    overflow: auto;
  }
}

/* ///////////////////////////////////////// */


.titlePage {
  position: relative;
  padding: max(72px, calc(1.5rem + env(safe-area-inset-top, 0px))) 16px 42px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border-bottom: 1px solid var(--border);
}
.titlePage h1 {
  margin: 0 auto;
  max-width: 900px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.titlePage img
{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
@media (max-width: 1199px) {
  .titlePage img{
    left: 16px;
    right: auto;
    width: 72px;
    height: 72px;
  }
}
.description
{
  margin: 24px auto 0;
  max-width: 980px;
  padding: 0 12px;
  color: rgba(229, 231, 235, 0.92);
}
@media (max-width: 800px) {
  .description{
    margin-top: 18px;
  }
}

/* Page profil */
.description.profil-page {
  text-align: left;
  max-width: 640px;
}

.profil-lead {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.profil-card {
  margin-top: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.profil-card.profil-card--meta {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.profil-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.profil-row-secondary {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.profil-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.65);
  min-width: 10rem;
}

.profil-id {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(20, 157, 221, 0.15);
  border: 1px solid rgba(20, 157, 221, 0.35);
  color: #e5e7eb;
}

.profil-id-small {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.profil-hint {
  font-size: 0.9rem;
  color: rgba(229, 231, 235, 0.72);
  line-height: 1.5;
  margin: 0 0 0.25rem 0;
}

.profil-hint-inline {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.profil-flash {
  max-width: 640px;
  margin: 0 auto 1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius, 10px);
  font-size: 0.95rem;
}

.profil-flash-ok {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.profil-flash-err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.profil-stat {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5e7eb;
}

.profil-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profil-form .profil-label {
  display: block;
  margin-bottom: 0.25rem;
}

.profil-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}

.profil-form-row input[type="text"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #e5e7eb;
  font-size: 1rem;
}

.profil-save {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 157, 221, 0.45);
  background: rgba(20, 157, 221, 0.2);
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
}

.profil-save:hover {
  background: rgba(20, 157, 221, 0.35);
}

.footer_card {
  width: 100%;
  /* background-color: red; */
  padding: 5px 0 0px;

  display: flex;
  justify-content: space-between;
  margin-bottom: -10px;
}

/* .StarRating {
  position: relative;

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

.star {
  color: gray;
  cursor: pointer;
  font-size: 20px;

}
.star:hover {
  cursor: pointer;
  color: rgba(50, 140, 200, 1);
}
.star.selected {
  color: gold;
} */
