/* ============================================================
   PROGRAMME.CSS — v2 : plus de blanc, plus de contraste, plus de "pêche"
   Répartition chromatique :
   - BLANC = dominante
   - SAPIN PLEIN = ruptures fortes (rentrées, CTA)
   - SABLE/CRÈME = 2-3 sections seulement (piliers, calendrier)
   - TERRACOTTA = plus présent en accents
   ============================================================ */

/* ==================== HERO PROGRAMME ==================== */
.hero-page {
  background: var(--blanc);
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
}
/* Filet terracotta décoratif sous le hero */
.hero-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--terracotta);
}
.hero-page .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(184, 92, 74, 0.08);
  border-radius: 2px;
}
.hero-page h1 {
  max-width: 860px;
  margin: 0 auto 24px;
  font-size: clamp(34px, 4.5vw, 54px);
}
.hero-page-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--gris);
  max-width: 680px;
  margin: 0 auto;
}

/* ==================== SECTION PILIERS (fond crème, respiration) ==================== */
.piliers {
  background: var(--creme);
  padding: 100px 0;
}
.piliers-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.piliers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pilier {
  background: var(--blanc);
  padding: 36px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  border-top: 3px solid var(--terracotta);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.pilier:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(42, 74, 62, 0.10);
}
.pilier-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 18px;
}
.pilier h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--sapin);
}
.pilier p {
  font-size: 15px;
  color: var(--gris);
  line-height: 1.6;
  margin: 0;
}

/* ==================== RENTRÉES + CALENDRIER (fond sapin pour contraste fort) ==================== */
.rentrees {
  background: var(--sapin);
  color: var(--creme);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.rentrees::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(232, 223, 208, 0.06) 0%, transparent 55%);
  pointer-events: none;
}
.rentrees-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  position: relative;
}
.rentrees-header h2 {
  color: var(--creme);
}
.rentrees-header .eyebrow {
  color: var(--terracotta);
}

.rentrees-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto 48px;
  position: relative;
}
.rentree-card {
  background: var(--blanc);
  padding: 44px 36px;
  border-radius: 4px;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
/* Card "prochaine" : accent terracotta fort */
.rentree-card-next {
  background: var(--blanc);
}
.rentree-card-next::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--terracotta);
  border-radius: 4px 4px 0 0;
}
.rentree-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sauge);
  border-radius: 4px 4px 0 0;
}
.rentree-label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}
.rentree-date {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--sapin);
  line-height: 1.1;
  margin-bottom: 14px;
}
.rentree-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gris);
  margin: 0;
}

/* Bouton toggle du calendrier — sur fond sapin */
.calendrier-toggle-wrap {
  text-align: center;
  position: relative;
}
.calendrier-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: transparent;
  color: var(--creme);
  border: 1.5px solid var(--eucalyptus);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
}
.calendrier-toggle:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--creme);
}
.calendrier-chevron {
  transition: transform 0.3s ease;
}
.calendrier-toggle[aria-expanded="true"] .calendrier-chevron {
  transform: rotate(180deg);
}

/* Contenu calendrier (dépliable) */
.calendrier-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin-top 0.5s ease;
  margin-top: 0;
  position: relative;
}
.calendrier-content.open {
  max-height: 3000px;
  margin-top: 48px;
}
.calendrier-inner {
  background: var(--blanc);
  padding: 48px;
  border-radius: 4px;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}
.calendrier-inner h3 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 36px;
  color: var(--sapin);
}
.calendrier-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.calendrier-column h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--sapin);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--terracotta);
}
.calendrier-dates {
  list-style: none;
  padding: 0;
  margin: 0;
}
.calendrier-dates li {
  padding: 10px 0 10px 24px;
  font-size: 15px;
  color: var(--encre);
  border-bottom: 1px dashed var(--gris-clair);
  line-height: 1.4;
  position: relative;
}
.calendrier-dates li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 13px;
  top: 11px;
}
.calendrier-dates li:last-child {
  border-bottom: none;
}

