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

/* make sure HTML hidden actually hides things */
[hidden] {
  display: none !important;
}

/* ========== Global ========== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #05060a;   /* deep black with a hint of blue */
  color: #f0f4ff;
  padding: 20px 0;       /* vertical breathing room */
}

/* shared centered layout for all pages */
.container {
  max-width: 960px;
  margin: 0 auto;        /* centers horizontally */
  padding: 0 24px;       /* side padding */
}

/* ========== Navbar ========== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(80, 120, 255, 0.25);
}

nav .logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

nav .links a {
  margin-left: 20px;
  text-decoration: none;
  color: #cfd8ff;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

nav .links a:hover {
  color: #7aa2ff;
  opacity: 0.9;
}

/* ========== Language Toggle (EN / FR) ========== */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(80, 120, 255, 0.4);
  background: #05060a;
  color: #cfd8ff;
  padding: 4px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lang-btn.active {
  background: #7aa2ff;
  color: #05060a;
  box-shadow: 0 0 12px rgba(80, 120, 255, 0.6);
}

.lang-btn:hover:not(.active) {
  background: #111422;
}

/* ========== Typography ========== */
h1, h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

p {
  color: #d4d9f5;
  margin-bottom: 16px;
}

/* ========== About Section ========== */
.about {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 32px;
}

/* left side = stack of cards */
.about-main {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* reusable card style */
.about-card {
  background: #090b12;
  border-radius: 16px;
  border: 1px solid rgba(80, 120, 255, 0.35);
  box-shadow: 0 0 18px rgba(80, 120, 255, 0.25);
  padding: 18px 24px 20px 20px;
}


.about-photo {
  flex: 0 0 280px;       /* fixed column for your photo */
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 32px rgba(80, 120, 255, 0.5);
}
/* ========== Projects Page ========== */
.projects {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;             /* space between project cards */
}

/* each project = one card with text left, logo right */
.project-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;

  background: #090b12;
  border-radius: 16px;
  border: 1px solid rgba(80, 120, 255, 0.35);
  box-shadow: 0 0 18px rgba(80, 120, 255, 0.25);
  padding: 18px 20px 20px;
}

.project-text {
  flex: 1;
  max-width: 560px;
}

.project-text h2 {
  margin-bottom: 8px;
}

.project-logo {
  flex: 0 0 200px;         /* you can bump this a bit too if you want */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;               /* was 12px – more space between the two logos */
}


.project-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #05060a;
  padding: 10px;
  box-shadow: 0 0 26px rgba(80, 120, 255, 0.45);
}

/* mobile: stack text + logo vertically */
@media (max-width: 700px) {
  .project-item {
    flex-direction: column-reverse;
    align-items: center;
  }

  .project-text {
    max-width: 100%;
  }

  .project-logo {
    flex: 0 0 auto;
    width: 140px;
  }

  .project-logo img {
    width: 100%;
  }
}


/* ========== Blog Page (collapsible tabs) ========== */
.blog {
  margin-top: 32px;
  max-width: 720px;      /* narrower text block */
  margin-left: auto;
  margin-right: auto;
}

/* single blog entry as an accordion */
.blog-entry {
  margin-top: 24px;
  background: #090b12;
  border-radius: 12px;
  border: 1px solid rgba(80, 120, 255, 0.35);
  box-shadow: 0 0 18px rgba(80, 120, 255, 0.25);
  overflow: hidden;
}

/* hide default marker */
.blog-entry summary {
  list-style: none;
}

.blog-entry summary::-webkit-details-marker {
  display: none;
}

/* clickable header */
.blog-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.blog-entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0f4ff;
}

.blog-entry-date {
  font-size: 0.85rem;
  color: #9aa3d1;
}

/* body of blog post */
.blog-entry-body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(80, 120, 255, 0.35);
  margin-top: 4px;
}

.blog-entry-body p {
  margin-bottom: 14px;
}

.blog-entry-body ol {
  margin-left: 24px;
  margin-top: 8px;
}

.blog-entry-body li {
  margin-bottom: 8px;
}

/* hover / open states */
.blog-entry:not([open]) .blog-entry-header:hover {
  background: #111422;
}

.blog-entry[open] .blog-entry-header {
  background: #111422;
}

/* ========== Lock Overlay (per-page code screen) ========== */
.lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lock-card {
  background: #090b12;
  border-radius: 16px;
  border: 1px solid rgba(80, 120, 255, 0.4);
  box-shadow: 0 0 30px rgba(80, 120, 255, 0.7);
  padding: 24px 22px 20px;
  max-width: 360px;
  width: 100%;
}

.lock-card h1 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.lock-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.lock-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(80, 120, 255, 0.5);
  background: #05060a;
  color: #f0f4ff;
  outline: none;
  margin-bottom: 10px;
}

.lock-input:focus {
  box-shadow: 0 0 12px rgba(80, 120, 255, 0.7);
}

.lock-button {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 8px 0;
  background: #7aa2ff;
  color: #05060a;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.lock-button:hover {
  background: #9bb6ff;
  box-shadow: 0 0 16px rgba(80, 120, 255, 0.7);
}

.lock-error {
  font-size: 0.85rem;
  color: #ff6b81;
  min-height: 1.2em;
}

.lock-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9aa3d1;
  opacity: 0.9;
}

/* ========== Responsive (mobile) ========== */
@media (max-width: 700px) {
  .about,
  .project-item {
    flex-direction: column-reverse;
    align-items: center;
  }

  .about-text,
  .project-text {
    max-width: 100%;
  }

  .about-photo,
  .project-logo {
    margin-bottom: 12px;
  }

  .about-photo {
    flex: 0 0 auto;
  }

  .project-logo {
    flex: 0 0 auto;
  }

  .about-photo img {
    width: 230px;
  }

  .project-logo img {
    width: 140px;
  }

  .blog {
    max-width: 100%;
  }

  .blog-entry-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== CV Page ========== */
.cv {
  margin-top: 32px;
  max-width: 720px;     /* narrow column like your screenshot */
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-card ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.cv-card ul li {
  margin-bottom: 6px;
}

nav .logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;   /* add this line */
}

/* CV header row: title + icon */
.cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cv-download img {
  width: 40px;
  height: auto;
  display: block;
}

/* Skills layout */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 12px;
}

.skills-column {
  min-width: 180px;
}

.skills-title {
  font-weight: 600;
  color: #2bb7ff;   /* teal-ish section headings */
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skills-icon {
  font-size: 16px;
}

