/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --text: #e5e7eb;
  --muted: #a8a9b4;
  --border: rgba(255, 255, 255, 0.10);
  --primary: #149ddd;
  --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)));
}

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: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;
}



#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;
}

#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-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: 9997;
  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;
}
/* ///////////////////////////////////////// */

.titlePage
{
  background-color: #a8a9b4;
  padding: 40px 0 40px;
  text-align: center;
}
.titlePage img
{
  max-width: 100px;
  border-radius: 30px;
  margin-bottom: 20px;
}


/* Tools */
.DesktopItem
{
  background-color: rgb(227, 249, 255);
  padding: 20px 0;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
  margin-bottom: 50px;
}
.DesktopItem h2
{
  margin-left: 20px;
}

.itemShelf
{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
}
.itemShelf div
{
  margin: 20px 0 20px;
  max-width: 300px;
  height: 450px;
  background-color: #6f7180;
  border: 2px solid black;
  border-radius: 10px;
  position: relative;
}
.itemShelf img
{
  margin: auto;
  width: 297px;
  height: 150px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 10px;
}
.itemShelf a
{
  width: 100%;
  position: absolute;
  left: 0px;
  bottom: 0px;
  padding: 10px;

  background-color: #040b14;
  border-radius: 0 0 10px 10px;

  text-decoration: none;
  color: white;
}
.itemShelf div:hover
{
  box-shadow: 0px 0px 20px #040b14;
  background-color: #808397;
}

.container_content {
  /* padding: 10px; */
  overflow: auto;
  max-height: 180px;
}

/* Petite carte : pas de scroll interne (le bloc suit le contenu) */
.work__card.boite:not(.expande) .container_content {
  overflow: visible;
  max-height: none;
}

/* Carte agrandie : scroll dans la zone description si besoin */
.boite.expande .container_content {
  overflow: auto;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
}

#message_erreur {
  width: 100%;
  background-color: red;
}


.work__card_open {
  width: 600px;
}

.work__card {
  width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.work__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 157, 221, 0.35);
}

.work__title {
  padding: 12px 12px 0;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}


/* .work__card p{
  overflow: auto;
  height: 70px;
background-color: red;
} */