/* ==================== CYCLES (fond blanc avec ponctuations) ==================== */
.cycle {
  background: var(--blanc);
  padding: 100px 0;
  position: relative;
}
/* Différenciation subtile entre cycle 1 et cycle 2 par un filet et une étiquette */
.cycle-un {
  background: var(--blanc);
}
.cycle-deux {
  background: var(--blanc);
  border-top: 1px solid var(--gris-clair);
}
.cycle-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
  position: relative;
}
.cycle-header .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 18px;
  background: var(--sapin);
  color: var(--creme);
  border-radius: 2px;
  font-weight: 600;
}
.cycle-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gris);
  margin-top: 20px;
}

/* Objectifs + Points forts — fond très léger teinté */
.cycle-meta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}
.cycle-objectifs,
.cycle-points {
  background: var(--creme);
  padding: 40px 36px;
  border-radius: 4px;
  border-left: 3px solid var(--terracotta);
}
.cycle-points {
  border-left-color: var(--sauge);
}
.cycle-objectifs h3,
.cycle-points h3 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gris-clair);
}
.cycle-points h3 {
  color: var(--sapin);
}
.cycle-objectifs ul,
.cycle-points ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cycle-objectifs li,
.cycle-points li {
  padding: 10px 0 10px 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  color: var(--encre);
}
.cycle-objectifs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 14px;
}
.cycle-points li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--sauge);
  font-weight: 500;
  font-size: 11px;
  top: 13px;
}

/* ==================== MODULES (accordéons) ==================== */
.cycle-modules {
  max-width: 1060px;
  margin: 0 auto;
}
.modules-title {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  position: relative;
}
.modules-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--terracotta);
}

.module {
  background: var(--blanc);
  border-radius: 4px;
  border: 1px solid var(--gris-clair);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.module:hover {
  border-color: var(--terracotta);
  box-shadow: 0 8px 20px rgba(184, 92, 74, 0.06);
}
.module-head {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--sapin);
  transition: background 0.2s;
}
.module-head:hover {
  background: var(--creme);
}
.module-head[aria-expanded="true"] {
  background: var(--creme);
  border-bottom: 1px solid var(--gris-clair);
}
.module-title {
  flex-grow: 1;
}

/* Icône + / - */
.module-icon {
  width: 28px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
  background: var(--terracotta);
  border-radius: 50%;
}
.module-icon::before,
.module-icon::after {
  content: '';
  position: absolute;
  background: var(--creme);
  transition: transform 0.3s ease;
}
.module-icon::before {
  top: 50%;
  left: 7px;
  right: 7px;
  height: 2px;
  margin-top: -1px;
}
.module-icon::after {
  left: 50%;
  top: 7px;
  bottom: 7px;
  width: 2px;
  margin-left: -1px;
}
.module-head[aria-expanded="true"] .module-icon::after {
  transform: scaleY(0);
}

/* Corps du module */
.module-body {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.module-head[aria-expanded="true"] + .module-body {
  max-height: 3000px;
  padding: 24px 28px 28px;
}
.module-body h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--sapin);
  margin: 18px 0 10px;
  letter-spacing: 0.02em;
  padding-left: 12px;
  border-left: 2px solid var(--terracotta);
}
.module-body h4:first-child {
  margin-top: 0;
}
.module-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.module-body li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  color: var(--encre);
}
.module-body li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  top: 8px;
}

/* ==================== CTA BAND (sapin plein) ==================== */
.cta-band {
  background: var(--sapin);
  color: var(--creme);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(184, 92, 74, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-band-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--creme);
  margin-bottom: 24px;
  opacity: 0.95;
  position: relative;
}
.cta-band .btn {
  position: relative;
}

/* ==================== AVERTISSEMENT (fond blanc, encart discret) ==================== */
.avertissement-section {
  background: var(--blanc);
  padding: 72px 0;
}
.avertissement-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--creme);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 4px 4px 0;
  position: relative;
}
.avertissement-box::before {
  content: '!';
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--terracotta);
  color: var(--creme);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.avertissement-box p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  color: var(--encre);
  margin: 0 0 12px;
}
.avertissement-box p:last-child {
  margin-bottom: 0;
}

/* ==================== STAGE (fond blanc, accent graphique) ==================== */
.stage {
  background: var(--blanc);
  padding: 100px 0;
  position: relative;
}
.stage-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}
.stage-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--creme);
  border-radius: 4px;
  position: relative;
}
.stage-content::before {
  content: '"';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--terracotta);
  line-height: 1;
  background: var(--blanc);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-top: 30px;
}
.stage-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--encre);
  margin: 0;
}

