html {
  scroll-behavior: smooth;
} /* scroll effect pour descendre à l'encart stages*/

.stage-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
}

.stage-hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;

  color: #fff;
  padding: 70px 50px;
  border-radius: 22px;
  margin-bottom: 35px;

  /* Même proportion que les photos : 1141 × 514 */
  aspect-ratio: 1141 / 514;

  background-color: #2f2a24;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/*
  Léger assombrissement progressif de la partie gauche.
  Il améliore la lisibilité sans remettre de flou CSS.
*/
.stage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

 background: linear-gradient(
    to right,
    rgba(35, 28, 22, .36) 0%,
    rgba(35, 28, 22, .29) 25%,
    rgba(35, 28, 22, .20) 45%,
    rgba(35, 28, 22, .10) 62%,
    rgba(35, 28, 22, .04) 80%,
    rgba(35, 28, 22, 0) 100%
);

  pointer-events: none;
}

.stage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}


/* Images de fond individuelles pour chaque module */

.module-1 .stage-hero {
  background-image: url("../img/module-1-main-pic.webp");
}

.module-2 .stage-hero {
  background-image: url("../img/module-2-main-pic.webp");
}

.module-3 .stage-hero {
  background-image: url("../img/module-3-main-pic.webp");
}

.module-4 .stage-hero {
  background-image: url("../img/module-4-main-pic.webp");
}

.module-5 .stage-hero {
  background-image: url("../img/module-5-main-pic.webp");
}

.module-6 .stage-hero {
  background-image: url("../img/module-6-main-pic.webp");
}

.module-7 .stage-hero {
  background-image: url("../img/module-7-main-pic.webp");
}

.module-8 .stage-hero {
  background-image: url("../img/module-8-main-pic.webp");
}

/* ==================================================
   CADRAGE DES IMAGES SUR MOBILE
   ================================================== */

@media (max-width: 900px) {

  .module-1 .stage-hero {
    background-position: 80% center;
  }

  .module-2 .stage-hero {
    background-position: 80% center;
  }

  .module-3 .stage-hero {
    background-position: 80% center;
  }

  .module-4 .stage-hero {
    background-position: 80% center;
  }

  .module-5 .stage-hero {
    background-position: 80% center;
  }

  .module-6 .stage-hero {
    background-position: 80% center;
  }

  .module-7 .stage-hero {
    background-position: 80% center;
  }

  .module-8 .stage-hero {
    background-position: 80% center;
  }

}

.stage-kicker {
  color: var(--jaune);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stage-hero h1 {
  color: var(--vert);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .70);
}

.stage-hero p {
  color: var(--beige);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .60);
}

