/* Unboxing container restrictions for PDF layout pages */
body:has(.pdf-content) #page.grid-container,
body:has(.pdf-content) #content.site-content,
body:has(.pdf-content) #primary.content-area,
body:has(.pdf-content) main.site-main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

:root {
  --primary-color: #643a84;
  --secondary-color: #f68d2e;
  --bg-light: #f5f5f5;
  --text-dark: #333;
  --text-light: #666;
  --spacing-unit: 1rem;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 2rem);
}

/* Modern Navigation */
.nav-menu {
  background-color: rgba(230, 230, 250, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Modern Hero Section */
.hero {
  position: relative;
  min-height: clamp(300px, 50vh, 600px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  animation: fadeInUp 0.5s ease-in-out;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    min-height: clamp(400px, 60vh, 700px);
  }
}

.container {
  position: relative;
  width: 100%;
  height: auto;
}

.float-container {
  float: left;
  width: 100%;
}

@media (min-width: 768px) {
  .float-container {
    float: left;
  }
}

.info-container {
  float: left;
  align-items: center;
  width: 100%;
}

.hero-subtitle.page-info {
  margin-right: auto;
}

.pdf-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .pdf-float {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.pdf_button {
  width: clamp(150px, 40vw, 200px);
  max-width: 100%;
}

.pdf-download-link {
  margin-left: 0;
  margin-top: 1rem;
  border-radius: 5px;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .pdf-download-link {
    margin-left: clamp(20px, 10vw, 100px);
    margin-top: 0;
    width: auto;
  }
}

/* NOUVEAU : Décalage supplémentaire du bouton PDF vers la gauche */
@media (min-width: 768px) {
  .pdf-download-link {
    margin-left: clamp(0px, 5vw, 40px) !important; /* Réduit le margin-left pour décaler vers la gauche */
    transform: translateX(-30px); /* Décalage supplémentaire de 30px vers la gauche */
  }
}

.pdf-download-link img {
  height: auto;
  max-width: clamp(40%, 15vw, 55%);
  min-width: 80px;
  display: block;
  margin: 0 auto;
  padding: clamp(10px, 3vw, 15px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(45deg, rgba(100, 58, 132, 0.1), rgba(246, 141, 46, 0.1));
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

@media (max-width: 767px) {
  .hero::before {
    width: 30%;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 20% 100%);
  }
}

.hero-content {
  padding: clamp(1rem, 5vw, 4rem);
  padding-top: 0;
  margin-top: 0;
  z-index: 2;
  animation: fadeInUp 0.5s ease-in-out;
}

@media (max-width: 767px) {
  .hero-content {
    padding: clamp(0.5rem, 3vw, 2rem);
    text-align: center;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: #333333 !important;
}

.hero h2 {
  font-size: clamp(2rem, 3.1vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: clamp(0.7rem, 1vw, 1rem);
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .hero-subtitle {
    max-width: 600px;
  }
}

/* Hero Image Wrapper */
.hero-image-wrapper {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-image-wrapper {
    display: flex;
  }
}

@media (max-width: 767px) {
  .hero-image-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 2rem;
  }
}

.hero-image {
  width: 100%;
  max-width: clamp(200px, 50vw, 300px);
  height: auto;
  animation: fadeInRight 0.7s ease-in-out 0.2s;
}

@media (max-width: 767px) {
  .hero-image {
    transform: none;
    max-width: clamp(150px, 40vw, 250px);
  }
}

/* Main Content Layout */
.course-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 2rem);
  animation: fadeIn 0.5s ease-in-out;
}

@media (min-width: 1024px) {
  .course-container {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    overflow: visible;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.section-title {
  color: #822583 !important;
  font-size: clamp(18px, 4vw, 24px);
  margin-bottom: clamp(15px, 3vw, 20px);
  padding-bottom: clamp(8px, 2vw, 10px);
  border-bottom: 2px solid #eee;
  animation: fadeInUp 0.5s ease-in-out;
}

.programme-detaille {
  color: #822583 !important;
}

.hero h3 {
  color: #54595F !important;
	font-family: 'Roboto', sans-serif !important;
	  font-size: 16px !important;
}

.western {
  color: #54595F !important;
	font-family: 'Roboto', sans-serif !important;
	  font-size: 16px !important;
}

.content-list {
  list-style-type: none;
  padding-left: 0;
  padding-bottom: -150px;
  animation: fadeInUp 0.5s ease-in-out;
}

.content-list li {
  margin: clamp(8px, 2vw, 10px) 0;
  line-height: 1.6;
  font-size: clamp(14px, 3vw, 16px);
  border: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.prerequisites {
  background-color: #f9f9f9;
  padding: clamp(15px, 4vw, 20px);
  border-radius: 8px;
  margin-bottom: clamp(20px, 5vw, 30px);
  animation: fadeInUp 0.5s ease-in-out;
}

.pedagogie {
  background-color: #f9f9f9;
  padding: clamp(15px, 4vw, 20px);
  border-radius: 8px;
  margin-bottom: clamp(20px, 5vw, 30px);
  animation: fadeInUp 0.5s ease-in-out;
}

.module {
  margin-bottom: clamp(20px, 5vw, 30px);
  padding: clamp(15px, 4vw, 20px);
  background: white;
  border-left: 5px solid #624595;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: fadeInUp 0.5s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.module:hover {
  border-left-color: #f68d2e;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  transform: translateY(-5px);
}

.module-title {
  font-size: clamp(16px, 3.5vw, 18px);
  font-weight: bold;
  color: #232f3e;
  margin-bottom: clamp(12px, 3vw, 15px);
}

.module-content ul {
  list-style-type: none;
  padding-left: 0;
}

.module-content li {
  margin: clamp(8px, 2vw, 10px) 0;
  padding: clamp(6px, 1.5vw, 8px) 0;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
  font-size: clamp(14px, 3vw, 16px);
}

/* Supprime les bordures pour les éléments de contenu simple */
.modalites-content li,
.accessibility li,
.contact-info li,
.inscription-process li {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.lab-practice {
  color: #1a73e8;
  font-style: italic;
}

/* Section sticky */
.dates-section {
  position: static;
  z-index: 50;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: clamp(12px, 3vw, 15px);
  transition: opacity 0.3s ease-in-out;
  margin-top: 2rem;
}

.dates-section.sticky {
  opacity: 1;
}

@media (min-width: 1024px) {
  .dates-section {
    position: sticky;
    top: clamp(120px, 15vh, 150px);
    max-height: calc(100vh - 120px);
    z-index: 50;
    overflow-y: auto;
    margin-top: 0;
  }
}

/* Enhanced Buttons */
.btn-container {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vw, 10px);
  width: 100%;
}

@media (min-width: 768px) {
  .btn-container {
    flex-direction: row;
    width: auto;
  }
}

.btn {
  display: flex;
  padding: clamp(14px, 3vw, 18px);
  font-size: clamp(13px, 3vw, 15px);
  font-weight: light;
  text-decoration: none;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-family: "Comfortaa", Sans-serif;
  transition: background-color 0.3s, color 0.3s, font-weight 0.3s, box-shadow 0.3s;
  margin-top: clamp(8px, 2vw, 10px);
  animation: fadeInUp 0.5s ease-in-out;
  color: white !important;
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .btn {
    width: auto;
    min-width: 120px;
  }
}

.btn-primary {
  background-color: #522583;
}

.btn-primary:hover {
  background-color: #643a84;
  font-weight: bold; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: #e28542;
}

.btn-secondary:hover {
  background-color: #c67229;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn2-secondary {
  background-color: #58545fc8;		   
}

.btn2-secondary:hover {
  background-color: #453a5b;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.inscription-process {
  margin-bottom: clamp(15px, 4vw, 20px);
  line-height: 1.6;
  animation: fadeInUp 0.5s ease-in-out;
  font-size: clamp(14px, 3vw, 16px);
}

.inscription-link {
  color: #8b008b;
  text-decoration: underline;
  font-weight: 500;
  animation: fadeInUp 0.5s ease-in-out;
}

.inscription-link:hover {
  text-decoration: none;
}

.deadline {
  margin-top: clamp(12px, 3vw, 15px);
  padding: clamp(8px, 2vw, 10px);
  background-color: #f8f9fa;
  border-left: 4px solid #ff7f50;
  font-style: italic;
  animation: fadeInUp 0.5s ease-in-out;
  font-size: clamp(13px, 3vw, 15px);
}

/* Supprime tous les encadrements indésirables */
.accessibility,
.contact-info,
.inscription-process,
.modalites-content > *:not(.deadline),
.sub-title,
.email-link {
  border: none !important;
  box-shadow: none !important;
}

/* Supprime spécifiquement les bordures sur les paragraphes et textes */
.accessibility p,
.contact-info p,
.inscription-process p,
.modalites-content p,
.modalites-content div:not(.deadline) {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.accessibility {
  margin: clamp(20px, 5vw, 25px) 0;
  padding-top: clamp(12px, 3vw, 15px);
  border-top: 1px solid #eee;
  animation: fadeInUp 0.5s ease-in-out;
}

.contact-info {
  margin-top: clamp(15px, 4vw, 20px);
  padding-top: clamp(12px, 3vw, 15px);
  border-top: 1px solid #eee;
  animation: fadeInUp 0.5s ease-in-out;
}

/* Supprime les bordures indésirables dans les sections d'information */
.accessibility p,
.accessibility div,
.modalites-content p,
.modalites-content div,
.contact-info p,
.contact-info div,
.inscription-process,
.inscription-process p,
.inscription-process div {
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Garde seulement les bordures top nécessaires */
.accessibility {
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

.contact-info {
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

.sub-title {
  color: #8b008b;
  font-size: clamp(14px, 3.5vw, 16px);
  margin-bottom: clamp(12px, 3vw, 15px);
  animation: fadeInUp 0.5s ease-in-out;
}

.contact-info {
  margin-top: clamp(15px, 4vw, 20px);
  padding-top: clamp(12px, 3vw, 15px);
  border-top: 1px solid #eee;
  animation: fadeInUp 0.5s ease-in-out;
}

.email-link {
  color: #8b008b;
  text-decoration: none;
  animation: fadeInUp 0.5s ease-in-out;
  font-size: clamp(14px, 3vw, 16px);
}

.email-link:hover {
  text-decoration: underline;
}

/* Navigation responsive améliorée */
@media (max-width: 1023px) {
  .nav-menu {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav-container {
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    justify-content: flex-start;
    min-width: max-content;
  }
}

@media (max-width: 768px) {
  .nav-container {
    gap: clamp(0.5rem, 2vw, 1rem);
  }

  .nav-menu a {
    padding: clamp(0.4rem, 1vw, 0.5rem);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
  }
}

.dates-title {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 10px);
  font-family: "Comfortaa", Sans-serif;
  color: #822583;
  font-size: clamp(18px, 4vw, 15px);
  margin-bottom: clamp(12px, 4vw, 5px);
  animation: fadeInUp 0.5s ease-in-out;
}

.calendar-icon {
  font-size: clamp(20px, 4vw, 24px);
	height: 50px;
}

.dates-list {
  list-style-type: none;
  padding-left: 0;
  animation: fadeInUp 0.5s ease-in-out;
}

.dates-list li {
  margin: clamp(8px, 2vw, 10px) 0;
  font-size: clamp(14px, 3vw, 16px);
}

.dates-list a {
  color: #8b008b;
  text-decoration: none;
  animation: fadeInUp 0.5s ease-in-out;
}

.dates-list a:hover {
  text-decoration: underline;
}

/* Responsive amélioré pour très petits écrans */
@media (max-width: 480px) {
  .container {
    padding: clamp(0.5rem, 3vw, 1rem);
  }

  .hero {
    padding: clamp(0.5rem, 2vw, 1rem);
    min-height: clamp(250px, 40vh, 400px);
  }

  .course-container {
    padding: clamp(0.5rem, 2vw, 1rem);
    gap: clamp(0.5rem, 2vw, 1rem);
  }

  .module {
    padding: clamp(10px, 3vw, 15px);
    margin-bottom: clamp(15px, 4vw, 20px);
  }

  .prerequisites,
  .pedagogie {
    padding: clamp(10px, 3vw, 15px);
    margin-bottom: clamp(15px, 4vw, 20px);
  }

  .dates-section {
    padding: clamp(8px, 2vw, 12px);
  }

  .modalites-content {
    padding: clamp(15px, 4vw, 20px);
  }
}

/* Mobile Menu - Amélioré */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  animation: fadeIn 0.5s ease-in-out;
}

@media (max-width: 640px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(230, 230, 250, 0.95);
    padding: 1rem;
    animation: fadeInDown 0.5s ease-in-out;
    backdrop-filter: blur(10px);
  }

  .nav-container.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: clamp(0.6rem, 2vw, 0.75rem);
    margin: 0.2rem 0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }

  .nav-menu a:hover {
    background-color: rgba(100, 58, 132, 0.1);
  }
}

.scroll-top {
  position: fixed;
  bottom: clamp(15px, 3vw, 20px);
  right: clamp(15px, 3vw, 20px);
  background-color: #8b008b;
  color: white;
  width: clamp(35px, 8vw, 40px);
  height: clamp(35px, 8vw, 40px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: clamp(16px, 4vw, 20px);
  animation: fadeInUp 0.5s ease-in-out;
  z-index: 1000;
}

img.image-fallback {
  display: block;
  max-width: clamp(80px, 20vw, 120px);
  max-height: clamp(80px, 20vw, 120px);
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Styles spécifiques pour les logos Microsoft */
.microsoft-logo,
img[src*="microsoft"],
img[alt*="Microsoft"],
img[alt*="microsoft"] {
  max-width: clamp(60px, 15vw, 100px) !important;
  max-height: clamp(40px, 10vw, 70px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
}

/* Cache si pas d'attribut src ou src vide */
img.image-fallback:not([src]),
img.image-fallback[src=""] {
  display: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Support pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
  .module:hover {
    transform: none;
  }
  
  .btn:hover {
    background-color: inherit;
    font-weight: inherit;
    box-shadow: inherit;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
}

/* Keyframe Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideInDown {
  0%   { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(   0 ); opacity: 1; }				  
}


/* Garde tout centré par défaut dans la section dates */
.dates-section {
  text-align:  !important;
}

/* Cible spécifiquement le paragraphe qui contient "Si aucune date" */
.dates-section p:nth-last-child(1),
.dates-section p:last-child {
  text-align: left !important;
}

/* Alternative : cibler par le contenu du lien email */
.dates-section p:has(a[href*="info@learneo"]) {
  text-align: left !important;
}

/* Ou cibler le paragraphe qui contient le numéro de téléphone */
.dates-section p:has(a[href*="01.53.20.37.00"]) {
  text-align: left !important;
}


/* Garde tout centré par défaut dans la section dates */


/* Cible spécifiquement le paragraphe qui contient "Si aucune date" */
.dates-section p:nth-last-child(1),
.dates-section p:last-child {
  text-align: left !important;
}

/* Alternative : cibler par le contenu du lien email */
.dates-section p:has(a[href*="info@learneo"]) {
  text-align: left !important;
}

/* Ou cibler le paragraphe qui contient le numéro de téléphone */
.dates-section p:has(a[href*="01.53.20.37.00"]) {
  text-align: left !important;
}

/* Titre principal de la formation. Il est en <h2> depuis 1.8.10 (le thème rend
   déjà le titre de page en <h1 class="entry-title"> — deux H1 par page était un
   défaut SEO/accessibilité). Ces valeurs reprennent à l'identique celles de
   `.hero h1` (~ligne 208) pour que le rendu visuel ne change pas ; !important
   nécessaire pour repasser devant les règles du thème. `.hero h1` est conservée
   tant que des fiches non resynchronisées portent encore l'ancien balisage. */
.hero h2 {
  font-weight: bold !important;
  font-size: clamp(2.5rem, 3.5vw, 2.6rem) !important;
  color: #333333 !important;
}

/* ==========================================================================
   PRINT STYLES (A4 Optimization & Empty Page Prevention)
   ========================================================================== */
@media print {
  /* Prevent browser default page headers and footers, and set nice margins */
  @page {
    size: A4;
    margin: 15mm 15mm 15mm 15mm;
  }

  /* Reset body and core tags for clean print */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt !important;
    line-height: 1.35 !important;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
  }

  /* Force elements to full width and remove scrollbars */
  .container, .pdf-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  /* Hide useless dynamic and interactive web elements */
  header, footer, .elementor-header, .elementor-footer, #wpadminbar,
  .nav-menu, .mobile-menu-toggle, .btn-container, .pdf-button, .pdf-download-link,
  .scroll-top, .hero-image-wrapper {
    display: none !important;
  }

  /* De-grid layout to avoid column break calculation bugs */
  .course-container {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Re-style Hero for a premium printed letterhead appearance */
  .hero {
    background: #fcfcfc !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    min-height: auto !important;
    padding: 12pt 18pt !important;
    margin-bottom: 15pt !important;
    display: block !important;
    position: relative !important;
  }

  .hero::before {
    display: none !important; /* Hide gradient shapes */
  }

  .hero-content {
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .hero h1, .hero h2 {
    font-size: 16pt !important;
    color: #643a84 !important; /* Premium brand purple */
    margin: 0 0 6pt 0 !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
  }

  .hero-subtitle {
    font-size: 9.5pt !important;
    margin-bottom: 0 !important;
    color: #333 !important;
    line-height: 1.4 !important;
  }

  /* Keep headings close to their following paragraphs */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  /* Section-specific print styling */
  .section {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 12pt !important;
  }

  .section-title {
    font-size: 12pt !important;
    color: #643a84 !important;
    margin-bottom: 8pt !important;
    padding-bottom: 4pt !important;
    border-bottom: 1.5pt solid #643a84 !important;
  }

  /* Modules (Programme) layout */
  .module {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 10pt !important;
    padding: 10pt 12pt !important;
    border: 1px solid #e0e0e0 !important;
    border-left: 4pt solid #643a84 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0 4px 4px 0 !important;
  }

  .module-title {
    font-size: 11pt !important;
    color: #222 !important;
    margin-bottom: 6pt !important;
  }

  .module-content li {
    font-size: 9.5pt !important;
    padding: 4pt 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  /* Prerequisites & Pedagogy cards */
  .prerequisites, .pedagogie {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 12pt !important;
    padding: 10pt 12pt !important;
    background-color: #fafafa !important;
    border: 1px solid #eaeaea !important;
    border-radius: 4px !important;
  }

  .prerequisites p, .pedagogie p {
    font-size: 9.5pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  /* Dates section - printed statically at the end as a clean summary card */
  .dates-section {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    margin-top: 15pt !important;
    padding: 12pt 15pt !important;
    background: #fafafa !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .dates-title {
    font-size: 11pt !important;
    color: #643a84 !important;
    margin-bottom: 8pt !important;
    font-weight: bold !important;
  }

  .calendar-icon {
    height: 20pt !important;
    width: auto !important;
  }

  /* List elements spacing */
  .content-list {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .content-list li {
    margin: 4pt 0 !important;
    font-size: 9.5pt !important;
    line-height: 1.4 !important;
  }

  /* Modalités access and text paragraphs */
  .modalites-content {
    font-size: 9.5pt !important;
    line-height: 1.4 !important;
  }

  .modalites-content p {
    padding-left: 15pt !important;
    margin-bottom: 6pt !important;
  }

  /* Accessibility/Contact sections */
  .accessibility, .contact-info {
    margin-top: 10pt !important;
    padding-top: 8pt !important;
    border-top: 1px solid #eee !important;
  }
}
