:root{
  --ink: #062c43;
  --accent: #4b70ba;
  --hl: #dfe9ff;
  --orange: #d06a2d;
  --bg: #ffffff;
}

.programme-page{
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  padding-top: 90px;
}

/* petit hero simple */
.programme-hero{
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 50px;
  background-image: url(Background2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.programme-hero h1{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: 0.3px;
  padding-left: 10%;
}

span.subtitle-prog {
    font-size: 40px;
    font-weight: 400;
}

span.subtitle-prog2 {
    color: #899be5;
    font-size: 60px;
    text-shadow: 6px 5px 0 rgba(200, 199, 255, 0.35), 0 4px 10px rgba(200, 199, 255, 0.35);
    text-transform: uppercase;
    line-height: 0;
}

span.subtitle-prog3 {
    font-size: 40px;
    text-transform: uppercase;
}

span.subtitle-prog4 {
    font-size: 60px;
    text-transform: uppercase;
    line-height: 0;
}

.programme-hero p{
  margin: 0;
  opacity: 0.85;
  padding-left: 10%;
  font-size: 20px;
}

/* 4 piliers */
.pillars{
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pillar{
  position: relative;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 16px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(6,44,67,0.15);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.pillar:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6,44,67,0.12);
}

.pillar-hash{
  position: absolute;
  top: 10px;
  left: 12px;
  font-weight: 900;
  font-size: 44px;
  opacity: 0.12;
  color: var(--accent);
  line-height: 1;
}

.pillar-hash-naitre {
    position: absolute;
    font-weight: 900;
    font-size: 150px;
    opacity: 1;
    color: #dbc7ff;
    line-height: 1;
    text-shadow: 6px 5px 0 rgba(200, 199, 255, 0.35), 0 4px 10px rgba(200, 199, 255, 0.35);
}

.pillar-hash-vivre {
    position: absolute;
    font-weight: 900;
    font-size: 150px;
    opacity: 1;
    color: #98acff;
    line-height: 1;
    text-shadow: 6px 5px 0 rgba(200, 199, 255, 0.35), 0 4px 10px rgba(200, 199, 255, 0.35);
}

.pillar-hash-entreprendre {
    position: absolute;
    font-weight: 900;
    font-size: 150px;
    opacity: 1;
    color: #f5f081;
    line-height: 1;
    text-shadow: 6px 5px 0 rgba(200, 199, 255, 0.35), 0 4px 10px rgba(200, 199, 255, 0.35);
}

.pillar-hash-soin {
    position: absolute;
    font-weight: 900;
    font-size: 150px;
    opacity: 1;
    color: #ffd8ab;
    line-height: 1;
    text-shadow: 6px 5px 0 rgba(200, 199, 255, 0.35), 0 4px 10px rgba(200, 199, 255, 0.35);
}

.pillar-title{
  display: block;
  margin-top: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  line-height: 1.05;
  font-size: 20px;
  text-transform: uppercase;
}

.pillar-sub{
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  background: var(--hl);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 999px;
}

/* état actif */
.pillar.is-active{
  outline: 2px solid rgba(75,112,186,0.25);
}

.pillars .pillar.is-active:nth-child(1){
  outline: 2px solid rgba(219, 199, 255, 0.7);
}

.pillars .pillar.is-active:nth-child(2){
  outline: 2px solid rgba(152, 172, 255, 0.5);
}

.pillars .pillar.is-active:nth-child(3){
  outline: 2px solid rgba(245, 240, 129, 1);
}

.pillars .pillar.is-active:nth-child(4){
  outline: 2px solid rgba(255, 216, 171, 0.8);
}

/* panneau déroulant */
.programme-panel{
  max-width: 1200px;
  margin: 14px auto 0px;
  padding: 0 20px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 380ms ease, opacity 220ms ease;
  position: relative;
  z-index: 2;
}

.programme-panel.is-open{
  opacity: 1;
  max-height: 8000px;
}

/* IMPORTANT : padding-left 0 pour que les barres collent au bord */
.programme-panel__inner{
  margin-top: 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 6px 24px rgba(6, 44, 67, 0.08),
    0 1px 2px rgba(6, 44, 67, 0.04);
  padding: 18px 18px 18px 0;
  overflow: hidden;
  margin-bottom: 20px;
}

/* =========================================================
   Layout interne — SANS GRID
   ========================================================= */

.programme-block{ display: block; }

.prog-content{
  position: relative;
}

/* On aligne titres/kicker avec un padding, mais PAS le rail */
.prog-content h2,
.prog-content .prog-kicker{
  margin-left: 18px;
}

.prog-title {
    display: flex;
    align-items: center;
    margin-top: 25px;
}
.prog-content h2{
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding-left: 150px;
  font-size: 30px;
}

span.subtitle {
    font-weight: 500;
}

.prog-content .prog-kicker{
  display: inline-block;
  background: var(--hl);
  color: var(--accent);
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 16px;
}

/* =========================================================
   Image à droite avec enroulement du texte
   ========================================================= */

.prog-figure{
  float: right;
  width: 320px;
  margin: -200px 18px 18px 26px;
}

.prog-figure.prog2{
  float: right;
  width: 320px;
  margin: -150px 18px 18px 26px;
}

.prog-figure img{
  width: 90%;
  height: auto;
  display: block;
  border-radius: 16px;
}

@supports (shape-outside: inset(0 round 16px)){
  .prog-figure{
    shape-outside: inset(0 round 16px);
  }
}

.prog-content::after{
  content: "";
  display: block;
  clear: both;
}

/* =========================================================
   Sections avec barres fines collées à gauche + label A COTE
   (style barres.png)
   ========================================================= */

.prog-sections{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 50px;
}

/* Une section = rail (bar + label) + corps */
.prog-section{
  display: flex;
  align-items: stretch;
}

/* Rail collé à gauche du card */
.prog-rail{
  flex: 0 0 auto;
  display: flex;
  align-items: center;  /* centre label par rapport à la barre */
  gap: 10px;            /* espace BAR <-> LABEL (comme barres.png) */
  padding-left: 0;
  margin-left: 0;
}

/* Barre : fine, arrondie, pleine hauteur */
.prog-bar{
  width: 8px;
  border-radius: 999px;
  align-self: stretch; /* prend la hauteur totale de la section */
  background: #6b86c7;
}

/* Label : vertical, A COTE de la barre */
.prog-label{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 900;
  letter-spacing: 0.7px;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.95;
  text-align: center;
  line-height: 2;
}

.prog-label-double{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 900;
  letter-spacing: 0.7px;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.95;
  text-align: center;
  line-height: 1;
}

/* Corps : espace rail -> texte */
.prog-body{
  padding-left: 18px;  /* espace entre rail (bar+label) et texte */
  flex: 1;
  margin-left: 18px;   /* IMPORTANT : pousse le texte à droite, comme la maquette */
  margin-top: 12px;
}

/* UL/LI rendu "paragraphes" */
.prog-list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.prog-list li{
  margin: 0 0 12px;
  line-height: 1.35;
  font-size: 14px;
}

.prog-list li strong{
  font-weight: 700;
}

.prog-list li .orange{
  color: #d13f00;
  font-weight: 800;
}

/* Couleurs de barres par thème */
.prog-section.edu .prog-bar{ background: #8046b9; }
.prog-section.enf .prog-bar{ background: #e2a9f1; }
.prog-section.jeu .prog-bar{ background: #a0c9e2; }
.prog-section.cit .prog-bar{ background: #bbce9d; }

.prog-section.urb .prog-bar{ background: #c3e8ff; }
.prog-section.cir .prog-bar{ background: #d13f00; }
.prog-section.sec .prog-bar{ background: #2f57a5; }

.prog-section.emp .prog-bar{ background: #3c789c; }
.prog-section.asso .prog-bar{ background: #98acff; }
.prog-section.anim .prog-bar{ background: #f5f081; }

.prog-section.ain .prog-bar{ background: #ffd8ab; }
.prog-section.san .prog-bar{ background: #355969; }
.prog-section.soc .prog-bar{ background: #ffd0e1; }
.prog-section.nat .prog-bar{ background: #a8c082; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px){
  .pillars{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px){
  .prog-figure{ width: 280px; }
}

@media (max-width: 760px){
  /* sur mobile : on évite l’enroulement */
  .prog-figure{
    float: none;
    width: 100%;
    margin: 10px 18px 18px 18px;
    shape-outside: none;
  }

  /* le rail reste à gauche, mais on réduit l’encombrement */
  .prog-bar{ width: 6px; }
  .prog-rail{ gap: 8px; }

  /* texte moins poussé */
  .prog-body{
    padding-left: 14px;
    margin-left: 14px;
  }

  /* titres alignés avec le contenu */
  .prog-content h2,
  .prog-content .prog-kicker{
    margin-left: 18px;
  }
}

@media (max-width: 640px){
  .pillars{ grid-template-columns: 1fr; }
}

/* =========================================================
   CTA Newsletter – fond bleu, 2 colonnes
   ========================================================= */

.newsletter-cta{
  max-width: 1200px;
  margin: 50px auto 80px;
  padding: 0 20px;
}

.newsletter-cta__inner{
  background: #4B70BA;
  border-radius: 22px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Colonne texte */
.newsletter-cta__content{
  color: #ffffff;
}

.newsletter-cta__title{
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 26px;
}

.newsletter-cta__text{
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.95;
}

/* Colonne bouton */
.newsletter-cta__action{
  display: flex;
  justify-content: flex-end;
}

/* Bouton principal */
.newsletter-cta__btn{
  background: #ffffff;
  color: #062c43;
  padding: 18px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;

  transition:
    background-color .15s ease,
    color .15s ease,
    transform .15s ease,
    box-shadow .15s ease;

  box-shadow: 8px 8px 0 rgba(6,44,67,0.28);
}

.newsletter-cta__btn:hover{
  background: #062c43;
  color: #ffffff;
  transform: translateY(-1px);
}

.extrabold{
  font-weight: 900;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px){
  .newsletter-cta__inner{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-cta__action{
    justify-content: center;
  }

  .newsletter-cta__btn{
    width: 100%;
    text-align: center;
  }
}