/* Section 5: Études */
.msv-etudes {
  width: 100%;
  padding: 80px 0 60px 0;
  background: #f6f8f8;
}
.msv-etudes-intro {
  text-align: center;
  margin-bottom: 60px;
  width: calc(100% - 40px);
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
}
.msv-etudes-title {
  font-size: 2.6rem;
  font-weight: 400;
  color: #005258;
  margin-bottom: 24px;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.msv-etudes-subtitle {
  font-size: 1.6rem;
  color: #1F9192;
  margin-bottom: 32px;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.msv-etudes-desc {
  font-size: 1.1rem;
  color: #000;
  line-height: 1.7;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 0 auto;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.msv-etudes-flower {
  position: relative;
  width: 700px;
  height: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msv-etudes-flower-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  width: calc(260px - 80px);
  height: calc(260px - 80px);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 3;
}
.msv-etudes-petal {
  position: absolute;
  width: 230px;
  height: 475px;
  transition: transform 0.2s;
  top: 0;
  left: 240px;
}

.msv-etudes-petal-inner {
  position: absolute;
  border-radius: 50%;
  text-align: center;
  color: var(--petal-color-text, #fff);
  background: var(--petal-color, #6ec6ca);
  font-family: 'Roboto Condensed', Arial, sans-serif;
  padding: 20px;
  width: calc(230px - 40px);
  height: calc(230px - 40px);
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(calc(var(--petal-rotate, 0deg) * -1));
  transform-origin: center;
}
.msv-etudes-petal-arrow {
  position: absolute;
  width: 0px;
  height: 0px;
  border-top: 200px solid var(--petal-color, #6ec6ca);
  border-left: 106px solid transparent;
  border-right: 107.5px solid transparent;
  top: 158px;
  left: 9px;
  bottom: 0;
  z-index: 1;
}
.msv-etudes-petal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.msv-etudes-petal-subtitle {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.msv-etudes-petal-duree {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.msv-etudes-petal-desc {
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.msv-etudes-petal-complement {
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.85;
}

.msv-etudes-petal:nth-child(2) {
  --petal-rotate: 30deg;
  transform: rotate(30deg);
  transform-origin: 115px 350px;
}
.msv-etudes-petal:nth-child(3) {
  --petal-rotate: 90deg;
  transform: rotate(90deg);
  transform-origin: 115px 350px;
}
.msv-etudes-petal:nth-child(4) {
  --petal-rotate: 150deg;
  transform: rotate(150deg);
  transform-origin: 115px 350px;
}
.msv-etudes-petal:nth-child(5) {
  --petal-rotate: 210deg;
  transform: rotate(210deg);
  transform-origin: 115px 350px;
}
.msv-etudes-petal:nth-child(6) {
  --petal-rotate: 270deg;
  transform: rotate(270deg);
  transform-origin: 115px 350px;
}
.msv-etudes-petal:nth-child(7) {
  --petal-rotate: 330deg;
  transform: rotate(330deg);
  transform-origin: 115px 350px;
}

.msv-etudes-petal:hover {
  transform: scale(1.1) rotate(var(--petal-rotate, 0deg));
  cursor: pointer;
}

.msv-etudes-caption {
  position: absolute;
  bottom: -16px;
  font-size: 0.8rem;
  color: #666;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}

@media (max-width: 800px) {
  .msv-etudes {
    padding: 40px 0 30px 0;
  }

  .msv-etudes-intro {
    margin-bottom: 30px;
    text-align: left;
  }

  .msv-etudes-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .msv-etudes-modal-content {
    padding: 18px 4vw 16px 4vw;
    max-width: 98vw;
  }
  .msv-etudes-modal-title {
    font-size: 1.3rem;
  }
  .msv-etudes-modal-duree {
    font-size: 1.1rem;
    min-width: 100px;
  }

  .msv-etudes-desc {
    font-size: 1rem;
  }

  .msv-etudes-flower {
    width: 90vw;
    height: 90vw;
  }

  .msv-etudes-flower-center {
    width: 23vw;
    height: 23vw;
    padding: 4vw;
    font-size: 2.4vw;
  }

  .msv-etudes-petal {
    position: absolute;
    width: 29.57vw;
    height: 61.07vw;
    left: 30.86vw;
  }

  .msv-etudes-petal-inner {
    width: 24.43vw;
    height: 24.43vw;
    padding: 2.57vw;
  }

  .msv-etudes-petal-arrow {
    border-top: 25.71vw solid var(--petal-color, #6ec6ca);
    border-left: 13.63vw solid transparent;
    border-right: 13.82vw solid transparent;
    top: 20.31vw;
    left: 1.16vw;
    bottom: 0;
    z-index: 1;
  }

  .msv-etudes-petal-title {
    font-size: 3.5vw;
    margin-bottom: 3vw;
  }
  .msv-etudes-petal-subtitle {
    display: none;
  }

  .msv-etudes-petal-subtitle,
  .msv-etudes-petal-duree,
  .msv-etudes-petal-desc,
  .msv-etudes-petal-complement {
    font-size: 2.8vw;
  }

  .msv-etudes-petal:nth-child(2) {
    --petal-rotate: 30deg;
    transform: rotate(30deg);
    transform-origin: 14.79vw 45vw;
  }
  .msv-etudes-petal:nth-child(3) {
    --petal-rotate: 90deg;
    transform: rotate(90deg);
    transform-origin: 14.79vw 45vw;
  }
  .msv-etudes-petal:nth-child(4) {
    --petal-rotate: 150deg;
    transform: rotate(150deg);
    transform-origin: 14.79vw 45vw;
  }
  .msv-etudes-petal:nth-child(5) {
    --petal-rotate: 210deg;
    transform: rotate(210deg);
    transform-origin: 14.79vw 45vw;
  }
  .msv-etudes-petal:nth-child(6) {
    --petal-rotate: 270deg;
    transform: rotate(270deg);
    transform-origin: 14.79vw 45vw;
  }
  .msv-etudes-petal:nth-child(7) {
    --petal-rotate: 330deg;
    transform: rotate(330deg);
    transform-origin: 14.79vw 45vw;
  }
}

/* Modal Styles - Updated for new design */
.msv-etudes-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(60, 60, 60, 0.18);
  align-items: center;
  justify-content: center;
}
.msv-etudes-modal[style*="display: block"] {
  display: flex !important;
}
.msv-etudes-modal-content {
  background: #fff;
  margin: auto;
  padding: 36px 38px 32px 38px;
  border-radius: 8px;
  max-width: 900px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  animation: msv-modal-fadein 0.2s;
  max-height: 80vh;
  overflow-y: auto;
}
@keyframes msv-modal-fadein {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.msv-etudes-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: opacity 0.2s;
  opacity: 0.6;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msv-etudes-modal-close svg {
  width: 100%;
  height: 100%;
  fill: #888;
  transition: fill 0.2s;
}
.msv-etudes-modal-close:hover svg,
.msv-etudes-modal-close:focus svg {
  fill: #005258;
  opacity: 1;
}
.msv-etudes-modal-nav {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  gap: 12px;
}
.msv-etudes-modal-nav button {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  width: 60px;
  height: 30px;
  font-size: 1.5rem;
  color: #005258;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
.msv-etudes-modal-nav button:hover {
  background: #e0f7fa;
  border-color: #1F9192;
}
.msv-etudes-modal-title {
  font-size: 2rem;
  font-weight: 400;
  color: #1F9192;
  margin-bottom: 8px;
  text-align: left;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.msv-etudes-modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
  margin-top: 48px;
}
.msv-etudes-modal-subtitle-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  width: 100%;
}
.msv-etudes-modal-subtitle {
  font-size: 1.25rem;
  color: #005258;
  font-weight: 600;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}
.msv-etudes-modal-duree {
  font-size: 1.8rem;
  color: #005258;
  font-weight: 700;
  margin-bottom: 0;
  margin-left: auto;
  text-align: right;
  min-width: 160px;
}
.msv-etudes-modal-desc {
  font-size: 1.05rem;
  color: #000;
  margin-bottom: 10px;
  line-height: 1.6;
}
.msv-etudes-modal-complement {
  font-size: 0.98rem;
  color: #1F9192;
  opacity: 0.95;
  margin-top: 8px;
}
.msv-etudes-modal-image {
  display: block;
  text-align: center;
  margin-top: 18px;
}
.msv-etudes-modal-image img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0002;
  background: #fff;
}

.msv-etudes-image-lightbox {
  display: none;
  position: fixed;
  z-index: 12000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 40, 50, 0.88);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: background 0.2s;
}
.msv-etudes-image-lightbox[style*="display: flex"] {
  display: flex !important;
}
.msv-etudes-image-lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px #0008;
  background: #fff;
  margin: 0 auto;
  display: block;
}
.msv-etudes-image-lightbox-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 2.8rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
  outline: none;
  z-index: 2;
  transition: color 0.2s;
  text-shadow: 0 2px 8px #000a;
}
.msv-etudes-image-lightbox-close:hover,
.msv-etudes-image-lightbox-close:focus {
  color: #afe1e1;
}
@media (max-width: 700px) {
  .msv-etudes-image-lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 2rem;
  }
  .msv-etudes-image-lightbox-img {
    max-width: 98vw;
    max-height: 70vh;
  }
}
