* {
  box-sizing: border-box;
}

/* ===== Navigation ===== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    background-color: #fff;
    box-shadow: none;
}

.site-branding {
  flex-shrink: 0;
}

.site-navigation-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.site-header img {
    height: 50px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Ajout d'une marge latérale sur le contenu */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bannière et menu pleine largeur */
.site-header,
.home-banner {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Marge autour du logo */
.custom-logo-link img {
    margin: 10px;
}

/* ===== Publications Grid ===== */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ===== Présentation AIMS Accueil ===== */
.home-presentation {
    background-color: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.presentation-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center; /* ✅ centrage du texte */
}

.presentation-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 15px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    color: #5e3c83;
}

.presentation-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ✅ Centrage des 3 logos */
.presentation-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; /* ✅ espace horizontal entre les logos */
    padding: 20px 0;
    background-color: #5e3c83; /* ✅ fond plus contrasté */
    border-radius: 8px;
    margin-top: 30px;
}

.presentation-logos img {
    max-height: 80px;
    width: auto;
    height: auto;
}

.presentation-icon {
    max-width: 60px;
    height: auto;
}

@media (max-width: 768px) {
    .presentation-logos {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== Page Informative ===== */
.informative-page {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.informative-title {
    font-size: 2.5rem;
    text-align: center;
    color: #5e3c83;
    margin-bottom: 20px;
}

.informative-image {
    text-align: center;
    margin-bottom: 30px;
}

.informative-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.informative-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* ===== Boîte de contact ===== */
.contact-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

/* Conteneur principal de la page contact */
.contact-page {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.contact-form-container {
  max-width: 600px;
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* Uniformiser la boîte des éléments internes */
.contact-form-container,
.contact-form-container * {
  box-sizing: border-box;
}

.contact-form-container label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #5e3c83;
}

/* Champs de formulaire */
.form-input,
.form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #5e3c83;
  outline: none;
  box-shadow: 0 0 8px rgba(127, 0, 255, 0.2);
}

/* Zone de texte (textarea) */
.form-textarea {
  height: 150px;
  resize: vertical;
}

/* Bouton d'envoi */
.form-submit {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #5e3c83;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.form-submit:hover {
  background: #7F00FF;
}

/* Messages de validation */
.wpcf7-response-output {
  margin-top: 15px;
  padding: 12px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.wpcf7-mail-sent-ok {
  background: #e7f7e6;
  color: #3c763d;
  border-color: #b2d8b2;
}

.wpcf7-validation-errors,
.wpcf7-not-valid-tip {
  background: #fdeaea;
  color: #a94442;
  border-color: #f5c6cb;
}

/* ===== Publication Item ===== */
.publication-item {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #5e3c83;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.publication-item:hover {
    transform: translateY(-5px);
}

.publication-meta {
    font-size: 0.9rem;
    color: #666;
}

.publication-excerpt {
    font-size: 1rem;
    color: #333;
    margin: 10px 0;
}

/* ===== Bouton Lire plus ===== */
.btn-read-more {
    display: inline-block;
    background: #5e3c83;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.btn-read-more:hover {
    background: #E100FF;
}

/* ===== Actualités Accueil ===== */
.home-actualites {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

/* Titre de section avec traits de chaque côté */
.section-title {
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #5e3c83;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  margin-bottom: 40px;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
}

/* Grille responsive des actualités */
.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Carte individuelle */
.home-actualite-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-actualite-item:hover {
  transform: translateY(-4px);
}

/* Image de l’article */
.home-actualite-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Contenu de l’article */
.home-actualite-content {
  padding: 20px;
}

.home-actualite-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #5e3c83;
  margin-bottom: 10px;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .home-articles-grid {
    grid-template-columns: 1fr;
  }

  .home-actualite-item {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .home-actualite-thumbnail img {
    height: auto;
  }
}

/* ===== Conteneur général ===== */
.news-section {
    padding: 60px 0;
}

.news-section .page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #5e3c83;
    margin-bottom: 40px;
}

/* ===== Grille des articles ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== Carte d’article ===== */
.news-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.news-item:hover {
    transform: translateY(-5px);
}

/* ===== Image de l’article ===== */
.news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ===== Contenu de l’article ===== */
.news-content {
    padding: 20px;
}

.news-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #5e3c83;
}

.news-content h2 a {
    text-decoration: none;
    color: inherit;
}

.news-content .news-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

/* Supprime la marge blanche en haut de la page article */
.single-post {
    padding-top: 0 !important;
}

.single-post .container {
    margin-top: 0;
    padding-top: 0;
}

/* ===== Page Article (single.php) ===== */
.single-post {
    padding: 60px 0;
}

.single-post .container {
    max-width: 800px;
    margin: auto;
}

.post-title {
    font-size: 2.2rem;
    color: #5e3c83;
    text-align: center;
}

.post-meta {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.post-thumbnail {
    text-align: center;
    margin-bottom: 30px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* ===== Grille des membres ===== */
.membres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ===== Carte membre ===== */
.membre-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.membre-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.membre-info h3 {
    font-size: 1.2rem;
    color: #5e3c83;
}

.fonction {
    font-size: 0.9rem;
    color: #666;
}

/* ===== Navigation entre articles ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-weight: bold;
}

.post-navigation a {
    color: #5e3c83;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #E100FF;
}

/* ===== Bouton Lire la suite ===== */
.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #5e3c83;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.read-more:hover {
    background: #E100FF;
}

/* ===== Pagination ===== */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    background: #5e3c83;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.pagination a:hover {
    background: #E100FF;
}

.pagination .current {
    background: #E100FF;
    font-weight: bold;
}

/* ===== Bouton "Voir toutes les actualités" ===== */
.button-container {
    text-align: center; /* Centre le bouton */
    margin-top: 40px; /* Ajoute de l'espace au-dessus */
}

.btn-actualites {
    background-color: #5e3c83; /* ✅ Fond uni violet foncé */
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    transition: background 0.3s ease-in-out;
    border: none;
}

.btn-actualites:hover {
    background-color: #7f00ff;
}

/* Correction de la grille des membres */
.membres-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les éléments */
    gap: 20px; /* Réduit l'espacement entre les cartes */
    max-width: 1200px; /* Ajuste la largeur max */
    margin: 0 auto; /* Centre la grille */
}

/* Ajustement des cartes membres */
.membre-card {
    width: 250px; /* Ajuste la largeur */
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.membre-card:hover {
    transform: translateY(-5px); /* Effet au survol */
}

/* Ajustement de l'affichage de la photo pour les permanents */
.membre-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* ========== Actualités AIMS ========== */
.actualites-loop {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.actualite-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s;
}

.actualite-item:hover {
    transform: translateY(-5px);
}

.actualite-thumbnail img {
    width: 100%;
    height: auto;
}

.actualite-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actualite-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #5e3c83;
    margin-bottom: 10px;
    text-transform: none;
    border: none;
    text-align: left;
}

.actualite-content .date {
    font-size: 0.9rem;
    color: #888;
}

.read-more {
    align-self: flex-start;
    background: #5e3c83;
    color: #fff;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.read-more:hover {
    background: #E100FF;
}

/* Dark mode */
body.dark-mode .actualites-loop {
    background-color: #1e1e1e;
}

body.dark-mode .actualite-item {
    background-color: #2a2a2a;
}

body.dark-mode .actualite-content h2 {
    color: #E100FF;
}

/* ===== Publications ===== */
.aims-publications {
    padding: 60px 0;
}

/* ===== Bannière Accueil ===== */
.home-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    background-color: #f8f8f8;
}

.home-banner img {
    width: 100%; /* L'image s'adapte à la largeur du conteneur */
    max-width: 100vw;
    height: auto; /* Conserve le ratio */
    display: block; /* Évite les marges blanches sous l’image */
    object-fit: cover; /* Couvre bien la largeur */
}

/* ===== Grille des membres ===== */
.membres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ===== Carte membre ===== */
.membre-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.membre-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.membre-info h3 {
    font-size: 1.2rem;
    color: #5e3c83;
}

.fonction {
    font-size: 0.9rem;
    color: #666;
}

/* ===== MENU RESPONSIVE ===== */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #5e3c83;
}

