/* Main CSS - Global styles */
:root {
  /* Color variables */
  --primary-color: #CE0E2D;
  --primary-light: #ff3e58;
  --primary-dark: #BF0404;
  --secondary-color: #f8f8f8;
  --text-color: #333;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;

  /* Spacing system (8px) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;

  /* Font sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}


body {
  background-color: var(--gray-100);
  color: var(--text-color);
  font-size: var(--text-md);
  line-height: 1.5;
  max-width: 98vw;
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 98.5vw;
}

.header {
  height: 60px;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px 5px 7px #0000001F;
  z-index: 3;
  /* position: fixed; */
  width: 100%;
  box-sizing: border-box;
  padding: 0 130px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.logo-content {
  display: flex;
  flex-direction: column;
  align-items: center;

}

.logo {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
}

/* .sub-header-container {
    max-height: 168px;
    height: 35vh;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    background: #f7f7f7;
    width: 100%;
    background-size: contain;
    z-index: 2;
    position: fixed;
    top: 51px;
    display: flex;
    flex-direction: column;
    justify-content: end;
} */

.sub-header-container {
    /* max-height: 168px; */
    height: fit-content;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    background: #f7f7f7;
    width: 100%;
    /* background-size: contain; */
    z-index: 2;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.sub-header-content {
  display: flex;
  align-items: center;
  /* width: 57vw; */
  width: 100vw;
  justify-content: space-between;
}

.sub-header-content img {
  min-height: 168px;
}

.profile-picture img {
  min-height: unset;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 24px
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-picture {
  min-width: 60px;
  min-height: 60px;
  max-width: 143px;
  max-height: 143px;
  width: 20vw;
  height: 20vw;
  border-radius: 50%;
  border: 2px solid #BF0404;
}

.organization-name h1 {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
}

.organization-name p {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.profile-section {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background-color: white;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.profile-name h3 {
  font-size: var(--text-md);
  font-weight: 500;
}

.profile-name p {
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.disconnect-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.disconnect-btn:hover {
  background-color: var(--primary-dark);
}

/* Content Container */
.content-container {
  display: flex;
  flex: 1;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  background: #F1F1F1;
  box-shadow: var(--shadow-md);
  position: relative;
  top: 211px;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Main Content */
.main-content {
  margin: 20px;
  border-radius: 20px;
  /* flex: 1; */
  padding: var(--space-3);
  background-color: white;
  width: calc(100vw - 388px);
  position: relative;
  box-sizing: border-box;
  left: 295px;
  min-height: calc(100vh - 108px);
  padding-bottom: 34px;
}

/* Progress Steps */
.progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-4);
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  /* margin-bottom: 8px; */
  transition: all var(--transition-normal);
  width: 158px;
  height: 45px;
  /* background: #BF0404 0% 0% no-repeat padding-box; */
  border-radius: 23px;
  display: flex;
  gap: 10px;
}

.progress-step.active .step-circle {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.progress-step.completed .step-circle {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.step-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
  transition: color var(--transition-normal);
  display: block;

}

.progress-step.active .step-label {
  color: white;
  font-weight: 600;
}

.progress-line {
  height: 2px;
  background-color: var(--primary-dark);
  flex-grow: 1;
  /* margin: 0 var(--space-1); */
  position: relative;
  /* top: -26px; */
  z-index: 0;
  max-width: 100px;
  width: 24vw;
}

/* Buttons */
.btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: var(--text-md);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: white;
  color: var(--text-color);
  height: 40px;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--gray-300);
}

.logo-back-page {
  width: 284px;
  height: 129px;
  flex: none;
  min-height: unset !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }

  .profile-picture {
    width: 26vw;
    height: 26vw;
  }

  /* .sub-header-container {
    height: 106px;
    max-width: 100vw;
  } */

  .bloc-under-header {

    top: 147px !important;
    padding: 0 20px !important;
    max-width: 100vw;

  }

  .logo-back-page {
    width: auto;
    height: 57px;
  }

  .header {
    padding: 0 20px;
    max-width: 100vw;
  }

  .header-content {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .profile-section {
    width: 100%;
    justify-content: space-between;
  }

  .progress-container {
    padding: 0 var(--space-1);
  }

  .progress-line {
    max-width: 50px;
  }

  .radio-label {

    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .profile-info {
    flex-direction: column;
    text-align: center;
  }

  .logo-container {
    /* flex-direction: column; */
    text-align: center;
  }

  .progress-container {
    /* flex-direction: column; */
    /* gap: var(--space-2); */
  }

  /* .progress-line {
    width: 2px;
    height: 20px;
    margin: 0;
  } */

  .step-circle {
    margin-bottom: 0;
  }

  /* .progress-step {
    flex-direction: row;
    width: 100%;
    gap: var(--space-2);
  } */
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

.filled-btn {
  background: #BF0404 0% 0% no-repeat padding-box;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  color: white !important;
  cursor: pointer;
  height: 30px;
  text-decoration: none;
}

.academic-roles {
  font-family: Arial, sans-serif;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 20px 0;
  border-radius: 8px;
  width: 100%;
  margin: 0 auto;
}

.role-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}



input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
  width: 20px;
  height: 20px;
  background: #FDFDFA 0% 0% no-repeat padding-box;
  border: 1px solid #6E6D55;
}

/* Change border to red when selected */
/* input[type="radio"]:checked {
  border-color: #6E6D55;
  border: 1px solid #6E6D55;
} */

/* Inner dot (red when selected) */
/* input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #6E6D55;
  background: #6E6D55;

  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */

.radio-label {
  font-size: 16px;
  color: #333;
  font-family: 'Poppins';
  font-size: 14px;
}

.completion-check {
  width: 19px;
  height: 19px;
  /* max-width: 27px; */
  /* max-height: 27px; */
  overflow: hidden;
  border-radius: 50%;
  flex: none;
  display: none;
}

.completed .completion-check {
  display: block;
  /* Only shown when step has 'completed' class */
}

.btn-secondary {
  background-color: white;
  color: var(--text-color);
  height: 40px;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 28px;
  font-size: 14px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 1px;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border: 2px solid #BF0404;
  border-radius: 4px;
}

.custom-checkbox input:checked~.checkmark {
  background-color: #BF0404;
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked~.checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.upload-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  background: #FDFDFA 0% 0% no-repeat padding-box;
  border: 1px solid #A6A485;
  border-radius: 5px;
}

.upload-btn {
  width: 220px;
  height: 40px;
  background: #A6A485 0% 0% no-repeat padding-box;
  border-radius: 0px 5px 5px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins';
  color: white;
}

#file-input {
  display: none;
}

.document-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;

}

.document-list div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}


.document-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  padding: 20px;
}

