/* cv/wrapper-styles.css */
/* Wrapper du CV — nav partagée (fil rouge vitrine + blog) */

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   NAV — identique en concept à la vitrine
   ============================================ */
.nav {
  background: #1a202c;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.22s ease;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: color 0.22s ease, background 0.22s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #667eea; background: rgba(102,126,234,0.15); }

.nav-link--external::after {
  content: ' ↗';
  font-size: 0.7em;
  opacity: 0.6;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Lang switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.45);
  padding: 0.2rem 0.3rem; border-radius: 4px;
  transition: color 0.22s ease;
}
.lang-btn.active { color: #667eea; }
.lang-btn:hover  { color: rgba(255,255,255,0.9); }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 0.7rem; }

/* Theme toggle */
.theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}
.theme-icon {
  position: absolute;
  font-size: 1rem;
  line-height: 1;
  color: rgba(255,255,255,0.75);
  transition: opacity 0.2s, transform 0.3s;
}
.theme-icon--light { opacity: 1; transform: translateY(0) rotate(0deg); }
.theme-icon--dark  { opacity: 0; transform: translateY(8px) rotate(-20deg); }
[data-theme="dark"] .theme-icon--light { opacity: 0; transform: translateY(-8px) rotate(20deg); }
[data-theme="dark"] .theme-icon--dark  { opacity: 1; transform: translateY(0) rotate(0deg); }

/* PDF button */
.pdf-btn {
  background: #667eea;
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.pdf-btn:hover { background: #4a6cf7; transform: translateY(-1px); }
.pdf-btn:active { transform: translateY(0); }
.pdf-btn.downloading { background: #28a745; }
.pdf-btn .icon { font-size: 1em; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #1a202c;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0.75rem 2rem;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.5rem 0.5rem; border-radius: 6px;
}
.mobile-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mobile-link.active { color: #667eea; background: rgba(102,126,234,0.15); }

/* ============================================
   CV iframe
   ============================================ */
#cv-container {
  flex: 1;
  width: 100%;
  background: #f5f5f5;
  position: relative;
}

#cv-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: white;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-inner { padding: 0 1.25rem; }
}

/* Print */
@media print {
  .nav, .mobile-menu { display: none; }
  body { overflow: visible; }
  #cv-container { height: 100vh; }
}
