/* ==================== */
/* SECTION PRINCIPALE */
/* ==================== */
.mbp-themegrid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Source Sans Pro', sans-serif;
}

/* ============= */
/* EN-TÊTE HERO */
/* ============= */
.mbp-themegrid-hero {
    background-color: #457687;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
    background-image: linear-gradient(to right, #457687, #3a6472);
}

.mbp-themegrid-hero .mbp-themegrid-content {
    max-width: 900px;
    margin: 0 auto;
}

.mbp-themegrid-hero h1 {
    font-family: 'Amarante', cursive;
    font-size: 2.8em;
    color: #E49925;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.mbp-themegrid-hero p {
    font-size: 1.2em;
    line-height: 1.6;
    opacity: 0.9;
}

/* ================== */
/* GRILLE DE THÈMES */
/* ================== */
.mbp-themegrid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
}

/* ============== */
/* CARTE THÈME */
/* ============== */
.mbp-themegrid-tile {
    position: relative;
    width: 100%;
    height: 220px; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mbp-themegrid-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}


/* IMAGE */

.mbp-themegrid-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.mbp-themegrid-tile:hover .mbp-themegrid-image {
    transform: scale(1.05);
}

/* NOM THÈME */

.mbp-themegrid-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    font-family: 'Amarante', cursive;
    font-size: 1.4em;
    font-weight: 400;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    white-space: normal; 
    overflow: visible;
    text-overflow: clip;
    z-index: 2;
    line-height: 1.3;
}


/* OVERLAY */

.mbp-themegrid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(69, 118, 135, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mbp-themegrid-tile:hover .mbp-themegrid-overlay {
    opacity: 1;
}

.mbp-themegrid-researchers {
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.mbp-themegrid-button {
    display: inline-block;
    background-color: #E49925;
    color: #fff;
    padding: 8px 20px;
   
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
    border: 2px solid transparent;
}

.mbp-themegrid-button:hover {
    background-color: transparent;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ================== */
/* MESSAGE VIDE */
/* ================== */
.mbp-no-content {
    text-align: center;
    color: #555;
    padding: 40px;
    grid-column: 1 / -1;
    font-size: 1.1em;
}

/* ================== */
/* RESPONSIVE */
/* ================== */
@media (max-width: 768px) {
    .mbp-themegrid-grid {
        grid-template-columns: 1fr;
    }
    
    .mbp-themegrid-tile {
        height: 200px;
        max-width: 400px;
    }
    
    .mbp-themegrid-hero {
        padding: 40px 15px;
    }
    
    .mbp-themegrid-hero h1 {
        font-size: 2.2em;
    }
}
/* ===== PAGE DYNAMIQUE RESEARCH THEME CLEAN ===== */

.mbp-theme-dynamic {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
    color: #333;
    font-family: 'Source Sans Pro', sans-serif;
}

.mbp-theme-dynamic-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 60px;
}

.mbp-theme-dynamic-image {
    flex: 0 0 360px;
    max-width: 100%;
}

.mbp-theme-dynamic-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mbp-theme-dynamic-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.mbp-theme-dynamic-description {
    flex: 1;
    min-width: 300px;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    color: #444;
}

.mbp-theme-dynamic-description p {
    margin-bottom: 1.6em;
}

/* ======= SECTION TOGGLE + BUTTON ======= */
.mbp-theme-scientists-toggle {
    text-align: center;
    margin: 60px 0 40px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.mbp-theme-scientists-text {
    font-size: 1.25em;
    margin-bottom: 20px;
    color: #457687;
    font-weight: 700;
}

.mbp-theme-scientists-toggle button {
    background-color: #457687;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(69, 118, 135, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbp-theme-scientists-toggle button:hover {
    background-color: #E49925;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(228, 153, 37, 0.25);
}

/* ======= LISTE SCIENTISTS ======= */
.mbp-scientists-list {
    display: none;
    max-width: 900px;
    margin: 30px auto 60px;
    background: #fafafa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mbp-scientists-list.mbp-show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.mbp-scientists-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.mbp-scientists-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  transition: background-color 0.2s ease;
}

.mbp-scientists-list li:hover {
  background-color: #f9f9f9;
}

.mbp-member-name {
  flex: 1;
  font-weight: 300;
  font-size: 1em;
  color: #333;
}

.mbp-member-role {
  flex: 1;
  font-size: 0.95em;
  color: #666;
  text-align: left;
}

.mbp-dynamic-icon {
  flex-shrink: 0;
  font-size: 1.2em;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #457687;
  transition: all 0.2s ease;
}

.mbp-dynamic-icon:hover {
  background-color: #457687;
  color: #fff;
  transform: scale(1.1);
}

.mbp-dynamic-icon {
    text-decoration: none;
    font-size: 1.2em;
    color: #457687;
    margin-left: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.mbp-dynamic-icon:hover {
    color: #fff;
    background-color: #457687;
    transform: scale(1.1);
}
.mbp-page-hero,
.mbp-themegrid-hero {
    margin-top: 80px;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
    .mbp-theme-dynamic-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .mbp-theme-dynamic-description {
        font-size: 1em;
    }

    .mbp-theme-scientists-text {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .mbp-theme-dynamic {
        margin: 30px auto;
        padding: 0 15px;
    }

    .mbp-scientists-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mbp-dynamic-icon {
        margin-left: 0;
        align-self: flex-end;
    }

    .mbp-theme-scientists-toggle button {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
  .mbp-hero-content {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}