/* ==================== ÉVALUATION (fond blanc, étapes colorées) ==================== */
.evaluation {
  background: var(--blanc);
  padding: 100px 0;
  border-top: 1px solid var(--gris-clair);
}
.evaluation-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}
.evaluation-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 56px;
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto;
}

.evaluation-visuel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
}
.evaluation-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

/* Étapes — chaque étape dans une couleur d'accent */
.evaluation-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.evaluation-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 32px;
  background: var(--creme);
  border-radius: 4px;
  align-items: start;
  border-left: 3px solid var(--terracotta);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.evaluation-step:nth-child(2) {
  border-left-color: var(--sauge);
}
.evaluation-step:nth-child(3) {
  border-left-color: var(--sapin);
}
.evaluation-step:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 28px rgba(42, 74, 62, 0.08);
}
.evaluation-step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
}
.evaluation-step:nth-child(2) .evaluation-step-num {
  color: var(--sauge);
}
.evaluation-step:nth-child(3) .evaluation-step-num {
  color: var(--sapin);
}
.evaluation-step-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--sapin);
  margin-bottom: 8px;
}
.evaluation-step-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gris);
  margin: 0;
}

/* ==================== CTA FINAL (sapin plein, ultime rupture) ==================== */
.cta-final {
  background: var(--sapin);
  color: var(--creme);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(184, 92, 74, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(200, 212, 197, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-final-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-final h2 {
  color: var(--creme);
  margin-bottom: 20px;
}
.cta-final p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--eucalyptus);
  margin-bottom: 36px;
  opacity: 0.95;
}
.cta-final-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Bouton secondaire sur fond sombre */
.btn-secondary-light {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  text-decoration: none;
  background: transparent;
  color: var(--creme);
  border: 1.5px solid var(--eucalyptus);
  transition: all 0.25s ease;
}
.btn-secondary-light:hover {
  background: var(--creme);
  color: var(--sapin);
  border-color: var(--creme);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Grand tablette */
@media (max-width: 1100px) {
  .piliers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablette */
@media (max-width: 860px) {
  .hero-page {
    padding: 56px 0 48px;
  }
  .piliers,
  .rentrees,
  .cycle,
  .stage,
  .evaluation,
  .cta-final,
  .avertissement-section {
    padding: 64px 0;
  }
  .calendrier-inner {
    padding: 32px 24px;
  }
  .calendrier-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cycle-meta {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 56px;
  }
  .cycle-objectifs,
  .cycle-points {
    padding: 32px 28px;
  }
  .evaluation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .evaluation-visuel {
    max-width: 320px;
    margin: 0 auto;
  }
  .evaluation-step {
    grid-template-columns: 56px 1fr;
    padding: 24px 24px;
    gap: 18px;
  }
  .evaluation-step-num {
    font-size: 36px;
  }
  .module-head {
    padding: 18px 22px;
    font-size: 17px;
  }
  .module-head[aria-expanded="true"] + .module-body {
    padding: 20px 22px 24px;
  }
  .stage-content {
    padding: 40px 28px;
  }
}

/* Mobile */
@media (max-width: 580px) {
  .piliers-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rentrees-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rentree-card {
    padding: 36px 24px;
  }
  .rentree-date {
    font-size: 28px;
  }
  .calendrier-toggle {
    padding: 12px 22px;
    font-size: 13px;
  }
  .calendrier-inner h3 {
    font-size: 18px;
  }
  .cycle-header {
    margin-bottom: 40px;
  }
  .cycle-header .eyebrow {
    font-size: 11px;
  }
  .module-head {
    font-size: 16px;
    padding: 18px 20px;
  }
  .module-icon {
    width: 24px;
    height: 24px;
  }
  .module-icon::before {
    left: 6px;
    right: 6px;
  }
  .module-icon::after {
    top: 6px;
    bottom: 6px;
  }
  .cta-final-buttons .btn,
  .cta-final-buttons .btn-secondary-light {
    width: 100%;
    text-align: center;
  }
  .avertissement-box {
    padding: 28px 24px;
  }
  .stage-content {
    padding: 36px 22px;
  }
  .cta-band-text {
    font-size: 20px;
  }
}