.document-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.document-subheader {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.document-item:last-child {
  border-bottom: none;
}

.document-name-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-name {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.document-format {
  font-size: 12px;
  color: #999;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
}

.document-import {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
}

.document-import:hover {
  background-color: #f0f0f0;
}

.document-import-icon {
  margin-right: 10px;
  font-weight: bold;
  color: #4a90e2;
}

.document-import-text {
  font-size: 14px;
  color: #4a90e2;
}

#file-input {
  display: none;
}

.empty-state {
  color: #999;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

.pdf-icon {
  width: 26px;
  height: 34px;
  background-image: url(../assets/pdf.png);
  background-size: cover;
  border-radius: 2px;
  display: unset !important;
}

.document-list div {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 145px;
  gap: 5px;
}

.annee-blanche-container {
  width: 100%;
  border: 1px solid #A6A485;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  padding-bottom: 65px;
}

.btn-red {
  color: white !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 35px;
  box-sizing: border-box;
  padding: 0 20px;
  background: var(--primary-dark);
  font-family: 'Poppins';
  cursor: pointer;
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 10px 0px 0px 0px;
}

.btn-red div {
  color: white !important;
}

.form-group {
  margin-bottom: 20px !important;
}

input[type="radio"] {
  accent-color: #6E6D55;
}


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-box {
  background: white;
  border-radius: 8px;
  text-align: center;
  min-width: 300px;
  width: 462px;
  height: 315px;
  /* UI Properties */
  background: #FFFFFF 0% 0% no-repeat padding-box;
  border-radius: 11px;
}

.popup-actions {
  margin-top: 20px;
  height: 68px;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px -3px 16px #0000000F;
  border-radius: 0px 0px 20px 20px;
  display: flex;
  bottom: -80px;
  position: relative;
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
}

.popup-title {
  width: 100%;
  height: 60px;
  background: #BF0404 0% 0% no-repeat padding-box;
  box-shadow: 0px 6px 16px #0000000F;
  border-radius: 10px 10px 0px 0px;
  padding: 20px 32px;
  box-sizing: border-box;
  color: white;
  display: flex;
}

.cancel-button,
.confirm-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  cursor: pointer;
}

.cancel-button {
  width: 129px;
  height: 40px;
  /* UI Properties */
  background: #A6A485 0% 0% no-repeat padding-box;
  border-radius: 5px;
  color: white;
  font-family: 'Poppins';
  font-size: 14px;
}

.confirm-button {
  color: white;
  font-family: 'Poppins';
  font-size: 14px;
  width: 129px;
  height: 40px;
  /* UI Properties */
  background: #BF0404 0% 0% no-repeat padding-box;
  border-radius: 5px;
}

img#imageUser {
  border-radius: 77px;
}

