/* Styles spécifiques à la page des réalisations */
#realisations-hero {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--glass-background);
  border-radius: 10px;
  margin-bottom: 4rem;
}

#realisations-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

#realisations-grid {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
}

.realisation-card {
  background: var(--glass-background);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
}

.realisation-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.realisation-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.realisation-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.realisation-content h3 {
  font-size: 2.5rem; /* Réduit de 3rem à 2.5rem pour les grands écrans */
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.realisation-content .gradient-button {
  margin-top: 1rem;
  width: 100%;
  max-width: 250px;
}

.realisation-details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 2rem; /* Réduit de 2.2rem à 2rem */
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.section-title i {
  margin-right: 0.5rem;
  font-size: 1.8rem; /* Réduit de 2rem à 1.8rem */
}

.speech-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.speech-bubble:after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  border-top: 0;
  margin-top: -15px;
}

.speech-bubble p {
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.2rem; /* Réduit de 1.4rem à 1.2rem pour les grands écrans */
}

.feature-list {
  list-style-type: none;
  padding-left: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  font-size: 1.2rem; /* Réduit de 1.4rem à 1.2rem pour les grands écrans */
}

.feature-list li:hover {
  transform: translateX(10px);
}

.feature-list li i {
  margin-right: 1rem;
  color: var(--accent-pink);
  font-size: 1.2rem;
}

.demande,
.reponse {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.demande h4,
.reponse h4 {
  font-size: 2rem; /* Réduit de 2.2rem à 2rem */
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.demande p,
.reponse p {
  font-size: 1.2rem; /* Réduit de 1.4rem à 1.2rem pour les grands écrans */
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.reponse ul {
  list-style-type: none;
  padding-left: 0;
}

.reponse ul li {
  font-size: 1.2rem; /* Réduit de 1.4rem à 1.2rem pour les grands écrans */
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.reponse ul li::before {
  content: "\2022";
  color: var(--accent-purple);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.reponse ul li:nth-child(1) {
  animation-delay: 0.1s;
}
.reponse ul li:nth-child(2) {
  animation-delay: 0.2s;
}
.reponse ul li:nth-child(3) {
  animation-delay: 0.3s;
}
.reponse ul li:nth-child(4) {
  animation-delay: 0.4s;
}
.reponse ul li:nth-child(5) {
  animation-delay: 0.5s;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 0;
}

.gradient-button {
  position: relative;
  padding: 16px 32px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.gradient-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(90deg, #ff1b7b, #9333ff, #3366ff, #ff1b7b, #9333ff, #3366ff, #ff1b7b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
  .realisation-content .gradient-button {
    font-size: 16px;
    padding: 12px 24px;
  }
  .gradient-button {
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
    max-width: 250px;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.gradient-button::before {
  animation: gradientMove 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #realisations-hero {
    padding: 4rem 1rem;
  }

  #realisations-hero h1 {
    font-size: 2.5rem;
  }

  .gradient-text {
    font-size: 1.4rem;
  }

  #realisations-grid {
    padding: 3rem 1rem;
  }

  .realisation-card {
    max-width: 100%;
  }

  .realisation-content h3 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .demande h4,
  .reponse h4 {
    font-size: 1.8rem;
  }

  .gradient-button {
    padding: 14px 28px;
    font-size: 16px;
    min-width: 180px;
  }
  .speech-bubble p,
  .feature-list li,
  .demande p,
  .reponse p,
  .reponse ul li {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #realisations-hero {
    padding: 3rem 1rem;
  }

  #realisations-hero h1 {
    font-size: 2rem;
  }

  .gradient-text {
    font-size: 1.2rem;
  }

  .realisation-content h3 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .demande h4,
  .reponse h4 {
    font-size: 1.6rem;
  }

  .demande p,
  .reponse p,
  .reponse ul li,
  .feature-list li,
  .speech-bubble p {
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .gradient-button {
    padding: 12px 24px;
    font-size: 16px;
    width: auto;
    min-width: 200px;
    max-width: 100%;
  }
  .button-container {
    padding: 1rem 20px;
  }
  .feature-list li {
    display: block; /* Change to block for better wrapping */
    margin-bottom: 1rem;
  }

  .feature-list li i {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
  }
}

/* Ajustements pour le thème clair */
body.light-theme .realisation-details {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .speech-bubble {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .speech-bubble:after {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .section-title {
  color: var(--accent-purple);
}

body.light-theme .feature-list li i {
  color: var(--accent-pink);
}

