/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Couleurs - Thème Clair */
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #99f6e4;
  --primary-gradient: linear-gradient(135deg, #0d9488, #14b8a6);
  --bg: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 48px rgba(13, 148, 136, 0.12);
  --radius: 16px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 48px rgba(13, 148, 136, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
}

[data-theme="dark"] nav {
  background: rgba(15, 23, 42, 0.9);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
}

.brand-name {
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(30deg);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 60px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(13, 148, 136, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-text .badge {
  display: inline-block;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-text h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-text .typing {
  color: var(--primary);
  font-weight: 600;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  border-color: var(--primary);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.profile-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
}

.profile-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.2);
}

.status-dot {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  border: 4px solid var(--bg);
}

.pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.floating-badge i {
  color: var(--primary);
}

.experience-badge {
  top: -10px;
  right: -20px;
}

.projects-badge {
  bottom: 40px;
  left: -30px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ===== SKILLS ===== */
.skills {
  padding: 80px 0;
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.skill-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width 1.2s ease;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 148, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.1rem;
  transition: var(--transition);
  transform: translateY(20px);
}

.project-card:hover .project-links a {
  transform: translateY(0);
}

.project-links a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(0) scale(1.1);
}

.project-links a:nth-child(2) {
  transition-delay: 0.1s;
}

.project-info {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech span {
  background: var(--bg-secondary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== CONTACT ===== */
.contact {
  padding: 80px 0;
  background: var(--bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contact-info .section-header {
  text-align: left;
  margin: 0 0 32px 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item p {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-secondary);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .profile-wrapper {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 40px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .profile-wrapper {
    width: 220px;
    height: 220px;
  }

  .floating-badge {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .profile-wrapper {
    width: 180px;
    height: 180px;
  }
}
/* ===== LOGO IMAGE ===== */
.logo-img {
  width: 80px;
  height: 50px;
  /* border-radius: 12px; */
  /* object-fit: cover; */
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-img:hover {
  transform: rotate(-8deg) scale(1.05);
}
.logo-img2 {
  width: 160px;
  height: 100px;

  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-img2:hover {
  transform: rotate(-8deg) scale(1.05);
}
/* Pour le footer */
.footer-brand .logo-img2 {
  width: 160px;
  height: 100px;
  transition: transform 0.3s ease;
  object-fit: cover;
  margin-bottom: 8px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  align-items: center;
  /*centre les contenus du bouton*/
  align-content: center;
}
/* ===== CONTACT AMÉLIORÉ ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* Le conteneur du formulaire avec effet verre dépoli */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  position: relative;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.contact-form-wrapper:hover {
  border-color: var(--primary-light);
}

/* Style des champs de formulaire (Input) */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
}

/* Icônes à l'intérieur des champs */
.input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  transition: var(--transition);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px 14px 46px;
  /* Place pour l'icône à gauche */
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-secondary);
  color: var(--text);
}

.form-group textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
}

.form-group textarea + .input-wrapper i {
  top: 24px;
  /* Ajustement pour le textarea */
  transform: none;
}

/* Effet Focus ultra-propre */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.08);
}

.form-group input:focus + i,
.form-group textarea:focus + i {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

/* Bouton d'envoi amélioré */
.contact-form-wrapper .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 14px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

/* Message de succès */
.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: rgba(34, 197, 94, 0.05);
  border: 2px solid #22c55e;
  border-radius: 16px;
  color: #22c55e;
}

.success-message i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.success-message h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.success-message p {
  color: var(--text-secondary);
}

/* Illustration décorative à gauche du formulaire */
.contact-illustration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border);
  min-height: 350px;
}

.contact-illustration i {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0.8;
}

.contact-illustration h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-illustration p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 250px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-illustration {
    display: none;
    /* Masqué sur mobile pour gagner de la place */
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}
.btn-primary {
  /* ... vos styles existants ... */
  animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
  0% {
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
  }

  50% {
    box-shadow: 0 4px 40px rgba(13, 148, 136, 0.6);
  }

  100% {
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
  }
}
/* ===== MODAL CV ===== */
.cv-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.cv-modal.active {
  display: flex;
}

.cv-modal-content {
  background: var(--bg-card);
  width: 90%;
  max-width: 800px;
  height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cv-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.cv-modal-close:hover {
  color: var(--primary);
  transform: scale(1.2);
}

.cv-modal-header {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-modal-header h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.cv-modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.cv-modal-body {
  height: calc(90vh - 130px);
  overflow: hidden;
}

.cv-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cv-modal-footer {
  padding: 16px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .cv-modal-content {
    width: 95%;
    height: 90vh;
  }

  .cv-modal-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cv-modal-header p {
    margin: 0;
  }
}
/* ===== PANNEAU LATÉRAL CV (SPLIT VIEW) ===== */
.cv-panel {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 50%;
  height: 100vh;
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
}

.cv-panel.active {
  right: 0;
}

.cv-panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cv-panel-header {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cv-panel-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
}

.cv-panel-header p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.cv-panel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cv-panel-close {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.cv-panel-close:hover {
  color: var(--primary);
  transform: scale(1.2);
}

.cv-panel-body {
  flex: 1;
  overflow: hidden;
}

.cv-panel-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== RESPONSIVE MOBILE (PLEIN ÉCRAN) ===== */
@media (max-width: 768px) {
  .cv-panel {
    width: 100%;
    border-left: none;
    box-shadow: none;
  }
  .cv-panel-header {
    padding: 14px 16px;
  }
  .cv-panel-header h3 {
    font-size: 1rem;
  }
  .cv-panel-header p {
    font-size: 0.7rem;
  }
  .cv-panel-actions {
    gap: 6px;
  }
  .cv-panel-actions .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}