.form-section-block {
  background-color: #fff;
  border: 1px solid #DADADA;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  position: relative;
  padding-bottom: 50px;
}

.form-section-block h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  box-shadow: 0px 5px 16px #00000012;
  padding: 15px;
  margin: -25px;
  margin-bottom: 10px;
}

.form-section-block h3 i {
  color: #a10d0d;
  margin-right: 8px;
  font-size: 18px;
}


.cycle-selection {
  display: flex;
  justify-content: space-between;
  padding: 19px 20px;
  background: #f8f8f8;
  border-bottom: 2px solid #a6a485;
  margin: 10px -25px;
  margin-bottom: 10px;
}


.cycle-option {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: #333;
  user-select: none;
}

.cycle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-check {
  position: absolute;
  top: 1px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #222;
  border-radius: 50%;
  transition: 0.2s;
}

.cycle-option input:checked~.custom-check {
  background-color: #b40202;
  border-color: #b40202;
}

.custom-check:after {
  content: "";
  position: absolute;
  display: none;
}

.cycle-option input:checked~.custom-check:after {
  display: block;
}

.cycle-option .custom-check:after {
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

aside {
  display: block;

}

.menu-responsive {
  width: 100vw;
  height: 40px;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 16px #00000029;
  display: none;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 32px;
  align-items: center;
}

.toggled-menu {
  display: none;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 55555555;
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  /* gap: 40px; */
  box-sizing: border-box;
  padding: 40px;

}

.close-menu {
  font-size: 25px;
  color: #60605e;
  align-self: end
}

.open-menu {
  width: 20px;
}

@media (max-width: 900px) {

  aside {
    display: none;
  }

  .menu-responsive {
    display: flex;
    /* position: fixed; */
    /* top: 16vh; */

    z-index: 33333;

  }

  .sub-header-container {
    max-height: fit-content;
  }

  .sub-header-content {
    /* height: 16vh;
     */
     height: 13vh;
  }

  .sub-header-content img {
    min-height: unset;
  }

  .logo-back-page {
    width: auto;
    height: 57px;
  }

  .profile-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

  }



  .main-content {
    left: 0;
    width: 95vw;
    margin: auto;
  }

  .step-label {
    display: none;
  }

  .step-circle {
    width: 45px;
    height: 45px;
    padding: 0;
    gap: 0;
  }

  .completion-check {
    display: none !important;
  }

  .completion-check img {
    display: none;
  }

  .cycle-selection {

    flex-wrap: wrap;
    gap: 18px;
  }

  .annee-blanche-container {


    flex-direction: column;
  }

  .annee-blanche-container div {
    width: 100% !important;
  }

  .profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .profile-content div {
    text-align: center;
  }
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}


.item-menu a {
  text-decoration: none;
  text-align: left;
  font: normal normal medium 15px/23px Poppins;
  letter-spacing: 0px;
  color: #2A2916;
}

.line-menu-resp {
  background: #ECEBE3;
  width: 100%;
  height: 1px;
  flex: none;
  margin: 0 20px;

}

.menu-content .item-menu {
  height: 45px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 20px;
  border-radius: 5px;
}

.active-resp {
  background-color: var(--primary-dark);
  color: white;
}

.active-resp a {
  color: white;
}

.logout {
  display: flex;
  align-items: center;
  gap: 10px;
}