:root {
    --primary-color: #1A1D21;
    --accent-color: #00F0C8;
    --secondary-gray: #808080;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --border-color: #E1E4E8;
    --text-dark: var(--primary-color);
    --text-light: var(--secondary-gray);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Header --- */
#main-header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo img {
    max-height: 50px;
    width: auto;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-color);
}
.mobile-menu-button { display: none; }

main {
    padding-top: 80px;
}

/* --- 3. Styles des Boutons & Titres --- */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem;
}
.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(0, 240, 200, 0.39);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(0, 240, 200, 0.45);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}
.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
}
.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1rem auto 0;
}

.catalogue-section, .catalogue-section-premium {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}
.catalogue-section:nth-child(2n) { 
    background-color: var(--bg-light);
}

.catalogue-section-premium .btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.catalogue-section-premium .btn-secondary {
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.section-header.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.section-header.logos img {
    max-height: 100px;
    width: 90px;
    border-radius: 30%;
    object-fit: contain;
    background-color: var(--white);
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--bg-light);
}
.x-separator {
    font-size: 1.5rem;
    color: var(--text-light);
}

.catalogue-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.light-text {
    font-weight: normal;
    font-size: 2rem;
    font-style: italic;
    display: block;
}

.bold-text {
  display: block;
  font-weight: 800;
}

.catalogue-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.7;
}

/* Section Premium (MBA) */
.catalogue-section-premium {
    background-color: var(--primary-color);
}
.catalogue-section-premium .catalogue-title,
.catalogue-section-premium .catalogue-desc,
.catalogue-section-premium .x-separator {
    color: var(--white);
}
.catalogue-section-premium .catalogue-desc {
    color: rgba(255, 255, 255, 0.8);
}
.premium-offer-box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}
.offer-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.offer-item i {
    color: var(--accent-color);
}

/* --- NOUVEAU : Grille des modules du MBA --- */
.premium-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto 3rem;
  color: var(--white);
}

/* --- NOUVEAU : Style pour le titre des modules MBA --- */
.modules-title {
  color: var(--white);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem; /* Espace au-dessus */
  margin-bottom: 1.5rem; /* Espace avant la grille */
}

.module-item {
  background-color: rgba(0, 240, 200, 0.1); /* Fond semi-transparent avec la couleur accentuée */
  border: 1px solid rgba(0, 240, 200, 0.3);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.3s ease;
}

.module-item:hover {
  background-color: rgba(0, 240, 200, 0.2); /* S'éclaircit au survol */
}

.module-item i {
  color: var(--accent-color);
  font-size: 1.6rem;
  width: 25px; /* Aligne les icônes */
}

.module-item span {
  font-weight: 500;
  font-size: 1rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr; /* Une seule colonne */
  gap: 1.5rem;
  max-width: 800px;
  margin: 3rem auto 0;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05); /* Fond pour section premium */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.testimonial-card img {
  width: 70px; /* Taille légèrement ajustée pour l'harmonie */
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Le conteneur qui gère l'alignement texte / auteur */
.testimonial-body {
  flex: 1;
  display: flex;
  justify-content: space-between; /* Pousse les éléments aux extrémités */
  align-items: flex-start;
  gap: 1.5rem;
}

.testimonial-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding-right: 1rem; /* Empêche le texte de toucher le nom */
  flex-basis: 70%; /* Le texte prend 70% de l'espace */
}

/* Colore le premier guillemet du texte */
.testimonial-text::first-letter {
  color: var(--accent-color);
  font-size: 1.1em; /* Un peu plus grand */
  font-weight: 600;
}

.testimonial-author {
  text-align: right; /* Aligne le texte de l'auteur à droite */
  flex-shrink: 0; /* Empêche ce bloc de rétrécir */
}

.author-name {
  display: block;
  font-weight: 700;
  color: var(--white);
}

.author-promo {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}


/* --- Responsive pour les mobiles --- */
@media (max-width: 700px) {
  .testimonial-body {
    flex-direction: column; /* Repasse en mode vertical */
    align-items: flex-start; /* Tout est aligné à gauche */
    gap: 1rem;
  }

  .testimonial-author {
    text-align: left; /* Aligne le nom à gauche sur mobile */
    margin-top: 0.5rem;
  }
  
  .testimonial-text {
    flex-basis: auto; /* Annule la largeur de base */
    padding-right: 0;
  }
}

/* --- Styles pour les détails de la section Premium --- */
.premium-details {
    max-width: 700px;
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-details h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

.premium-details h3:first-child {
    margin-top: 0;
}

.premium-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.premium-details .details-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.premium-details .details-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.premium-details .details-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 4px;
    width: 20px; /* Aligne les icônes */
}

.limited-spots {
    color: var(--accent-color);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

.premium-details .deadline {
    text-align: center;
    color: var(--white);
    font-weight: 600;
    margin-top: 2rem;
    padding: 0.8rem;
    background-color: rgba(0, 240, 200, 0.1);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
}

/* Liste des formations (IAM) */
.feature-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.feature-list li {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-list i {
    color: var(--accent-color);
    font-size: 1.5rem;
    width: 24px;
}

/* Blocs d'offres */
.grid-offres {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  align-items: stretch;
}

.offre-bloc {
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  /*justify-content: space-between;*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offre-bloc .cta-container {
  margin-top: auto;
}

.offre-bloc:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#bloc-modulaire {
  max-width: 600px;
}

.bloc-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.bloc-header i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.bloc-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.offre-bloc .content-list {
  list-style-type: '✓ ';
  padding-left: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.offre-bloc .content-list li {
  padding: 0.3rem 0;
}

.advantages-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 1rem;
}

.advantages-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}

.advantages-list i {
  color: var(--accent-color);
  width: 16px;
}

.offre-bloc .cta-container {
  margin-top: auto;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-container {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 5. Section FAQ --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.faq-list {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    transition: all 0.3s ease;
}
.faq-item.open {
    border-color: var(--accent-color);
}
.faq-question {
    width: 100%;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}
.faq-question:hover {
    color: var(--accent-color);
}
.faq-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    font-weight: bold;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    line-height: 1.7;
}
.faq-answer strong {
    color: var(--text-dark);
}
.faq-answer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
}
.faq-answer a:hover {
    color: var(--accent-color);
}
.faq-item.open .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
}

/* --- 6. Footer --- */
footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}
.footer-about h3.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-links a {
    color: var(--primary-color);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}
.footer-form-container h4 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 240, 200, 0.3);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- 7. Styles Responsives --- */
@media (max-width: 991px) {
    .nav-links { display: none; }
    .mobile-menu-button { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .catalogue-title { font-size: 2.2rem; }
    .catalogue-desc { font-size: 1.1rem; }
    .premium-offer-box, .feature-list {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
}