:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --rouge: #d65151;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
}

.hidden {
  display: none !important;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
}

.avatar-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.avatar-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rouge);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.split-left,
.split-right {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-left {
  background: #000;
  color: #fff;
  border-right: 1px solid #fff;
  padding-right: 120px;
  align-items: flex-end;
  text-align: right;
}

.split-right {
  background: #fff;
  color: #000;
  padding-left: 120px;
}

.split-header {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 40px;
  opacity: 0.6;
}

h1 {
  font-size: 56px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.1;
}

.subtitle {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 16px;
  opacity: 0.7;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  margin-bottom: 40px;
  transition: opacity 0.2s;
}

.github-link:hover {
  opacity: 1;
}

.description {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}

.skills {
  list-style: none;
  /*margin-bottom: 40px;*/
}

.skills li {
  /* padding: 12px 0;*/
  /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
  font-size: 14px;
  letter-spacing: 1px;
}

.split-right .skills li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Détails dépliables pour les compétences */
.skill-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.skill-item.highlight-item .skill-title {
  font-weight: 500;
}

.skill-title {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  letter-spacing: 1px;
}

.skill-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  opacity: 0;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  margin-left: 5px;
}

.skill-item.open .skill-details {
  max-height: 1000px;
  opacity: 1;
  padding-top: 12px;
  padding-bottom: 12px;
}

.detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.detail-content {
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.9;
}

.detail-stats {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-top: 10px;
  font-style: normal;
}

.skill-item.highlight-item .skill-details {
  border-left-color: #fff;
}

.skill-item.projet-item .skill-title {
  font-weight: 500;
}

.skill-item.projet-item .skill-details {
  max-height: 0;
  border-left-color: #fff;
}

.skill-item.projet-item.open .skill-details {
  max-height: 1200px;
}

.skill-item.formation-item .skill-title {
  /*font-style: italic;*/
  opacity: 1;
}

.skill-item.formation-item .skill-details {
  max-height: 0;
}

.skill-item.formation-item.open .skill-details {
  max-height: 1000px;
}

.detail-content strong {
  font-weight: 500;
  opacity: 1;
}

.detail-content em {
  font-style: italic;
  opacity: 0.7;
  font-size: 11px;
}

.formation-blocs {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bloc-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 500;
}

.bloc-title:first-child {
  margin-top: 0;
}

.bloc-content {
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.8;
  padding-left: 10px;
}

.split-right .skill-title {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.split-right .skill-details {
  border-left-color: rgba(0, 0, 0, 0.3);
}

.split-right .formation-blocs {
  border-top-color: rgba(0, 0, 0, 0.2);
}

.cta {
  display: inline-block;
  padding: 16px 40px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-top: 40px;
  width: 250px;
  text-align: center;
}

.cta:hover {
  background: #fff;
  color: #000;
}

.split-right .cta {
  border-color: #000;
  color: #000;
}

.split-right .cta:hover {
  background: #000;
  color: #fff;
}

.cta-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.cta-disabled:hover {
  background: transparent;
  color: #000;
  transform: none;
}

.cta-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: #000;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.cta-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #000;
}

.cta-disabled:hover .cta-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Section Portfolio */
.portfolio-section {
  background: #fafafa;
  padding: 80px 40px;
  border-top: 1px solid #e0e0e0;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.project-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  padding: 30px;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card.flagship {
  background: #000;
  color: #fff;
  border-color: #000;
}

.project-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
}

.project-tech {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  opacity: 0.7;
  margin-bottom: 20px;
}

.project-features {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.project-features li {
  font-size: 13px;
  padding: 2px 0;
  margin: 0;
  opacity: 0.8;
  /*border-bottom: 1px solid rgba(0, 0, 0, 0.05);*/
}

.project-card.flagship .project-features li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.project-features li::before {
  content: "—";
  margin-right: 10px;
  opacity: 0.5;
}

.project-link {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
  transition: opacity 0.3s ease;
}

.project-link:hover {
  opacity: 0.7;
}

.project-card .cta {
  border-color: #000;
  color: #000;
}

.project-card .cta:hover {
  background: #000;
  color: #fff;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 48px;
  font-weight: 200;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
}

footer {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  background: #dddddd;
  background: var(--rouge);
}

footer a {
  color: #000;
  text-decoration: none;
  margin: 0;
}

footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.separator {
  opacity: 0.3;
}

.copyright {
  opacity: 1;
}

@media (max-width: 968px) {
  .container {
    grid-template-columns: 1fr;
  }

  .avatar-container {
    position: static;
    transform: none;
    text-align: center;
    padding: 40px 0;
    background: #fff;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .split-left {
    border-right: none;
    border-bottom: 1px solid #fff;
    padding-right: 60px;
    align-items: flex-start;
    text-align: left;
  }

  .split-right {
    padding-left: 60px;
  }

  h1 {
    font-size: 42px;
  }

  .skill-details {
    padding-left: 10px;
    margin-left: 3px;
  }

  .skill-item.open .skill-details {
    max-height: 1000px;
  }

  .skill-item.projet-item.open .skill-details {
    max-height: 1200px;
  }

  .skill-item.formation-item.open .skill-details {
    max-height: 1000px;
  }

  .portfolio-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-value {
    font-size: 36px;
  }

}

.cache {
  display: none;
}