.stage-intro {
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.stage-btn {
  display: inline-block;
  background: #c28b47;
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.stage-btn:hover {
  background: #a87435;
  color: #fff;
}

.stage-btn.full {
  display: block;
  text-align: center;
}

/* ==================================================
   RÉSUMÉ DU STAGE : TARIF / DATES / PRATIQUE
   ================================================== */

.stage-summary {
  margin-bottom: 45px;
  padding: 30px;

  background: #fff;
  border: 1px solid #ddd4c8;
  border-radius: 20px;
}

.stage-summary h2 {
  margin:0 0 22px;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;

  color: var(--bordeaux);
}

.stage-summary-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.summary-tarif-line{
    margin:0;
    line-height:1.55;
}

.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background: #f4f1ec;
  border-radius: 16px;
  padding: 22px;

  text-decoration: none;
  color: var(--anthracite);

  border-top: 6px solid var(--vert);

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  background: #e9dfd0;

  border-top-color: var(--vert);

  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.summary-card strong {
  display: block;

  font-size: 1.05rem;
  font-weight: 700;

  color: var(--anthracite);

  margin-bottom: 10px;
}

.summary-card li {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Tarif */

.summary-tarif-line {
  margin: 0;
  line-height: 1.55;
}

.summary-tarif-price {
  display: inline;
  margin-right: 5px;

  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bordeaux);

  white-space: nowrap;
}

.summary-tarif-details {
  display: inline;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Dates */

.summary-dates-list {
  margin: 0;
  padding-left: 20px;
}

.summary-dates-list li {
  margin-bottom: 8px;
}

.summary-dates-list li:last-child {
  margin-bottom: 0;
}

/* FIN DE RESUMER STAGES*/

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 35px;
  align-items: start;
}

.stage-main,
.sidebar-box,
.other-stages {
  background: #fff;
  border: 1px solid #e4ded5;
  border-radius: 20px;
  padding: 32px;
}

.stage-main h2,
.sidebar-box h2,
.other-stages h2 {
  margin-top: 0;
  margin-bottom: 22px;
}

.stage-main h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  color: #3b3128;
}

.stage-main p,
.stage-main li,
.sidebar-box li,
.sidebar-box p {
  line-height: 1.7;
}

.stage-main ul,
.sidebar-box ul {
  padding-left: 20px;
}

.stage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box.highlight {
  background: #f8f3eb;
}

.other-stages {
  margin-top: 45px;
}

.stages-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stage-card {
  display: block;
  background: #f4f1ec;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--anthracite);

  /* Accent graphique */
  border-top: 6px solid var(--vert);

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.stage-card:hover {
  transform: translateY(-3px);
  background: #e9dfd0;

  /* Au survol, ça reste en vert sauge */
  border-top-color: var(--vert);

  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

.stage-card span {
  display: block;
  font-size: 0.85rem;
  color: #7b6a55;
  margin-bottom: 6px;
}

.stage-card strong {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}


/* ============================================================== Mobile ================================================================== */

@media (max-width: 900px) {

  .stage-hero {
    aspect-ratio: auto;
    min-height: 0;
    padding: 42px 28px;
    background-size: cover;
    background-position: center center;
  }

  .stage-hero-content {
    max-width: 100%;
  }

  .stage-hero h1 {
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .stage-hero p {
    margin-bottom: 22px;
  }

  /* Résumé du stage : les 3 encarts passent les uns sous les autres */

  .stage-summary {
    padding:24px;
}

.stage-summary h2{
    margin:0 0 20px;
    font-size:1.7rem;
}

.stage-summary-grid{
    grid-template-columns:1fr;
    gap:14px;
}

.summary-card{
    padding:20px;
}

.summary-card strong{
    margin-bottom:8px;
}

.summary-dates-list{
    padding-left:18px;
}

  .stage-main,
  .sidebar-box,
  .other-stages {
    padding: 24px;
  }
}



/* ==================================================
   STAGES COMPLÉMENTAIRES
   ================================================== */

.complementary-stage-card {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 28px;
  padding: 30px;

  background: #fff;
  border: 1px solid #e4ded5;
  border-radius: 18px;
}

.complementary-stage-title {
  margin: 0 0 24px;
  color: var(--vert);
}

.complementary-stage-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.complementary-stage-photo {
  width: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
}

.stage-photo-placeholder {
  box-sizing: border-box;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px;
  background: #dce9f4;
  border: 2px dashed #9bb8cd;
  color: #486679;
  font-weight: 600;
  text-align: center;
}

.complementary-stage-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.complementary-stage-content {
  min-width: 0;
}

.complementary-stage-content p {
  margin: 0;
  line-height: 1.7;
}

.complementary-stage-actions {
  margin-top: 24px;
  text-align: right;
}

.complementary-stage-btn {
  margin: 0;
}

/* pour les mobiles */

@media (max-width: 700px) {

  .complementary-stage-card {
    padding: 22px;
  }

  .complementary-stage-title {
    margin-bottom: 18px;
  }

  .complementary-stage-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .complementary-stage-photo {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .complementary-stage-actions {
    text-align: left;
  }

  .complementary-stage-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

}

/* ==================================================
   BOUTONS DU HERO
   ================================================== */

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Bouton secondaire : Voir les autres stages */

.stage-btn-secondary {
  background: #f8f3eb;
  color: #3b3128;
  border: 1px solid #dfd3c4;
}

.stage-btn-secondary:hover {
  background: #eadfd2;
  color: #3b3128;
}

/* Bouton tertiaire : poser une question avant de s'inscrire au stage */

.stage-btn-question {
    display: block;
    width: 82%;
    margin: 0 auto 16px;
    padding: 11px 18px;
    background: var(--vert);
    border: 2px solid var(--vert);
    border-radius: 999px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.stage-btn-question:hover {
    background: color-mix(in srgb, var(--vert) 78%, white);
    border-color: color-mix(in srgb, var(--vert) 78%, white);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .10);
}

.stage-btn-question:active {
    transform: translateY(0);
    box-shadow: none;
}

.stage-btn-booking {
    margin-top: 0;
}

/* Téléphone */

@media (max-width: 600px) {

  .stage-actions {
    display: block;
  }

  .stage-actions .stage-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* On masque uniquement le bouton “Voir les autres stages” */

  .stage-actions .stage-btn-secondary {
    display: none;
  }

}

/* ==================================================
   CORRECTION GLOBALE MOBILE DES PAGES STAGES
   À LAISSER TOUT EN BAS DU FICHIER
   ================================================== */

@media (max-width: 900px) {

  /* Empêche tous les conteneurs de dépasser l'écran */

  .stage-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }

  /* Résumé du stage */

  .stage-summary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }

  .stage-summary-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .summary-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Contenu principal + colonne latérale */

  .stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    gap: 24px;
  }

  .stage-main,
  .stage-sidebar,
  .sidebar-box {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .stage-main,
  .sidebar-box {
    padding: 24px;
  }

  /* Autres modules */

  .other-stages {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    overflow: hidden;
  }

  .stages-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 100%;
    gap: 14px;
  }

  .stage-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px;
  }

  .stage-card strong {
    overflow-wrap: anywhere;
  }
}


/* Téléphones très étroits */

@media (max-width: 360px) {

  .stages-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }

}

/* ==================================================
   BOUTON STRIPE DESACTIVE
   ================================================== */

.stage-btn-disabled {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none;
}