body {
    font-family: Bahnschrift SemiBold, sans-serif;
    color: black;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #DBE2EF;
}

.navbar {
    position: sticky;
    top: 0;
    font-family: Bahnschrift SemiBold, sans-serif;
    width: 270px;
    height: 100vh;
    background-color: #c1bd9a;
    padding: 40px 100px;
    box-sizing: border-box;
    border-right: 1px solid var(--color-border-hr);
    box-shadow: 0 3px 9px var(--color-shadow);
    border-radius: 10px;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    position: absolute;
    transition: width 0.4s ease;
}

.nav-links {
    width: 100%;
    height: 100%;
    padding: 100px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.window {
  position: absolute;
  background: #F9F7F7;
  border-radius: 4px;
  border-width: 20px;
  border: solid 4px #728f9e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 40%;
  min-height: 70%;
  top: 100px;
  left: 300px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease-out;

}

.window.hidden {
  display: none;
}

.window.opening {
    transform: scale(1);
    opacity: 1;
}

.window.pre-open {
  transform: scale(0.8);
  opacity: 0;
}

.window.closing {
  transform: scale(0.4);
  opacity: 0;
}

.fixed-window {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: absolute;
  min-width: 40%;
  min-height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: default;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #93B5C6;
  border-bottom: solid 3px #728f9e;
  padding: 8px 12px;
  font-weight: bold;
  cursor: grab;
  color: white;
  text-shadow: #728f9e 0.03em 0.03em 0.05em;
  font-size: 28px;
}

.fixed-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #93B5C6;
  border-bottom: solid 3px #728f9e;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 28px;
  color: white;
  text-shadow: #728f9e 0.03em 0.03em 0.05em;
}

.window-content {
  padding: 10px;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: white;
  text-shadow: #728f9e 0.05em 0.05em 0.05em;
  font-size: 24px;
  transition: transform 0.15s ease;
}

.close-btn:hover {
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 20px;
  position: relative;
  min-height: 400px;
}

.logo-wrap{
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 8px;             
}

.logo {
  grid-column: 2;
  grid-row: 2;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #728f9e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.logo-caption{
  font-size: 18px;
  color: #112D4E;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 10px;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #93B5C6;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #728f9e;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-top: 5px;
}

.cv-download-btn:hover {
  background: #728f9e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.cv-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

.logo:hover {
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    color: #112D4E;
    transition: transform 0.15s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

.nav-item:hover {
  transform: scale(1.1);
}

.left-top       { grid-column: 1; grid-row: 1; }
.left-bottom    { grid-column: 1; grid-row: 3; }
.right-top      { grid-column: 3; grid-row: 1; }
.right-bottom   { grid-column: 3; grid-row: 3; }
.bottom-center  { grid-column: 2; grid-row: 3; }

.nav-item img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(14%) saturate(1200%) hue-rotate(180deg);
}

.nav-item span {
  margin-top: 5px;
  font-size: 18px;
}

.icon {
  width: 50px;
  height: 50px;
  fill: #112D4E;
  display: block;
  transition: fill 0.25s ease;
}

.nav-item:hover .icon {
  fill: #112D4E;
}

.nav-link-par a,
.nav-link-comp a,
.nav-link-proj a,
.nav-link-veil a,
.nav-link-cont a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    line-height: 24px;  
    box-sizing: border-box;
    color: #112D4E;
}

.nav-link-par, .nav-link-comp, .nav-link-proj, .nav-link-cont, .nav-link-veil { 
    display: contents; 
}

.nav-link-par a:hover,
.nav-link-comp a:hover,
.nav-link-proj a:hover,
.nav-link-veil a:hover,
.nav-link-cont a:hover {
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

.nav-link-par a:visited, .nav-link-comp a:visited, .nav-link-proj a:visited, .nav-link-veil a:visited, .nav-link-cont a:visited {
  color: #112D4E;
}

.dragging {
  cursor: grabbing !important;
}

/* Projects Content Styles */
.projects-content {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(100% - 40px);
}

.projects-section {
  margin-bottom: 40px;
}

.projects-section:last-child {
  margin-bottom: 0;
}

.section-title {
  color: #112D4E;
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #93B5C6;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: white;
  border: 3px solid #728f9e;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px solid #93B5C6;
}

.project-card h3 {
  color: #112D4E;
  font-size: 20px;
  margin: 0 0 10px 0;
  text-align: center;
}

.project-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 15px 0;
  text-align: center;
}

