@import url('https://fonts.googleapis.com/css2?family=Poppins: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');

 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: Poppins, serif;
  background-color: #f3f6fd;
  overflow-x: hidden;
  margin: 0;
  padding: 0px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/*_________________________________________________________*/     

main {
  flex: 1;
  width: 90vw;
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--navbar-height, 80px) - var(--footer-height, 60px));
}

/*----------------------------------------------------*/   

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5vh 7vw 1vh;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.header p {
	font-size: 1.3vh;
	font-weight: 500;
}

.header .date {
    font-size: 1.9vh;
    font-weight: 600;
}

/*----------------------------------------------------*/

.content-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 80vw;
  margin: 0 auto;
  min-height: 50vh;
}

/*----------------------------------------------------*/    

.main-box {
    flex: 2;
    background-color: #fff;
    border-radius: 32px;
    padding: 32px 55px;
    overflow: hidden;
    height: 100%;
    width: 60vw;
    display: flex;
    flex-direction: column;
}

/*----------------------------------------------------*/

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-container h1 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    opacity: 0.9;
    margin: 0;
}

/*----------------------------------------------------*/

.project-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

/*----------------------------------------------------*/

.view-actions {
	display: flex;
	align-items: center;
}
.view-btn {
	width: 36px;
	height: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 6px;
	border-radius: 4px;
	background-color: transparent;
	border: none;
	color: #1f1c2e;
	margin-left: 8px;
	transition: .2s;
}
.view-btn.active {
	background-color: #1f1c2e;
	color: #fff;
}
.view-btn:not(.active):hover {
	background-color: #c3cff4;
	color: #fff;
}

/*----------------------------------------------------*/

