.formation {
  border-bottom: 1px solid rgb(128, 128, 128);
  margin-bottom: 1rem;
}

.formation>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formation>div>p {
  margin-bottom: 0 !important;
}

.formation .formation-price {
  font-size: 1.5rem;
  font-weight: 700;
}

.formation .formation-inscription-button {
  padding: 0.5rem 1rem;
}

.formation .formation-icons {
  display: flex;
  gap: 0.5rem;
}

.formation .formation-icons img {
  height: 20px;
  width: 20px;
}

.formations_bloc {
  font-size: 15px;
}

.module-description {
  width: 100%;
}

.module-description summary {
  background-color: #004F71;
  color: #fff;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
}

.module-description details>div {
  padding: 1rem 2rem;
}

.modules-list {
  display: flex;
  flex-direction: column;
}

.modules-list>a {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  background-color: #EDEDED;
  color: #1387ca;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.modules-list>a:hover {
  color: #EDEDED !important;
  background-color: #1387ca !important;
  text-decoration: none !important;
}

.modules-list>a>div {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modules-list img {
  height: 16px;
  width: 16px;
}

.modules-list-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modules-list-filters>div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modules-list-filters>div>span {
  padding: 0.25rem 1rem;
  background-color: #EDEDED;
  border-radius: 25px;
}

.modules-list-filters>div>span:hover,
.modules-list-filters>div>span:active,
.modules-list-filters>div>span.active {
  cursor: pointer;
  color: #EDEDED !important;
  background-color: #1387ca !important;
}

.modules-list-filters img {
  height: 13px !important;
}

.ui-tabs .ui-tabs-nav {
  padding: 0;
  display: flex;
}

.ui-tabs .ui-tabs-nav li {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  margin: 0;
  border-radius: 0;
  border: none;
}

.dendreo-popup-link {
  text-decoration: underline !important;
  font-size: 15px;
  cursor: pointer;
}

.dendreo-popup {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 10;
  display: none;
}

.dendreo-popup.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dendreo-popup.active>.dendreo-popup-link {
  text-decoration: underline;
  margin-top: 1rem;
  color: white;
  font-size: revert;
  cursor: pointer;
}

.ui-widget-header {
  border: none !important;
  background-color: transparent !important;
}

.ui-widget.ui-widget-content {
  border: none !important;
}

.ui-tabs .ui-tabs-panel {
  padding: 1em 0.2em !important;
}

/*
 * ===============================================
 * STYLES FINAUX WIDGET SAWI (v14 - Animation Bouton Corrigée)
 * ===============================================
 */

/* 1. Importation de la police Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;700&display=swap');

/* 2. Masque les onglets (FMP, SAWI...) */
div[id^="formation_bloc_"] .ui-tabs-nav {
  display: none !important;
}

/* 3. Le Conteneur "Gros Bloc Bleu" */
div[id^="formation_bloc_"] .dendreo-grid-container {
  background-color: rgb(0, 51, 102);
  /* Le bleu FMP */
  color: #ffffff;
  border-radius: 0;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  font-family: 'Roboto', sans-serif;

  /* Fixe la largeur max et centre le bloc */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 4. Responsive (Passe de 3 à 1) */
@media (max-width: 767px) {
  div[id^="formation_bloc_"] .dendreo-grid-container {
    grid-template-columns: 1fr;
    gap: 40px 30px;
  }
}

/* 5. Colonne de contenu (l'ancienne "carte") */
div[id^="formation_bloc_"] .formation {
  background-color: transparent;
  color: #000000;
  padding: 2rem;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  text-align: center;
  border: solid 1px #0000001A;
  font-family: 'Roboto', sans-serif;
}

/* 6. Style des textes (Durée, Date, Prix) */
div[id^="formation_bloc_"] .formation-duration {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 0.75rem 0;
  min-height: auto;
  text-transform: uppercase;
}

div[id^="formation_bloc_"] .formation-bloc2 {
  flex-direction: column;
}

div[id^="formation_bloc_"] .formation-date-container {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  align-items: center;
}

div[id^="formation_bloc_"] .formation-date {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  min-height: auto;
  margin-bottom: 0px;
}

div[id^="formation_bloc_"] .formation-price {
  display: none;
  /* Masque le prix */
}

div[id^="formation_bloc_"] .formation-divider {
  width: 80%;
  height: 1px;
  background-color: #0000001A;
}

/* 7. Conteneur du bouton */
div[id^="formation_bloc_"] .formation-button-wrapper {
  margin-top: 1rem;
  width: 100%;
  max-width: 280px;
}

div[id^="formation_bloc_"] .diplome-bloc-icon {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

/* 8. Le bouton "Inscription" (Nouvelle animation) */
div[id^="formation_bloc_"] .formation-inscription-button {
  background-color: #FFDE00 !important;
  color: #000000 !important;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;



  /* Crée un espace pour les bordures en les rendant transparentes */
  border: 2px solid transparent;

  border-radius: 0;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem;
  font-size: 18px;
  position: relative;

  /* Transition 0.3s sur tout */
  transition: all 0.3s ease;
}

/* 9. Animation au Survol (Nouvelle animation) */
div[id^="formation_bloc_"] .formation-inscription-button:hover {
  background-color: #FEC601 !important;
  /* Fond Bleu */

  /* Active les bordures haut/bas */
  border-top: 2px solid #ffffff;
  /* Ligne blanche en haut */
  border-bottom: 2px solid #ffffff;
  /* Ligne blanche en bas */

  /* Garde left/right transparent */
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;

  text-decoration: none !important;
  opacity: 1;
}

/* 10. Cache la structure de l'ancien design (au cas où) */
.formation-card-h,
div[id^="formation_bloc_"] .formation-item {
  display: none;
}

/* 11. Style pour le message "Dates sur demande" */
div[id^="formation_bloc_"] .dendreo-fallback-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 0;
}

div[id^="formation_bloc_"] .dendreo-fallback-message p {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
}

div[id^="formation_bloc_"] .dendreo-fallback-message a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

div[id^="formation_bloc_"] .dendreo-fallback-message a:hover {
  text-decoration: none;
}

/* ========================
   WIDGET SAWI — Sidebar Card
   ======================== */

/* Conteneur principal du widget */
.sawi-widget-container {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* Carte de formation */
.sawi-formation-card {
  background-color: #FFFDF2 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Titre */
.sawi-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.25rem 0;
  line-height: 1.3;
}

/* Ligne d'info (icône + texte) */
.sawi-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sawi-card-row-multiline {
  align-items: flex-start;
}

.sawi-card-row span,
.sawi-card-row div {
  font-size: 14px;
  color: #333333;
}

/* Icône circulaire jaune */
.sawi-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color:#FFDE00;
  color:black;
}

.sawi-card-icon svg {
  width: 18px;
  height: 18px;
}

/* Section prix */
.sawi-card-pricing {
  margin: 1.25rem 0;
  padding-top: 0.5rem;
}

.sawi-price-line {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.sawi-price-full {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.sawi-price-separator {
  font-size: 20px;
  color: #666666;
}

.sawi-price-sub {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.sawi-price-note {
  font-size: 12px;
  color: #666666;
  margin: 0.25rem 0 0 0;
  line-height: 1.4;
}

/* Boutons */
.sawi-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sawi-formation-card   .sawi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 14px;
  font-weight: 700 !important;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  box-sizing: border-box;
}


.sawi-formation-card  .sawi-btn-primary {
  width: 100%;
  background-color:#FFDE00;
}

 .sawi-btn-primary:hover,  .sawi-formation-card .sawi-btn-primary:focus {
  background-color:#FEC601!important;
  opacity: 0.9;
}

.sawi-btn-row {
  display: flex;
  gap: 0.5rem;
}

.sawi-formation-card  .sawi-btn-outline {
  background-color: white ;
  border: 2px solid #0000001A ;
  color: #1a1a1a ;
  flex: 1;
  padding: 0.375rem ;
}

.sawi-formation-card  .sawi-btn-outline:hover {
  background-color: #1a1a1a;
  color: #ffffff ;
}

.sawi-btn-brochure svg {
  flex-shrink: 0;
}

/* Message fallback */
.sawi-no-data {
  font-style: italic;
  color: #999999;
  font-size: 14px;
}

.sawi-no-sessions {
  font-style: italic;
  color: #666666;
  font-size: 14px;
  margin-top: 0.5rem;
}

.sawi-widget-container .sawi-tabs .active {
  background-color: #FFDE00;
}

.sawi-widget-container .sawi-tab:hover {
  background-color: #FFDE00;
}

/* ========================
   RESPONSIVE & MOBILE STICKY
   ======================== */
@media (max-width: 767px) {
    .sawi-formation-card {
        padding: 1rem;
    }

    .sawi-price-line {
        flex-direction: column;
        gap: 0;
    }

    .sawi-price-separator {
        display: none;
    }

    .sawi-btn-row {
        flex-direction: row;
    }

    /* --- STICKY BOTTOM BAR (titre + boutons) --- */
    .sawi-card-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(254, 249, 239, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
        gap: 0.4rem;
    }

    /* Titre sticky au-dessus des boutons */
    .sawi-card-buttons::before {
        content: attr(data-title);
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .sawi-btn {
        padding: 0.6rem 1rem;
        font-size: 13px;
    }

    /* Espace pour ne pas masquer le contenu derrière le sticky */
    .sawi-widget-container {
       /* padding-bottom: 180px; */
    }
}

/* ========================
   MODAL BROCHURE (ActiveCampaign)
   ======================== */

.sawi-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.sawi-modal-overlay.active {
  display: flex;
  animation: sawi-fade-in 0.2s ease;
}

@keyframes sawi-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.sawi-modal {
  background-color: #ffffff;
  width: 90vw;
  max-width: 600px;
  max-height: 85vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sawi-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.sawi-modal-close:hover {
  color: #000;
}

.sawi-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.sawi-modal-body iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: none;
}

/* Button style fix for brochure button element */
button.sawi-btn-brochure {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: transparent;
}