/* ========== PAGE HERO ATELIERS ========== */

.page-hero--ateliers {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.page-hero--ateliers .page-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-sm);
}

.page-hero--ateliers .page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.page-hero--ateliers .page-hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-body);
  max-width: 500px;
  margin: 0 auto var(--space-md);
  line-height: 1.6;
}

.page-hero--ateliers .page-hero__illustration {
  margin-top: var(--space-lg);
}

.page-hero--ateliers .page-hero__illustration img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== SECTION INTRO ========== */

.ateliers-intro {
  padding: var(--space-xl) var(--space-sm);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ateliers-intro__accroche {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.ateliers-intro__baseline {
  font-size: var(--text-lg);
  color: var(--color-text-coral);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.ateliers-intro__text {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.7;
}

/* ========== PROGRAMME ========== */

.ateliers-programme {
  padding: 0 var(--space-sm) var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.ateliers-programme__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.programme-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.programme-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.programme-card__content {
  flex: 1;
}

.programme-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.programme-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 1.5;
}

/* ========== PREMIER ATELIER + INFOS PRATIQUES ========== */

.ateliers-premier-infos {
  padding: 0 var(--space-sm) var(--space-xl);
  max-width: 480px;
  margin: 0 auto;
}

.ateliers-premier {
  max-width: 480px;
  margin: 0 auto;
}

.premier-card {
  background: var(--color-white);
  border: 2px solid var(--color-coral);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.premier-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-coral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.premier-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.premier-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto var(--space-md);
}

.premier-card__illustration {
  max-width: 180px;
  margin: 0 auto var(--space-md);
}

/* Pastille date + horaire de la session, entre l'illustration et le titre */
.premier-card__session {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--color-cream-dark);
  border: 1px solid var(--color-coral);
  border-radius: var(--radius-lg);
  padding: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-sm);
}

.premier-card__date {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-dark);
}

.premier-card__time {
  font-size: var(--text-sm);
  color: var(--color-text-body);
}

.premier-card__illustration img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* ========== INFOS PRATIQUES ========== */

.ateliers-infos {
  margin-top: var(--space-lg);
}

.ateliers-infos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.info-card {
  background: var(--color-coral);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  /* contenu calé en haut : les 4 icônes et les 4 titres tombent à la même
     hauteur quelle que soit la quantité de texte en dessous */
  justify-content: flex-start;
  align-items: center;
}

.info-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-xs);
}

.info-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  /* hauteur réservée : les valeurs démarrent au même niveau sur les 4 cartes,
     même si un titre passait un jour sur deux lignes */
  min-height: 1.35em;
  margin-bottom: 4px;
}

.info-card__value {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-dark);
  /* la valeur occupe tout l'espace libre entre le titre et la précision,
     et s'y centre verticalement */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Le tarif est l'info la plus cherchée du bloc : il se détache par la taille */
.info-card__value--price {
  font-size: var(--text-3xl);
}

.info-card__note {
  font-size: var(--text-xs);
  color: var(--color-text-dark);
  opacity: 0.75;
  line-height: 1.35;
  /* dernière de la carte, donc à la même distance du bord bas que les
     icônes du bord haut : c'est la valeur au-dessus qui absorbe l'espace */
  padding-top: var(--space-xs);
}

/* ========== TÉMOIGNAGE ========== */

.ateliers-temoignage {
  padding: 0 var(--space-sm) var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.ateliers-temoignage .testimonial {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.ateliers-temoignage .testimonial__text {
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.7;
}

.ateliers-temoignage .testimonial__author {
  justify-content: center;
}

/* ========== POUR VOUS SI ========== */

.atelier-pour-vous {
  padding: 0 var(--space-sm) var(--space-xl);
  max-width: 640px;
  margin: 0 auto;
}

.atelier-pour-vous__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
  text-align: center;
  margin-bottom: var(--space-md);
}

.atelier-pour-vous__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.atelier-pour-vous__list li {
  position: relative;
  padding-left: calc(24px + var(--space-sm));
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.5;
}

.atelier-pour-vous__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='6' fill='%23FDE8DD'/%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.6' fill='none' stroke='%23E8836B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.atelier-pour-vous__note {
  background-color: var(--color-cream-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.6;
  text-align: center;
}

.atelier-pour-vous__note-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-coral);
  margin-bottom: var(--space-xs);
}

/* ========== CTA INSCRIPTION ========== */

.ateliers-cta {
  padding: var(--space-xl) var(--space-sm);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ateliers-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.ateliers-cta__text {
  font-size: var(--text-base);
  color: var(--color-text-body);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.ateliers-cta__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  margin-top: var(--space-sm);
}

.ateliers-cta__email svg {
  width: 18px;
  height: 18px;
  color: var(--color-coral);
}

/* ========== DESKTOP ========== */

@media (min-width: 768px) {
  .page-hero--ateliers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(560px, 36vw, 760px);
    padding: 0 var(--space-lg);
    background-image: url('../../assets/images/hero-ateliers.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  .page-hero--ateliers .page-hero__content {
    max-width: 600px;
    padding: var(--space-md) var(--space-lg);
    background: radial-gradient(ellipse 75% 80% at center, rgba(255, 248, 243, 0.55) 0%, rgba(255, 248, 243, 0.35) 45%, rgba(255, 248, 243, 0) 75%);
  }

  .page-hero--ateliers .page-hero__illustration {
    display: none;
  }

  .page-hero--ateliers .page-hero__title {
    font-size: var(--text-4xl);
  }

  .ateliers-programme__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ateliers-programme {
    padding: 0 var(--space-lg) var(--space-xl);
  }

  .ateliers-premier-infos {
    padding: 0 var(--space-lg) var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: var(--space-sm);
    max-width: 800px;
  }

  .ateliers-premier {
    max-width: none;
    display: flex;
    flex-direction: column;
  }

  /* la carte s'étire sur toute la hauteur de sa colonne pour se terminer
     au même niveau que le bloc infos pratiques voisin — sans devenir un
     conteneur flex, qui étirerait le bouton sur toute la largeur */
  .premier-card {
    flex: 1;
  }

  .ateliers-infos {
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }

  .ateliers-infos__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    flex: 1;
  }

  .info-card {
    height: 100%;
  }

  .ateliers-temoignage {
    padding: 0 var(--space-lg) var(--space-xl);
  }

  .atelier-pour-vous {
    padding: 0 var(--space-lg) var(--space-xl);
  }

  .ateliers-cta {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Tablette : hauteur réduite pour limiter le zoom du cover et éviter de rogner la scène (voir audit-maquette-index) */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-hero--ateliers {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero--ateliers {
    background-attachment: scroll;
  }
}

/* ========== POP-UP ENGAGEMENT (avant mailto atelier) ========== */

.engagement-modal[hidden] {
  display: none;
}

.engagement-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.engagement-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 30, 20, 0.45);
}

.engagement-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
}

.engagement-modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  background: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.engagement-modal__close svg {
  width: 16px;
  height: 16px;
}

.engagement-modal__close:hover {
  color: var(--color-text-dark);
  background-color: var(--color-cream-dark);
}

.engagement-modal__close:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

.engagement-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.engagement-modal__text {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.engagement-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

@media (min-width: 480px) {
  .engagement-modal__actions {
    flex-direction: row-reverse;
    justify-content: center;
  }
}
