/* === Desktop === */
@media (min-width: 992px) {
  .mega-dropdown {
    position: relative;
  }

  .mega-dropdown .dropdown-menu {
    position: absolute;
    top: 100%; /* juste en dessous du lien parent */
    left: 50%; /* centrage horizontal */
    transform: translateX(-50%);
    width: auto; /* s'adapte au contenu */
    min-width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}

/* === Mobile === */
@media (max-width: 991px) {
  .mega-dropdown .dropdown-menu {
    position: static; /* le menu suit le flux normal */
    transform: none;
    width: 100%; /* occupe tout l’espace */
    box-shadow: none;
    padding: 0.5rem 1rem;
  }
}

/* Couleur personnalisée */
.text-purple {
    color: #4b2666;
}
.text-white {
    color: #fff !important;
}
.btn-outline-purple {
    border-color: #4b2666;
    color: #4b2666;
}

.btn-outline-purple:hover {
    background-color: #4b2666;
    color: white!important;
}
.btn-outline-purple.active{
    background-color: #4b2666;
    color: white;
}
.media-link-active {
    background-color: #f3e9fa;
    color: #4b2666 !important;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.08);
    border: 1px solid #c1a3f5;
}
.media-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.media-icon {
    font-size: 2rem;
    color: #6f42c1;
}
/* Carte événement */
.event-card {
    border-left: 5px solid #6f2c91;
    background-color: #fdfcff;
}

/* Icône calendrier */
.calendar-icon {
    text-align: center;
    width: 80px;
    background: #e5d4f3;
    border-radius: 6px;
    padding: 0.5rem 0.25rem;
}

.calendar-day {
    font-size: 1.6rem;
    font-weight: bold;
    color: #6f2c91;
}

.calendar-month {
    font-size: 0.8rem;
    color: #4b2666;
    text-transform: uppercase;
}

.banner-adhesion {
    background-color: #4b2666;
    background-size: cover;
    background-position: center;
    color: white;
}

.banner-adhesion .btn {
    background-color: #15C30B;
    border: none;
}

.banner-adhesion .btn:hover {
    background-color: #c1b8af;
}
.custom-hr {
    height: 20px;
    border: none;
    display: flex;
    margin: 1rem 0;
    overflow: hidden;
}

.custom-hr .green-part {
    background-color: #b6fcb6;
    /* vert clair */
    width: 80%;
    height: 100%;
}

.custom-hr .purple-part {
    background-color: #c1a3f5;
    /* violet doux */
    width: 20%;
    height: 100%;
}
.recommendation-card {
    border-left: 5px solid #6f42c1;
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.podcast-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}
.podcast-card h5 {
    color: #6f42c1;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
audio {
    width: 100%;
    margin-top: 10px;
}
.bg-label-purple {
    background-color: rgba(75, 38, 102, 0.1); /* légère transparence */
    color: #4b2666; /* texte violet */
    border: 1px solid #4b2666; /* bordure subtile, comme les bg-label-* */
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem; /* arrondi similaire à Bootstrap */
    font-weight: 500;
    font-size: 0.875rem;
}
.border-label-purple {
    border: 1px solid #4b2666!important;
    color: #4b2666;
    border-radius: 0.375rem; /* même arrondi que Bootstrap */
    padding: 0.8rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: transparent; /* fond transparent */
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gallery-thumb img {
    border-radius: 4px;
    transition: transform 0.2s;
}
.gallery-thumb img:hover {
    transform: scale(1.05);
}
