/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #ffe0ec, #7bd4fd);
  color: #333;
  line-height: 1.6;
}

/* Container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to right, rgba(85, 173, 255, 0.8), rgba(232, 115, 255, 0.8));
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to left, rgba(103, 181, 255, 0.8), rgba(240, 167, 255, 0.8));
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  font-size: 0.95rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: bold;
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar a {
  text-decoration: none;
  font-weight: bold;
  color: white;
  background: linear-gradient(to right, #00e0ff, #cc99ff);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: transform 0.2s;
}

.navbar a:hover {
  transform: scale(1.05);
}

.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Main section */
.main-section {
  min-height: calc(100vh - 120px); /* approx header + footer height */
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1px; /* à adapter selon la hauteur réelle du header */
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Hero content */
.hero-content {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom right, #ffe0ec, #d0f0ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: inset 0 -100px 200px rgba(0, 17, 255, 0.15);
  /*box-shadow: 0 10px 20px rgba(0,0,0,0.05); */
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  color: #333;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  color: #444;
  max-width: 600px;
}

/* Texte devant */
.hero-text {
  position: relative;
  z-index: 1;
  color: #333;
  text-align: center;
  padding: 2rem;
}


/* Content sections */
.content-section {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 80px; /* espace sous le hero */
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.content-section h2 {
  margin-bottom: 1rem;
  color: #400053;
  font-size: 2rem;
}

.content-left, .content-right {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 800px;
  margin-top: 60px;
}

.content-left {
  margin-left: 15vw;
  margin-right: auto;
}

.content-right {
  margin-right: 15vw;
  margin-left: auto;
}


blockquote {
  font-style: italic;
  padding: 1rem;
  background: #e6f2ff;
  border-left: 5px solid #99c;
  border-radius: 10px;
}

/* Image */
.img-example {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* Arrière-plan d'equalizer */
.equalizer-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.equalizer-bg .bar {
  width: 6px;
  background: linear-gradient(to top, #cc99ff, #00e0ff);
  border-radius: 4px;
  transition: height 0.1s linear;
  height: 90%;
  opacity: 0.8;
  box-shadow:
      0 0 8px rgba(204, 153, 255, 0.6),
      0 0 12px rgba(0, 224, 255, 0.5),
      0 0 18px rgba(0, 224, 255, 0.3);
}




.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Apparition verticale (centrée) */
.scroll-animate.fade-up {
  transform: translateY(40px);
}
.scroll-animate.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Apparition depuis la gauche */
.scroll-animate.slide-left {
  transform: translateX(-60px);
}
.scroll-animate.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Apparition depuis la droite */
.scroll-animate.slide-right {
  transform: translateX(60px);
}
.scroll-animate.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.table-highlight {
  padding: 60px 40px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.table-col {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dégradé autour */
.table-col::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  background: linear-gradient(135deg, #ff8ae2, #82e9ff, #d7b0ff);
  z-index: -1;
  border-radius: 18px;
}

.table-col:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}


.impact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
}

.impact-text {
  max-width: 900px;
  width: 100%;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: #fff;
  color: #5c007a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  border: 5px solid transparent;
  background-clip: padding-box;
  position: relative;
}

/* Dégradé de bordure externe */
.impact-text::before {
  content: '';
  position: absolute;
  top: -5px; left: -5px; right: -5px; bottom: -5px;
  background: linear-gradient(90deg, #ff8ae2, #82e9ff, #d7b0ff);
  z-index: -1;
  border-radius: 22px;
}


/*Page contact*/

.contact-section {
  max-width: 800px;
  margin: 100px auto 60px auto; /* top | right | bottom | left */
  padding: 60px 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #5c007a;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #ff8ae2;
  outline: none;
}

.button {
  align-self: center;
  padding: 12px 25px;
  background: linear-gradient(135deg, #ff8ae2, #82e9ff);
  color: #5c007a;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: scale(1.05);
}


/*Page envoi*/

.contact-confirmation {
  max-width: 800px;
  margin: 100px auto 80px auto;
  padding: 50px 30px;
  border-radius: 20px;
  background: #fff5ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-confirmation h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #5c007a;
}

.contact-confirmation p {
  font-size: 1.2rem;
  color: #444;
}


/*Page pro*/

.gradation-section {
  max-width: 1000px;
  margin: 100px auto;
  padding: 60px 40px;
  background: #fafaff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.stacked-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.stacked-item {
  padding: 30px 40px;
  border-radius: 25px;
  background: #ffffff;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Dégradé en bordure */
.stacked-item::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, #aee, #eaf, #eef);
}

/* Hover effet */
.stacked-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Indentation progressive */
.stacked-item:nth-child(2) { margin-left: 20px; }
.stacked-item:nth-child(3) { margin-left: 40px; }
.stacked-item:nth-child(4) { margin-left: 60px; }
.stacked-item:nth-child(5) { margin-left: 80px; }

/* Responsive */
@media (max-width: 768px) {
  .stacked-item:nth-child(n) { margin-left: 0; }
}



.image-gallery {
  max-width: 1100px;
  margin: 100px auto;
  padding: 60px 40px;
  border-radius: 24px;
  background: #fafaff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.image-gallery h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #444;
}

.image-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.image-wrapper img {
  width: 300px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Cas spécial : une seule image → la forcer à s'élargir */
.image-wrapper:only-child img,
.image-wrapper img:only-child {
  width: 100%;
  max-width: 100%;
}

.image-wrapper img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}




/* Responsive */
@media screen and (max-width: 666px) {
  .navbar a {
      display: none;
  }
  .burger {
      display: block;
  }
  .navbar.open a {
      display: block;
      margin: 0.5rem 0;
      background: #99ccff;
  }

  .container {
      flex-direction: column;
      align-items: flex-start;
  }

  .content-section {
    margin-top: 40px;
  }
}
