/* Fix background scrolling */
body {
  background-attachment: fixed !important;
}

/* STYLES INVERSÉS */

/* Section Resume - Transparent BLANC */
#resume {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Section About Me - Transparent BLEU comme diplome.html */
#about-me {
  background-color: rgba(58, 124, 165, 0.12) !important;
}

/* Titres h3 - style diplome */
#about-me h3 {
  color: #3A7CA5;
  font-size: 1.5rem;
  margin: 40px 0 20px 0;
  font-family: 'Open Sans', sans-serif;
}

/* About Intro - style education-summary */
.about-intro {
  background: linear-gradient(135deg, rgba(58, 124, 165, 0.1), rgba(31, 78, 95, 0.05));
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #3A7CA5;
  margin: 20px 0 40px 0;
}

.about-intro p {
  margin: 0;
  line-height: 1.6;
}

/* Content Box - style description-box */
.content-box {
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.8), rgba(225, 235, 245, 0.8));
  border-left: 4px solid #3A7CA5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.content-box p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #2A2A2A;
}

.content-box p:last-child {
  margin-bottom: 0;
}

/* Quote Box - Style achievement-card */
.quote-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin: 20px 0;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
}

.quote-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(58, 124, 165, 0.2);
  border-color: #3A7CA5;
}

.quote-icon {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 15px;
}

.quote-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: #1F4E5F;
  margin: 10px 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.quote-author {
  font-weight: bold;
  color: #3A7CA5;
  margin: 10px 0 15px 0;
  font-style: normal;
  text-align: center;
}

.quote-explanation {
  margin: 0;
  line-height: 1.6;
  color: #666;
  font-size: 0.9rem;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Passions Grid - Style achievements-grid */
.passions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.passion-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
}

.passion-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(58, 124, 165, 0.2);
  border-color: #3A7CA5;
}

.passion-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.passion-item h4 {
  color: #1F4E5F;
  margin: 10px 0;
  font-size: 1.1rem;
}

.passion-item p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Boutons CV - Version Desktop */
.resume-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Style neon blanc-gris pour le cadre resume */
#resume {
  box-shadow: 0 0 15px rgba(200, 220, 240, 0.4), 
              0 0 25px rgba(200, 220, 240, 0.2),
              0 4px 12px rgba(0, 0, 0, 0.1),
              inset 0 0 10px rgba(200, 220, 240, 0.15);
  border: 1px solid rgba(200, 220, 240, 0.3);
  animation: neonGlow 2s ease-in-out infinite;
}

@keyframes neonGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(200, 220, 240, 0.4), 
                0 0 25px rgba(200, 220, 240, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 0 10px rgba(200, 220, 240, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(200, 220, 240, 0.5), 
                0 0 35px rgba(200, 220, 240, 0.3),
                0 6px 18px rgba(0, 0, 0, 0.15),
                inset 0 0 15px rgba(200, 220, 240, 0.2);
  }
}

.resume-buttons {
  gap: 10px;
  justify-content: center;
}

.btn-cv, .btn-recommendation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 24px !important;
  min-width: 200px;
  margin: 0 !important;
}

.cv-preview {
  margin-top: 20px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .passions-grid {
    grid-template-columns: 1fr;
  }

  .quote-box {
    padding: 20px 15px;
    margin: 15px 0;
  }

  .quote-text {
    font-size: 1rem;
  }

  .quote-explanation {
    font-size: 0.85rem;
  }

  .passion-icon {
    font-size: 2.5rem;
  }

  .content-box {
    padding: 15px;
  }

  .about-intro {
    padding: 20px;
  }

  #about-me h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
  }

  .resume-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .btn-cv, .btn-recommendation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 24px;
    min-width: 200px;
  }

  .cv-preview {
    zoom: 1.05;
    -moz-transform: scale(1);
    -moz-transform-origin: 0 0;
    width: 100%;
    height: 100%;
  }

  @media (max-width: 768px) {
    .resume-buttons {
      flex-direction: column;
      gap: 12px;
      align-items: stretch;
    }

    .btn-cv, .btn-recommendation {
      width: 100%;
    }
  }
}

@media (max-width: 480px) {
  .quote-box {
    padding: 15px 10px;
  }

  .quote-text {
    font-size: 0.95rem;
  }

  .quote-icon {
    font-size: 2.5rem;
  }

  .content-box {
    padding: 12px;
  }
}

/* Fix modal display */
.modal-recommendation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-recommendation .modal-content {
  position: relative;
  background: white;
  padding: 30px;
  padding-top: 50px;
  border-radius: 12px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-recommendation .close-btn {
  position: sticky;
  top: -25px;
  right: -10px;
  float: right;
  margin-top: -50px;
  margin-right: -10px;
  background: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #999;
  z-index: 10001;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-recommendation .close-btn:hover {
  color: #e74c3c;
}

/* Recommendation Letter Button Styling */
.btn-recommendation {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: 2px solid transparent;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-recommendation::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #f39c12, #e74c3c, #9b59b6, #3498db);
  border-radius: 8px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  animation: borderGlow 3s linear infinite;
  background-size: 200% 200%;
}

@keyframes borderGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-recommendation:hover::before {
  opacity: 1;
}

.btn-recommendation:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