@media (max-width: 768px) {
    .primary-menu ul {
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: left;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .primary-menu.active ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .primary-menu ul li {
        padding: 15px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
}

.publication-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.publication-filters select, .btn-filter {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
}

.btn-filter {
    background: #5e3c83;
    color: #fff;
    cursor: pointer;
}

.year-title {
    font-size: 2rem;
    margin-top: 40px;
}

.publication-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 6px solid #5e3c83;
}

body.dark-mode .publication-item {
    background-color: #2a2a2a;
}

/* Couleur pour groupes */
.publication-item.sml { border-left-color: #007bff; }
.publication-item.quantif { border-left-color: #000000; }
.publication-item.recsan { border-left-color: #FF0000; }

/* ===== Évènements AIMS ===== */
.aims-events {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.aims-events .section-title {
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #5e3c83;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.aims-events .section-title::before,
.aims-events .section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ccc;
}

.tribe-events {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.tribe-events-calendar-list__event-title a {
    color: #5e3c83;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.tribe-events-calendar-list__event-title a:hover {
    color: #E100FF;
}

.tribe-events-calendar-list__event-datetime {
    color: #666;
    font-size: 0.9rem;
}

.tribe-events-calendar-list__event-description {
    color: #333;
    margin-top: 10px;
    line-height: 1.5;
}

.tribe-events-calendar-list__event {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    transition: transform 0.2s ease;
}

.tribe-events-calendar-list__event:hover {
    transform: translateY(-5px);
}

/* ===== Événements (The Events Calendar) – Liste personnalisée ===== */
.tribe-events-list {
    padding: 60px 0;
    background: #f9f9f9;
}

.tribe-events-list .tribe-events-event {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}

.tribe-events-list .tribe-events-event:hover {
    transform: translateY(-5px);
}

/* Titre de l'événement */
.tribe-events-list .tribe-event-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #5e3c83;
    margin: 20px;
}

/* Date / heure */
.tribe-events-list .tribe-event-date-start,
.tribe-events-list .tribe-event-date-end {
    font-size: 0.9rem;
    color: #666;
    margin: 0 20px;
}

/* Description */
.tribe-events-list .tribe-events-event-description {
    padding: 0 20px 20px;
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

/* Lien vers l'événement */
.tribe-events-list .tribe-events-read-more {
    background: #5e3c83;
    color: #fff !important;
    font-weight: bold;
    padding: 10px 20px;
    margin: 20px;
    display: inline-block;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.tribe-events-list .tribe-events-read-more:hover {
    background: #E100FF;
}

/* Image mise en avant */
.tribe-events-list .tribe-events-event-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.tribe-events-list .tribe-events-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .tribe-events-list .tribe-events-event {
        flex-direction: column;
    }

    .tribe-events-list .tribe-events-event-image {
        height: 180px;
    }
}

/* ===== Événements d'accueil ===== */
.home-events {
    background-color: #f4f4f4;
    padding: 40px 0;
    margin-top: 30px;
}

.home-events-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #5e3c83;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
}

.home-events-title::before,
.home-events-title::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #ccc;
    margin: 0 15px;
    vertical-align: middle;
}

.home-events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.event-item {
    background: #fff;
    border-left: 4px solid #5e3c83;
    padding: 15px 20px;
    border-radius: 8px;
    max-width: 300px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.event-item:hover {
    transform: translateY(-3px);
}

.event-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.event-title a {
    text-decoration: none;
    color: inherit;
}

.event-title a:hover {
    color: #5e3c83;
}

/* ===== Footer ===== */
.site-footer {
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* ✅ marge droite et gauche */
}

.footer-left {
    color: #333;
}

.footer-right img {
    max-height: 50px;
    height: auto;
    width: auto;
    margin-right: 20px; /* ✅ Marge droite ajoutée */
    opacity: 0.85;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-right img {
        margin-right: 0;
    }
}

/* Ajoute un espace après la grille des membres */
.team-section {
  padding-bottom: 60px; /* Ajustable selon ce que tu veux */
}

.membre-modal {
  display: none; /* Cache la modale par défaut */
}

.membre-photo img,
.membre-modal-photo img {
  background-color: #f0f0f0; /* gris très clair */
  border-radius: 100px;      /* pour rester bien rond */
  padding: 8px;
  object-fit: cover;
  width: 100px;
  height: 100px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 100px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.avatar.is-placeholder {
  background-color: #f0f0f0;
  padding: 8px;
  border-radius: 100px;
}

.membre-photo.is-placeholder,
.membre-modal-photo.is-placeholder {
    background-color: #f4f4f4;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.membre-photo img.is-placeholder {
    background-color: #f3f3f3;
    border-radius: 50%;
    padding: 10px;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.avatar.is-placeholder {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 50%;
}

.membre-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.admin-section {
  padding: 40px 0;
}

.admin-title {
  font-size: 22px;
  color: #5e3c83;
  margin-top: 30px;
  margin-bottom: 10px;
}

.admin-block {
  background: #f9f9fb;
  border-radius: 10px;
  padding: 20px 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.admin-list {
  list-style: none;
  padding-left: 0;
}

.admin-list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.admin-list li:last-child {
  border-bottom: none;
}

.membre-email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.membre-email-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #5e3c83;
  stroke-width: 2;
}

.membre-email-icon:hover svg {
  stroke: #5e3c83;
  transform: scale(1.1);
}

.publication-annee {
    font-size: 14px;
    font-weight: bold;
    color: #5e3c83;
    margin-bottom: 8px;
}

.publication-meta p {
    margin: 0 0 10px;
    font-size: 16px;
}

.publication-content {
    margin-top: 30px;
    line-height: 1.6;
}

.btn-back {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 20px;
    background-color: #5e3c83;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.publication-back {
    margin: 40px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 30px;
}

.breadcrumb-home svg {
    vertical-align: middle;
}

.breadcrumb a {
    color: #5e3c83;
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 6px;
    color: #999;
}

.filtered-publications {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.filtered-publication-item {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-left: 4px solid #8300c4;
  border-radius: 6px;
  background-color: #fff;
  transition: box-shadow 0.3s;
}

.filtered-publication-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.publication-title {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.publication-title a {
  color: #5e3c83;
  text-decoration: none;
}

.publication-title a:hover {
  text-decoration: underline;
}

.publication-meta p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #444;
}

.btn-read-more {
  display: inline-block;
  margin-top: 0.8rem;
  background-color: #8300c4;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
}

.btn-read-more:hover {
  background-color: #69009e;
}

.admin-block {
    scroll-margin-top: 80px; /* si tu as un header sticky */
}
.admin-anchors {
    margin-bottom: 30px;
}
.admin-anchors a {
    color: #5e3c83;
    text-decoration: underline;
    margin: 0 5px;
}

/* === Fiche membre complète === */
.member-detail {
    padding: 40px 0;
    display: block;
}

.member-profile {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap; /* facultatif si responsive */
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .member-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-info {
        text-align: left;
    }
}

/* === Bloc photo === */
.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* === Bloc info texte === */
.member-info {
    flex: 1;
    min-width: 250px;
    text-align: left !important;
}

.member-name {
    font-size: 2rem;
    font-weight: 700;
    color: #5e3c83;
    margin-bottom: 10px;
}

.member-role {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #444;
}

/* === Publications associées === */
.member-publications {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.member-publications h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #5e3c83;
}

.publication-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.publication-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.publication-list li a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.publication-list li a:hover {
    color: #8a2be2;
}

.publication-list small {
    color: #777;
}

.membre-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.membre-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 1.2rem;
    color: #5e3c83;
    margin-bottom: 0.75rem;
}

.project-thumbnail {
    margin-bottom: 1rem;
    text-align: center;
}

.project-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.project-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.aims-projects {
    margin-bottom: 60px;
}

#mega-menu-wrap-primary .mega-toggle-animated {
    display: none !important;
}

#mega-menu-wrap-primary {
  width: auto;
  display: flex;
  justify-content: center;
}

.custom-burger-toggle {
    position: relative;
    top: -15px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.custom-burger-toggle:hover {
    border-color: #5e3c83;
}

.custom-burger-toggle svg {
    display: block;
}

body {
    overflow-x: hidden;
}

.contact-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.contact-form-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-right img {
    max-height: 50px;
    height: auto;
    width: auto;
    opacity: 0.85;
}

.footer-right .logo-ministere {
    max-height: 90px;
    opacity: 0.8;
}

.header-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  overflow: hidden;
  background-color: #fff;
  height: 38px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-field {
  border: none;
  padding: 0 12px;
  font-size: 0.95rem;
  height: 100%;
  width: 160px;
  outline: none;
}

.search-submit {
  background: none;
  border: none;
  color: #666;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-submit:hover {
  color: #333;
}

/* Icône de loupe dans le bouton */
.search-submit::before {
  content: "\1F50D"; /* Unicode loupe */
  font-size: 1rem;
}

@media (max-width: 768px) {
  .search-field {
    width: 120px;
  }
}

.search-field:focus {
  width: 220px;
  transition: width 0.3s ease;
}

/* ✅ Responsive mobile */
@media (max-width: 768px) {
  .header-search {
    margin-top: 10px;
    justify-content: flex-end;
    width: 100%;
  }

  .search-field {
    width: 140px;
  }
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.project-filters select,
.project-filters .btn-filter {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.btn-filter {
  background: #5e3c83;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-filter:hover {
  background: #5e3c83;
}

.hal-more-link .btn-read-more {
    background-color: #5e3c83;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-block;
    transition: background 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.hal-more-link .btn-read-more:hover {
    background-color: #7f00ff;
}
