/* Container principal */
.profil-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;

  /* Effet verre Apple */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  min-width: 320px;
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;

  /* Cacher la barre de scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* Ombres multiples */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);

  /* Animation */
  opacity: 0;
  animation: popInCentered 0.8s ease-out 0.2s both;
}

.profil-container::-webkit-scrollbar {
  display: none;
}

.profil-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.profil-title {
  font-family: var(--display-font);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s both;
}

.profil-subtitle-main {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.2s both;
}

/* Layout principal */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  text-align: left;
}

/* Section formulaire */
.contact-form-section {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.4s both;
}

.section-title {
  font-family: var(--display-font);
  font-size: 1.5rem;
  color: #4ecdc4;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
  text-align: center;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4ecdc4;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #4ecdc4;
  box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-select option {
  background: #2d2d4f;
  color: white;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
  border: none;
  border-radius: 15px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
  background: linear-gradient(135deg, #45b7d1 0%, #4ecdc4 100%);
}

/* Section informations */
.contact-info-section {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.6s both;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-icon {
  font-size: 1.5rem;
  padding: 0.5rem;
  background: rgba(78, 205, 196, 0.2);
  border-radius: 12px;
  min-width: 3rem;
  text-align: center;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-family: var(--display-font);
  color: #4ecdc4;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.contact-value {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value:hover {
  color: #4ecdc4;
}

.contact-sub {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

.response-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.response-title {
  font-family: var(--display-font);
  color: #feca57;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.response-text {
  line-height: 1.6;
  opacity: 0.9;
}

.highlight {
  color: #feca57;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(254, 202, 87, 0.3);
}

/* Navigation */
.back-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.8s both;
}

.nav-btn {
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.nav-btn.primary {
  background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.nav-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-btn:hover {
  transform: translateY(-2px);
}

.nav-btn.primary:hover {
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.nav-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Bouton Télécharger mon CV */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  padding: 0.9rem 1.2rem;
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.2px;

  background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.38);
}

/* Variante “fantôme” si tu veux un style secondaire */
.download-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.download-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Petite pastille icône (SVG mask) */
.download-btn__icon {
  width: 18px;
  height: 18px;
  background: #fff;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"><path d="M5 20h14v-2H5v2ZM12 2v10.586l3.293-3.293 1.414 1.414L12 16.414l-4.707-4.707 1.414-1.414L11 12.586V2h1Z"/></svg>')
    no-repeat center / contain;
}

.download-btn__icon.is-eye {
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"><path d="M12 4.5c-5 0-9.27 3.11-11 7.5 1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-7.5a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/></svg>')
    no-repeat center / contain;
}

/* Placement sympa dans la colonne droite */
.cv-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Animations */
@keyframes popInCentered {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .profil-container {
    padding: 1.5rem;
    width: 95%;
  }

  .profil-title {
    font-size: 2rem;
  }

  .contact-form,
  .contact-card {
    padding: 1.5rem;
  }

  .back-navigation {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .profil-container {
    padding: 1rem;
  }

  .profil-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .contact-form,
  .contact-card,
  .response-info {
    padding: 1rem;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
  }

  .contact-icon {
    align-self: center;
  }
  .download-btn {
    width: 100%;
  }
  .cv-actions {
    gap: 0.6rem;
  }
}