.custom-select {
    position: relative;
    width: fit-content;
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
    user-select: none;
  }
  
  .select-trigger {
    background-color: #2a2f3b;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  
  .select-trigger::after {
    content: '▼';
    font-size: 10px;
    margin-left: 10px;
  }
  
  .select-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background-color: #2a2f3b;
    border-radius: 8px;
    padding: 4px 0;
    display: none;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .select-options.visible {
    display: block;
}
  
  .select-options div {
    padding: 10px 16px;
    color: white;
    cursor: pointer;
  }
  
  .select-options div:hover {
    background-color: #3a3f4b;
  }
  
/*----------------------------------------------------*/

.projects-stats {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 20px;
}

.stats-box {
    padding: 25px 0;
    border-radius: 10px;
    text-align: center;
    min-width: 6vw;
}

.stats-values {
    font-size: 25px;
    font-weight: bold;
    color: #1f1c2e;
}

.stats-labels {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

/*----------------------------------------------------*/

.project-boxes {
    scrollbar-width: thin;
    scrollbar-color: #c3cff4 transparent;
	margin: 0 -8px;
	overflow-y: auto;
}

.project-boxes.jsGridView {
	display: flex;
	flex-wrap: wrap;
}

.project-boxes.jsGridView .project-box-wrapper {
	width: 25%;
}

.project-boxes.jsListView .project-box {
	display: flex;
  border-radius: 20px;
  position: relative;
  align-items: baseline;
}

.project-boxes.jsListView .project-box > * {
	margin-right: 24px;
}

.project-boxes.jsListView .more-wrapper {
	position: absolute;
	right: 16px;
	top: 16px;
}

.project-boxes.jsListView .project-box-content-header {
	order: 1;
	max-width: 15vw;
}

.project-boxes.jsListView .project-box-header {
	order: 2;
}

.project-boxes.jsListView .project-box-footer {
	order: 3;
	padding-top: 0;
	flex-direction: column;
	justify-content: flex-start;
}

.project-boxes.jsListView .project-box-footer:after {
	display: none;
}

.project-boxes.jsListView .project-status {
	margin-bottom: 8px;
}

.project-boxes.jsListView .project-box-content-header p {
	text-align: left;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.project-boxes.jsListView .project-box-header > span {
	position: absolute;
  bottom: 25px;
  left: 50px;
	font-size: 12px;
}

.project-boxes.jsListView .box-progress-wrapper {
	order: 3;
	flex: 1;
}

.project-box {
	--main-color-card: #dbf6fd;
	border-radius: 30px;
	padding: 25px;
	background-color: var(--main-color-card);
}

.project-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	color: var(--main-color);
}

.project-box-header span {
	color: #4A4A4A;
	opacity: .7;
	font-size: 1.1vh;
	line-height: 16px;
}

.project-box-content-header {
	text-align: center;
	margin: 25px;
}

.project-box-wrapper {
	padding: 8px;
	transition: .2s;
}

/*----------------------------------------------------*/

.box-content-header {
    font-size: 1.3vh;
	line-height: 1.2vh;
	font-weight: 700;
	opacity: .7;
}

.fa-solid, .fas {
    font-weight: 600;
    font-size: 1.2vh;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.fa-solid:hover, .fas:hover {
    color: #365b67;
    transform: scale(1.2);
}

.fa-solid:active, .fas:active {
    transform: scale(0.9);
    color: #0f8e44;
}


.box-content-subheader {
	font-size: 1.2vh;
	line-height: 24px;
    margin-top: 10px;
	opacity: .7;
}
.box-progress {
	display: block;
	height: 4px;
	border-radius: 6px;
}
.box-progress-bar {
	width: 100%;
	height: 4px;
	border-radius: 6px;
	overflow: hidden;
	background-color: #fff;
	margin: 8px 0;
}
.box-progress-header {
    font-size: 0.9vh;
    font-weight: 600;
    color: #26262694;
	line-height: 16px;
	margin: 0;
}
.box-progress-percentage {
	text-align: right;
	margin: 0;
    margin-bottom: 1vh;
    font-size: 1vh;
	font-weight: 700;
	line-height: 16px;
}

.project-box-footer {
	display: flex;
	justify-content: space-between;
	padding-top: 16px;
	position: relative;
}
.project-box-footer:after {
	content: '';
	position: absolute;
	background-color: rgba(255, 255, 255, 0.6);
	width: calc(100% + 32px);
	top: 0;
	left: -16px;
	height: 1px;
}

/*----------------------------------------------------*/ 

.project-status {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.status-indicator {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 5px solid;
    border-radius: 50%;
    margin-right: 0.2vw;
}

.status-red {
    border-color: #ff0000;
}

.status-orange {
    border-color: #ff9800;
}

.status-green {
    border-color: #4caf50;
}

.status-gray {
    border-color: #9e9e9e;
}

.status-text {
    color: #4A4A4A;
    opacity: 0.7;
    font-size: 1vh;
    line-height: 16px;
}

/*----------------------------------------------------*/ 

.info-days {
    background-color: rgba(255, 255, 255, 0.6);
    font-size: 1vh;
    border-radius: 20px;
    flex-shrink: 0;
    padding: 6px 16px;
    font-weight: 600;
}

/*----------------------------------------------------*/ 

.changelog-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 16px;
    width: 400px;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.changelog-popup.visible {
    display: block;
    opacity: 1; 
    transform: translate(-50%, -50%);
}


.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 16px;
}

.popup-date {
    background: #f5f7fb;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 16px;
    font-weight: bold;
    font-size: 1.1vh;
    color: #262626;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    color: #555555;
    font-size: 1.2vh;
}

.changelog-list li:last-child {
    border-bottom: none;
}

.close-popup {
    cursor: pointer;
    font-size: 1.9vh;
    position: absolute;
    top: 16px;
    right: 16px;
    color: #888888;
    transition: color 0.2s ease;
}

.close-popup:hover {
    color: #333333;
}

/*_________________________________________________________*/

.side-box {
    flex: 1;
    background: white;
    border-radius: 30px;
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #c3cff4 transparent;
    display: flex;
    flex-direction: column;
    transition: all 300ms cubic-bezier(0.19, 1, 0.56, 1);
}

.side-box::-webkit-scrollbar {
  width: 6px;
}

.side-box::-webkit-scrollbar-thumb {
  background-color: #c3cff4;
  border-radius: 10px;
}


.objectifs-header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 15px 0 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/*----------------------------------------------------*/ 

.goal-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    border-top: 1px solid #e9ebf0;
	  padding: 16px;
}

.goal-box {
    flex: 1;
    max-width: 150px;
    border-radius: 30px;
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5vh;
    font-weight: 700;
}

/*----------------------------------------------------*/ 

.goal-item {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goal-title {
    font-size: 1.1vh;
    font-weight: 600;
}

.goal-progress {
    font-size: 1vh;
    font-weight: bold;
    color: #858585;
}

.progress-bar {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

/*----------------------------------------------------*/ 

.subscribe-btn {
    position: relative;
    background: var(--btn-color, #555);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    transition: transform 0.15s ease-in-out, box-shadow 0.25s ease-in-out;
}

.goal-item[data-link*="youtube"] .subscribe-btn {
    --btn-color: linear-gradient(135deg, #FF0000, #FF512F);
}

.goal-item[data-link*="twitch"] .subscribe-btn {
    --btn-color: linear-gradient(135deg, #9146FF, #5621A2);
}

.goal-item[data-link*="discord"] .subscribe-btn {
    --btn-color: linear-gradient(135deg, #7289DA, #4A68AD);
}

.subscribe-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -100%;
    width: 120%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(25deg);
    animation: lightMove 2s infinite linear;
}

@keyframes lightMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

.subscribe-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.subscribe-btn:active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 0.4s ease-out forwards;
}

@keyframes rippleEffect {
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/*----------------------------------------------------*/

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000; /* Par-dessus tout */
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    font-weight: bold;
    display: none;
    z-index: 1001;
}

.popup-content {
    color: #ff5e62;
    animation: pop 0.5s ease-in-out;
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/*█▀█ █▀▀ █▀ █▀█ █▀█ █▄ █ █▀ █ █ █ █▀▀
  █▀▄ ██▄ ▄█ █▀▀ █▄█ █ ▀█ ▄█ █ ▀▄▀ ██▄*/


    @media screen and (min-width: 769px) and (max-width: 1081px) {
      body {
        height: auto;
        overflow-x: hidden;
        padding-top: 60px;
      }
    
      main {
        width: 90vw;
        max-width: 90vw;
        margin: 0 auto;
        height: auto;
        padding-bottom: 80px;
      }
    
      .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
      }
    
      .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
      }
    
      .header-container h1 {
        font-size: 1.8rem;
        margin: 0;
      }
    
      .project-controls {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
      }
    
      .view-actions {
        order: 1;
        flex: 0 0 auto;
      }
    
      .custom-select {
        order: 2;
        flex: 1;
        min-width: 180px;
      }
    
      .content-wrapper {
        flex-direction: column;
        gap: 32px;
      }
    
      .main-box,
      .side-box {
        width: 100%;
        height: auto;
        padding: 28px;
      }
    
      .project-boxes.jsGridView .project-box-wrapper {
        width: 50%;
        padding: 8px;
      }
    
      .project-box {
        padding: 18px;
        border-radius: 24px;
        min-height: 240px;
      }
    
      .project-box-header span {
        font-size: 0.95rem;
      }
    
      .box-content-header,
      .box-content-subheader {
        font-size: 1rem;
      }
    
      .box-progress-header,
      .box-progress-percentage {
        font-size: 0.9rem;
      }
    
      .status-text {
        font-size: 0.9rem;
      }
    
      .info-days {
        font-size: 0.85rem;
        padding: 5px 12px;
      }
    
      .goal-item {
        padding: 18px;
        margin-bottom: 16px;
      }
    
      .goal-title {
        font-size: 1rem;
      }
    
      .subscribe-btn {
        font-size: 0.95rem;
        padding: 10px 14px;
      }
    
      .goal-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
      }
    
      .goal-box {
        flex: 1 1 45%;
        max-width: 48%;
        text-align: center;
        padding: 18px;
      }
    
      .popup,
      .changelog-popup {
        width: 80%;
        font-size: 1rem;
      }
    }
    
  

  @media screen and (max-width: 768px) {
    body {
      height: auto;
      overflow-x: hidden;
    }
  
    main {
      width: 95vw;
      padding: 0 10px 80px;
      height: auto;
    }
  
    .header {
      flex-direction: column;
      align-items: flex-start;
      margin-top: 40px;
      gap: 10px;
    }
  
    .content-wrapper {
      flex-direction: column;
      gap: 24px;
    }
  
    .main-box,
    .side-box {
      width: 100%;
      padding: 20px;
      border-radius: 20px;
      height: auto;
    }
  
    .project-boxes.jsGridView .project-box-wrapper {
      width: 100%;
    }
  
    .project-box {
      padding: 15px;
      border-radius: 20px;
      min-height: unset;
    }
  
    .project-box-header,
    .project-box-content-header,
    .box-progress-wrapper,
    .project-box-footer {
      margin-bottom: 12px;
    }
  
    .box-content-header,
    .box-content-subheader,
    .box-progress-header,
    .box-progress-percentage,
    .status-text,
    .info-days {
      font-size: 0.9rem;
    }
  
    .goal-item {
      padding: 15px;
      margin-bottom: 12px;
    }
  
    .goal-title {
      font-size: 1rem;
    }
  
    .subscribe-btn {
      font-size: 0.9rem;
      padding: 8px 12px;
    }
  
    .select-trigger {
      width: 100%;
      font-size: 1rem;
    }
  
    .select-options div {
      padding: 10px 12px;
    }
  
    .goal-stats {
      flex-direction: column;
      gap: 12px;
    }
  
    .popup,
    .changelog-popup {
      width: 90%;
      font-size: 0.95rem;
    }
  }
  


@media screen and (max-width: 480px) {
  body {
    height: auto;
    overflow-x: hidden;
  }

  main {
    width: 95vw;
    padding: 0 10px 80px;
    height: auto;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
    gap: 10px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .main-box,
  .side-box {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    height: auto;
  }

  .project-boxes.jsGridView .project-box-wrapper {
    width: 100%;
  }

  .project-box {
    padding: 15px;
    border-radius: 20px;
    min-height: unset;
  }

  .project-box-header,
  .project-box-content-header,
  .box-progress-wrapper,
  .project-box-footer {
    margin-bottom: 12px;
  }

  .box-content-header,
  .box-content-subheader,
  .box-progress-header,
  .box-progress-percentage,
  .status-text,
  .info-days {
    font-size: 0.9rem;
  }

  .goal-item {
    padding: 15px;
    margin-bottom: 12px;
  }

  .goal-title {
    font-size: 1rem;
  }

  .subscribe-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .select-trigger {
    width: 100%;
    font-size: 1rem;
  }

  .select-options div {
    padding: 10px 12px;
  }

  .goal-stats {
    flex-direction: column;
    gap: 12px;
  }

  .popup,
  .changelog-popup {
    width: 90%;
    font-size: 0.95rem;
  }
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/

/*█▀▄ ▄▀█ █▀█ █▄▀   ▀█▀ █ █ █▀▀ █▀▄▀█ █▀▀
  █▄▀ █▀█ █▀▄ █ █    █  █▀█ ██▄ █ ▀ █ ██▄*/


  body.dark-theme {
    background-color: #1c1f2b;
    color: #f0f0f0;
  }

  body.dark-theme .main-box {
  background-color: #24283b;
}

/*----------------------------------------------------*/

body.dark-theme .view-btn {
	color:  #fff;
}

body.dark-theme .view-btn.active {
	background-color:  #fff;
	color: #1f1c2e;
}

body.dark-theme .view-btn:not(.active):hover {
	background-color: #e7edff;
	color: #1f1c2e;
}

body.dark-theme .select-trigger {
  background-color: #2b2f40;
  color: #fff;
}

body.dark-theme .select-options {
  background-color: #2b2f40;
  color: #fff;
}

body.dark-theme .select-options div:hover {
  background-color: #3c425b;
}

/*----------------------------------------------------*/

body.dark-theme .stats-values {
  color: #f0f0f0;
}

body.dark-theme .stats-labels {
  color: #d4d4d4;
}

/*----------------------------------------------------*/

body.dark-theme .changelog-popup {
  background: #24283b;
}

body.dark-theme .popup-title {
  color: #d0d0d0;
}

body.dark-theme .popup-date {
  color: #24283b;
}

body.dark-theme.changelog-list li {
  border-bottom: 1px solid #444a66;
  color: #dcdcdc;
}

body.dark-theme .close-popup {
  color: #ffdede;
}

body.dark-theme .close-popup:hover {
  color: #f96b6b;
}

body.dark-theme .project-boxes.jsGridView,
body.dark-theme .project-boxes.jsListView {
  color: initial;
}

/*----------------------------------------------------*/ 

body.dark-theme .changelog-list li {
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
}

/*_________________________________________________________*/

body.dark-theme .side-box {
  background: #24283b;
}

body.dark-theme .goal-item {
  background: #4c526b;
}

body.dark-theme .goal-box {
  color: #4c526b;
}

body.dark-theme .goal-stats {
  color: #f0f0f0;
}

/*----------------------------------------------------*/ 

body.dark-theme .popup {
  background: #1c1f2b;
}

body.dark-theme .popup-content {
  color: #ffef8b;
}
