/* 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: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: 20px;
  border: 2px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  flex: 1;
}

.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;
}

/* LIEN CARTE (index) */
.program-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.program-card-link:hover .program-card {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

.program-card-cta {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.program-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F90;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.program-card-link:hover .program-card-btn {
  background: #E68500;
  transform: translateX(4px);
}

/* PAGE SHOW – Hero plus compact */
.program-show-hero-section .hero-image-container {
  height: 380px;
}

/* PAGE SHOW – Contenu */
.program-show-section {
  padding: 40px 0 80px 0;
}

.program-show-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4B5563;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.program-show-back:hover {
  color: #F90;
}

.program-show-card {
  background: #fff;
  border-radius: 30px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.program-show-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid #E5E7EB;
}

.program-show-logo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-right: 1px solid #E5E7EB;
  background: linear-gradient(180deg, #EAF4FD 0%, #F7FFF3 100%);
  min-height: 200px;
}

.program-show-logo-img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.program-show-logo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #F3F4F6;
  border: 2px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #111827;
}

.program-show-title-block {
  display: flex;
  align-items: center;
  padding: 32px 40px;
}

.program-show-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}

.program-show-body {
  padding: 36px 40px;
  border-bottom: 1px solid #E5E7EB;
}

.program-show-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #F90;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
}

.program-show-summary {
  font-size: 15px;
  line-height: 28px;
  color: #374151;
}

.program-show-summary p {
  margin: 0 0 16px 0;
}

.program-show-summary p:last-child {
  margin-bottom: 0;
}

.program-show-partners {
  padding: 32px 40px;
}

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

.program-show-partner-logo {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.program-show-partner-logo:hover {
  opacity: 1;
}

/* SECTION STARTUPS */
.program-startups-section {
  margin-top: 40px;
}

.program-startups-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.program-startups-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.program-startups-count {
  background: linear-gradient(135deg, #FFF3D6 0%, #FFE8A0 100%);
  color: #92600A;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #F9D06A;
}

.program-startups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.startup-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.startup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.startup-card-logo-block {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #EAF4FD 0%, #F7FFF3 100%);
  border-bottom: 1px solid #E5E7EB;
  padding: 20px;
}

.startup-card-logo-img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.startup-card-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F3F4F6;
  border: 2px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.startup-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;
}

.startup-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.startup-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

.startup-card-sector {
  flex-shrink: 0;
  background: #F0FDF4;
  color: #15803D;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #BBF7D0;
  white-space: nowrap;
}

.startup-card-description {
  font-size: 13px;
  line-height: 22px;
  color: #6B7280;
  margin: 0;
  flex: 1;
}

.startup-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #F90;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.startup-card-link:hover {
  gap: 8px;
}

/* Statistiques du programme */
.program-stats-section {
  padding: 0 0 40px 0;
}

.program-stats-card {
  background: #172735;
  border-radius: 30px;
  padding: 60px 40px;
}

.program-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
}

.program-stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.program-stat-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px 0;
  line-height: 50px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.program-stat-value {
  font-size: 96px;
  font-weight: 700;
  color: #F90;
  margin: 0;
  line-height: 88px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-stat-item.animate-in .program-stat-value {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1024px) {
  .program-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-stat-item {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .program-stats-grid {
    grid-template-columns: 1fr;
  }

  .program-stat-item {
    text-align: center;
  }

  .program-stat-value {
    font-size: 64px;
    line-height: 64px;
  }
}

.startup-card-hidden {
  display: none;
}

.startups-load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.startups-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #111827;
  border: 1.5px solid #E5E7EB;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.startups-load-more-btn:hover {
  border-color: #F90;
  color: #F90;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,153,0,0.15);
}

.startups-load-more-btn svg {
  transition: transform 0.2s ease;
}

.startups-load-more-btn:hover svg {
  transform: translateY(2px);
}

/* Responsive startups */
@media (max-width: 1024px) {
  .program-startups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .program-startups-grid {
    grid-template-columns: 1fr;
  }

  .program-startups-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .program-show-hero-section .hero-image-container {
    height: 300px;
  }

  .program-show-header {
    grid-template-columns: 1fr;
  }

  .program-show-logo-block {
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    min-height: 160px;
    padding: 24px;
  }

  .program-show-title-block {
    padding: 24px;
  }

  .program-show-title {
    font-size: 22px;
  }

  .program-show-body,
  .program-show-partners {
    padding: 24px;
  }
}

/* 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;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  .programs-hero-section .container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .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-reverse;
    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;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  .programs-hero-section .container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .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 {
    flex-direction: column-reverse;
    padding: 30px 20px;
  }

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