.project-tech {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.tech-label {
  color: #112D4E;
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.tech-items {
  color: #666;
  font-size: 11px;
  font-style: italic;
  display: block;
}

/* Skills Content Styles */
.skills-content {
  padding: 25px;
  overflow-y: auto;
  max-height: calc(100% - 40px);
}

.skills-section {
  margin-bottom: 35px;
}

.skills-section:last-child {
  margin-bottom: 0;
}

.skills-category {
  color: #112D4E;
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid #93B5C6;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  color: #112D4E;
  font-size: 16px;
  font-weight: 600;
}

.skill-level {
  color: #666;
  font-size: 13px;
  font-style: italic;
}

.skill-bar {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #93B5C6 0%, #728f9e 100%);
  border-radius: 10px;
  transition: width 0.8s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Timeline Content Styles */
.timeline-content {
  padding: 30px 40px;
  overflow-y: auto;
  max-height: calc(100% - 40px);
}

.parcours-section {
  margin-bottom: 50px;
}

.parcours-section:last-child {
  margin-bottom: 0;
}

.parcours-section-title {
  color: #112D4E;
  font-size: 26px;
  margin: 0 0 25px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #93B5C6;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #93B5C6;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #728f9e;
  border: 3px solid #93B5C6;
  box-shadow: 0 0 0 4px #F9F7F7;
  z-index: 1;
}

.timeline-content-box {
  background: white;
  border: 2px solid #93B5C6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content-box:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-date {
  display: inline-block;
  background: #93B5C6;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-title {
  color: #112D4E;
  font-size: 20px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.timeline-institution {
  color: #728f9e;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-description {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Certifications Styles */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.certification-card {
  background: white;
  border: 3px solid #728f9e;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.certification-icon {
  width: 60px;
  height: 60px;
  fill: #93B5C6;
  margin-bottom: 15px;
}

.certification-name {
  color: #112D4E;
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.certification-org {
  color: #728f9e;
  font-size: 14px;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.certification-date {
  color: #666;
  font-size: 13px;
  margin: 0;
  font-style: italic;
}

/* Contact Content Styles */
.contact-content {
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.contact-card {
  background: white;
  border: 3px solid #728f9e;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-title {
  color: #112D4E;
  font-size: 28px;
  margin: 0 0 10px 0;
  text-align: center;
}

.contact-subtitle {
  color: #666;
  font-size: 15px;
  text-align: center;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F9F7F7;
  border-radius: 8px;
  border: 2px solid #DBE2EF;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: #93B5C6;
}

.contact-icon {
  width: 40px;
  height: 40px;
  fill: #728f9e;
  flex-shrink: 0;
}

.contact-details {
  flex: 1;
}

.contact-label {
  color: #728f9e;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.contact-link {
  color: #112D4E;
  font-size: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #93B5C6;
  text-decoration: underline;
}

/* Veille Technologique Styles */
.veille-content {
  padding: 30px;
  overflow-y: auto;
  max-height: calc(100% - 40px);
}

.veille-title {
  color: #112D4E;
  font-size: 28px;
  margin: 0 0 10px 0;
  text-align: center;
}

.veille-subtitle {
  color: #666;
  font-size: 15px;
  text-align: center;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.veille-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.veille-card {
  background: white;
  border: 3px solid #728f9e;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.veille-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.veille-card-header {
  background: linear-gradient(135deg, #93B5C6 0%, #728f9e 100%);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.veille-icon {
  width: 40px;
  height: 40px;
  fill: white;
  flex-shrink: 0;
}

.veille-card-title {
  color: white;
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.veille-card-content {
  padding: 25px;
  min-height: 120px;
}

.veille-placeholder {
  color: #999;
  font-size: 14px;
  font-style: italic;
  margin: 0;
  text-align: center;
}