@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

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

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Section */
.section {
  padding: 3rem 0;
}

.border-top {
  border-top: 1px solid var(--border);
}

.hero {
  padding-top: 8rem;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Typography */
.title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.description {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--foreground);
  color: var(--background);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 2px solid var(--foreground);
}

.btn-secondary:hover {
  background-color: var(--foreground);
  color: var(--background);
}

.icon {
  width: 1rem;
  height: 1rem;
}

/* Photo */
.photo-container {
  display: none;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  align-items: center;
  transform: scale(1.2);
  object-fit: cover; /* évite la déformation */
}


.photo-frame {
  position: relative;
  border: 3px solid var(--foreground);
  padding: 0.25rem;
  background-color: var(--foreground);
  width: fit-content;
}

.photo-frame img {
  display: block;
  width: 240px;
  height: 300px;
  object-fit: cover;
  border: 1px solid #404040;
}

.corner {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--foreground);
}

.corner-tl {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: -6px;
  right: -6px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: -6px;
  left: -6px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
}

.skill-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

.skill-title {
  font-size: 1rem;
  font-weight: 700;
}

.skill-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Illustration */
.illustration-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration {
  width: 100%;
  max-width: 24rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border: 2px solid var(--border);
  text-decoration: none;
  color: var(--foreground);
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--foreground);
}

.card-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* PDF Preview */
.pdf-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pdf-frame {
  border: 2px solid var(--border);
  background-color: var(--muted);
  overflow: hidden;
}

.pdf-viewer {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  padding: 0.5rem 1rem;
  border: 2px solid var(--foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Responsive */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }

  .nav-container {
    padding: 0 2.5rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .title {
    font-size: 3.75rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .photo-container {
    display: flex;
  }

  .section {
    padding: 5rem 0;
  }

  .hero {
    padding-top: 10rem;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .menu-btn {
    display: block;
  }
}
