/* Page Programmes – styles spécifiques, y compris hero aligné sur expertise_product */

/* Wrapper commun pour hero et programmes avec background partagé */
.programs-page-wrapper {
  background: linear-gradient(169deg, #E8F5E1 -1.09%, #EFE3D2 47.74%, #DDE9F5 100.12%);
  position: relative;
  overflow: hidden;
}

/* HERO – copié de expertise_product.css pour avoir le même rendu */
.hero-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Ajustement spécifique page Programmes pour coller au header (compense le padding-top du body) */
.programs-hero-section {
  margin-top: -84px;
}

.hero-image-container {
  width: 100%;
  height: 580px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 0 0 30px 30px;
  background: url(/assets/bg-hero-2-37a90676379278b58077c8f9ceba881ad74cfde3903508a086f241cb6aae82a8.svg) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-text-overlay {
  text-align: center;
  color: white;
  max-width: 820px;
  padding: 0 20px;
  z-index: 2;
}

.hero-decoration {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.white-deco-img {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.hero-badge {
  margin-bottom: 16px;
}

.hero-badge span {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.20);
  padding: 7px 28px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 20px;
}

.hero-text-overlay h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 72px;
  margin: 0 0 18px 0;
  color: white;
  /* Même animation de base que les autres pages (produits, home, etc.) */
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-text-overlay p {
  font-size: 16px;
  line-height: 37px;
  color: #FFF;
  margin: 0 0 44px 0;
  max-width: 630px;
  margin-left: auto;
  margin-right: auto;
}

.programs-hero-highlight {
  color: #F90;
}

/* SECTION LISTE PROGRAMMES */
.programs-section {
  margin: 0;
  padding: 30px 0 80px 0;
}

/* --------------------
   Responsive (mobile)
   -------------------- */
@media (max-width: 768px) {
  .programs-hero-section {
    margin-top: -60px;
  }
  .hero-image-container {
    height: auto;
    padding: 32px 0 24px 0;
  }
  .hero-text-overlay h1 {
    font-size: 28px;
    line-height: 40px;
  }
  .hero-text-overlay p {
    font-size: 16px;
    line-height: 26px;
  }
  .program-card-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .program-logo-block {
    width: 100%;
    max-width: 100%;
  }
  .program-logo-img {
    max-height: 260px;
    object-fit: contain;
  }
  .program-partners-logos {
    gap: 8px;
    flex-wrap: wrap;
  }
  .programs-section {
    padding: 0 0 60px 0;
  }
}

/* Animations – mêmes utilitaires que les autres pages mais isolés ici */
.hero-text-overlay h1.title-animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animation des éléments du hero (même logique que la page produits) */
.hero-image-container,
.hero-text-overlay {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-container.animate-in,
.hero-text-overlay.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animation de l'image de fond bleue et de la déco blanche */
.hero-image,
.white-deco-img {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in .hero-image,
.animate-in .white-deco-img {
  opacity: 1;
  transform: scale(1);
}

.programs-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.program-card {
  border-radius: 30px;
  background: #FFFFFF;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.06);
  border: 1px solid #E5E7EB;
  padding: 24px 32px;
  width: 100%;
  /* Cohérent avec les cards animées de la page About */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.program-card-inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.program-logo-block {
  width: 320px;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border: 1px solid #DFE5EC;
  border-radius: 20px;
  padding: 20px;
  align-self: stretch;
}

.program-logo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 30px;
  border: 2px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: #FF9900;
}

.program-logo-img {
  width: 100%;
  height: 100%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  object-fit: contain;
  object-position: center;
  display: block;
}

.program-content-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: stretch;
}

/* Animations internes des cartes (style similaire à About) */
.program-card .program-logo-img,
.program-card .program-info-block,
.program-card .program-partners {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card.animate-in .program-logo-img,
.program-card.animate-in .program-info-block,
.program-card.animate-in .program-partners {
  opacity: 1;
  transform: translateY(0);
}

/* Premier bloc : Titre + Description avec fond dégradé */
.program-info-block {
  background: linear-gradient(180deg, #EAF4FD 0%, #F7FFF3 40%, #FFFFFF 100%);
  border: 1px solid #DFE5EC;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.program-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  width: 360px;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.program-summary {
  font-size: 14px;
  line-height: 26px;
  color: #4B5563;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Animations des textes (titre, description, label partenaires) comme About */
.program-title,
.program-summary,
.program-partners-label {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card.animate-in .program-title,
.program-card.animate-in .program-summary,
.program-card.animate-in .program-partners-label {
  opacity: 1;
  transform: translateY(0);
}

.program-meta {
  font-size: 13px;
  color: #6B7280;
}

.program-dates {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Deuxième bloc : Section Partenaires avec bordure uniquement */
.program-partners {
  border: 1px solid #DFE5EC;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.program-partners-label {
  color: #6B7280;
  letter-spacing: 0.5px;
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.program-partners-logos {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.partner-logo-small {
  height: 40px;
  width: 100px;
  object-fit: contain;
  opacity: 0.8;
  /* Animation d'apparition + léger zoom comme sur About */
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card.animate-in .partner-logo-small {
  opacity: 1;
  transform: scale(1);
}

.partner-logo-small:hover {
  opacity: 1;
}

/* SECTION CTA CONTACT */
.programs-cta-section {
  padding: 80px 0;
  margin: 0;
  background: #FFF;
}

.programs-cta-block {
  background: linear-gradient(169deg, #E8F5E1 -1.09%, #EFE3D2 47.74%, #DDE9F5 100.12%);
  border-radius: 25px;
  padding: 50px 42px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E7EA;
}

.programs-cta-content {
  flex: 1;
}

.programs-cta-title {
  font-size: 28px;
  font-weight: 700;
  color: #1D252B;
  margin: 0 0 30px 0;
  line-height: 42px;
}

.programs-cta-button {
  background: #F90;
  border: none;
  border-radius: 30px;
  padding: 11px 61px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

.programs-cta-button:hover {
  background: #E68500;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 153, 0, 0.4);
}

.programs-cta-image-placeholder {
  flex: 1;
  background: #FFFFFF;
  border-radius: 20px;
  min-height: 300px;
  border: 1px solid #E2E7EA;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .program-card-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .program-logo-block {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    height: auto;
    min-height: 200px;
  }

  .program-logo-img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .programs-hero-section {
    margin-top: -60px;
  }
  .hero-image-container {
    height: 450px;
  }

  .hero-text-overlay h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-text-overlay p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  .white-deco-img {
    width: 80px;
  }

  .hero-decoration {
    margin-bottom: 20px;
  }

  /* Programs Section */
  .programs-section {
    padding: 0 0 50px 0;
  }

  .program-card {
    padding: 20px 18px;
  }

  .program-card-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-logo-block {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 180px;
    padding: 15px;
  }

  .program-logo-img {
    width: 100%;
    height: auto;
    max-height: 250px;
  }

  .program-logo-placeholder {
    width: 120px;
    height: 120px;
    font-size: 30px;
  }

  /* Program Info Block */
  .program-info-block {
    padding: 18px 20px;
    min-height: auto;
  }

  .program-title {
    font-size: 20px;
    width: 100%;
    margin: 0 0 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .program-summary {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Program Partners */
  .program-partners {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .program-partners-label {
    font-size: 14px;
  }

  .program-partners-logos {
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
  }

  .partner-logo-small {
    height: 35px;
    width: auto;
    max-width: 90px;
  }

  /* CTA Section */
  .programs-cta-section {
    padding: 50px 0;
  }

  .programs-cta-block {
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
  }

  .programs-cta-title {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 25px;
  }

  .programs-cta-button {
    padding: 12px 40px;
    font-size: 15px;
    width: 100%;
    max-width: 300px;
  }

  .programs-cta-image-placeholder {
    min-height: 200px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .programs-hero-section {
    margin-top: -50px;
  }
  .hero-image-container {
    height: 400px;
  }

  .hero-text-overlay h1 {
    font-size: 28px;
  }

  .hero-text-overlay p {
    font-size: 13px;
  }

  .white-deco-img {
    width: 60px;
  }

  .program-card {
    padding: 16px 15px;
  }

  .program-title {
    font-size: 18px;
  }

  .program-summary {
    font-size: 13px;
    line-height: 1.5;
  }

  .program-partners {
    padding: 15px 18px;
  }

  .program-partners-logos {
    gap: 15px;
  }

  .partner-logo-small {
    height: 30px;
    max-width: 80px;
  }

  .programs-cta-block {
    padding: 30px 20px;
  }

  .programs-cta-title {
    font-size: 20px;
  }
}


