/**
 * Styles pour la page individuelle d'une team
 * Thème spatial/futuriste avec nuances de bleu
 */

/* Variables de couleurs - identiques à celles de teams.css pour cohérence */
:root {
    --primary-blue: #8a581e;
    --secondary-blue: #f6b53b;
    --accent-blue: #faf060;
    --dark-blue: #2a1d0f;
    --light-blue: #fdc693;
    --text-light: #f9f6f1;
    --text-dark: #3b311e;
    --background-dark: rgba(42, 34, 15, 0); /* Rendu transparent */
    --background-gradient: linear-gradient(135deg, rgba(42, 30, 15, 0.4) 0%, rgba(138, 118, 30, 0.4) 100%);
    --card-background: rgba(138, 113, 30, 0.6);
    --card-border: rgba(250, 196, 96, 0.5);
}


/* Conteneur principal */
.team-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    color: var(--text-light);
    position: relative;
    background-color: transparent; /* Conteneur transparent */
}

.manga-results-section {
    margin-top: 5px !important;
}


#team-header-background {
    margin-top: 110px;
}

.team-content-wrapper::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.team-content-wrapper::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 20%;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Bannière de la team - modifiée pour être en transparence derrière le logo et le nom */
.team-banner-container {
    width: 100%;
    height: 400px; /* Hauteur augmentée */
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* Supprimé pour que le header chevauche la bannière */
}

.team-banner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.7; /* Transparence ajoutée */
}

.team-banner:hover img {
    transform: scale(1.05);
}
/* Contrôle d'opacité */
.opacity-control {
    margin-top: 1.5rem;
}

.opacity-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.opacity-value {
    min-width: 40px;
    text-align: center;
    color: var(--light-blue);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(42, 33, 15, 0.8);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--light-blue);
    transform: scale(1.1);
}

.opacity-preview {
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.opacity-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.opacity-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
}
.team-banner-placeholder {
    background: var(--background-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--accent-blue);
    opacity: 0.7; /* Transparence ajoutée */
}

.banner-placeholder-content {
    text-align: center;
}

.banner-placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.banner-placeholder-content span {
    font-size: 1.2rem;
    color: var(--light-blue);
}

.edit-banner-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.team-banner:hover .edit-banner-button,
.team-banner-placeholder:hover .edit-banner-button {
    opacity: 1;
}

.edit-banner-button i {
    color: var(--text-light);
    font-size: 1rem;
}

/* Contenu principal */
.team-content-wrapper {
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* En-tête avec logo et nom - repositionné pour chevaucher la bannière */
.team-header {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    background: rgba(42, 30, 15, 0.7); /* Fond semi-transparent */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    margin-top: -150px; /* Augmenter cette valeur si le header chevauche encore */
    z-index: 10; /* Assurez-vous qu'il soit au-dessus de la bannière */
}

.team-logo-container {
    position: relative;
}

/* Logo agrandi */
.team-logo {
    width: 180px; /* Taille augmentée */
    height: 180px; /* Taille augmentée */
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(250, 240, 96, 0.7);
    transition: all 0.3s ease;
}

.team-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(250, 201, 96, 0.9);
}

.team-logo-placeholder {
    width: 180px; /* Taille augmentée */
    height: 180px; /* Taille augmentée */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text-light);
    border: 4px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(250, 201, 96, 0.7);
}

.edit-logo-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.team-logo-container:hover .edit-logo-button {
    opacity: 1;
}

.edit-logo-button i {
    color: var(--text-light);
    font-size: 0.8rem;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    margin: 0;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
}

.team-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
}

/* Sections communes */
.team-section {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    z-index: 2; /* Augmente ceci pour être sûr */
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 127, 30, 0) 0%, rgba(250, 227, 96, 0.1) 100%);
    z-index: 0;
    pointer-events: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
}

.section-title i {
    margin-right: 0.75rem;
    color: var(--accent-blue);
}

/* Section membres */
.add-member-button {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.add-member-button i {
    margin-right: 0.5rem;
    color: var(--text-light);
}

.add-member-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.add-member-form {
    background: var(--background-gradient);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.team-members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.team-member {
    display: flex;
    align-items: center;
    background: rgba(42, 28, 15, 0.6);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(224, 250, 96, 0.2);
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-blue);
}

.member-avatar {
    margin-right: 1rem;
}

.member-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
}

.member-info {
    flex: 1;
}

.member-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.member-role {
    display: block;
    font-size: 0.9rem;
    color: var(--light-blue);
    font-style: italic;
}

.remove-member-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background-color: rgba(239, 68, 68, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover .remove-member-button {
    opacity: 1;
}

.remove-member-button i {
    color: white;
    font-size: 0.8rem;
}

.no-members-message {
    text-align: center;
    padding: 2rem;
    color: var(--light-blue);
    font-style: italic;
    grid-column: 1 / -1;
}

/* Section description */
.team-description {
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.team-description p {
    margin-bottom: 1rem;
}

.edit-description-button {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.edit-description-button i {
    margin-right: 0.5rem;
}

.edit-description-button:hover {
    background-color: rgba(147, 197, 253, 0.1);
}

.team-description-form {
    position: relative;
    z-index: 1;
}

/* Sections articles et projets */
.articles-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.article-card,
.project-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.article-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.article-thumbnail,
.project-thumbnail {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.article-image,
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image,
.project-card:hover .project-image {
    transform: scale(1.05);
}

.article-image-placeholder,
.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text-light);
}

.article-info,
.project-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title,
.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a,
.project-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover,
.project-title a:hover {
    color: var(--accent-blue);
}

.article-meta,
.project-meta {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--light-blue);
}

.article-date {
    display: inline-flex;
    align-items: center;
}

.article-date i {
    margin-right: 0.5rem;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    opacity: 0.9;
}

.project-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-genre {
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--light-blue);
}

/* Pagination */
.team-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.team-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
    border-radius: 50%;
    background-color: rgba(42, 28, 15, 0.8);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(250, 188, 96, 0.3);
}

.team-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(250, 209, 96, 0.5);
}

.team-pagination .page-numbers:hover:not(.current) {
    background-color: rgba(138, 104, 30, 0.8);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Message quand aucun contenu */
.no-content-message {
    text-align: center;
    padding: 2rem;
    color: var(--light-blue);
    font-style: italic;
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    background-color: rgba(42, 35, 15, 0.7);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(250, 240, 96, 0.5);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(42, 35, 15, 0.7);
    border: 1px dashed var(--card-border);
    border-radius: 5px;
    color: var(--text-light);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.submit-button,
.cancel-button {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    border: none;
    flex: 1;
    margin-right: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.cancel-button {
    background-color: transparent;
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
    flex: 0 0 auto;
}

.cancel-button:hover {
    background-color: rgba(253, 203, 147, 0.1);
}

/* Modaux */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.team-modal-content {
    background: var(--background-gradient);
    border-radius: 10px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
}

.team-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--light-blue);
    cursor: pointer;
    transition: color 0.3s ease;
}

.team-modal-close:hover {
    color: white;
}

.team-modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.team-modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.logo-preview,
.banner-preview {
    margin-top: 1rem;
    text-align: center;
}

.logo-preview img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #eed9b2;
    box-shadow: 0 0 15px rgba(250, 209, 96, 0.7);
}

.banner-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(250, 201, 96, 0.7);
}

/* Section commentaires */
.team-comments-section {
    margin-top: 3rem;
}
.team-title-container {
    min-height: 300px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: multiply;
    padding: 60px 20px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-header-content {
    position: relative;
    z-index: 2;
}

.edit-banner-button, .edit-header-background-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    padding: 8px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    z-index: 3;
}

#team-header-background {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(42, 33, 15, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    padding: 10px;
}

.project-genres {
    margin-top: 5px;
}

.project-genre {
    display: inline-block;
    background: #eee;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}
/* Overlay sombre par‑dessus la bannière */
.team-header {
  position: relative;
  overflow: hidden;
}
.team-header-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-blue); /* ou rgba(15,23,42,1) */
  pointer-events: none;
  z-index: 0;
}
/* tous les autres enfants de .team-header au-dessus */
.team-header > *:not(.team-header-overlay) {
  z-index: 1;
}

/* Conteneur commun pour les deux boutons */
.edit-header-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* Styles partagés par chaque bouton */
.edit-header-buttons .edit-btn {
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.edit-header-buttons .edit-btn:hover {
  background: rgba(0,0,0,0.8);
}

.edit-header-buttons .edit-btn i {
  color: #fff;
  font-size: 1rem;
}

/* Wrapper spatial */
.space-search-container {
  background: linear-gradient(to bottom, #231e0f 0%, #463e1a 50%, #231d0f 100%);
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(216, 130, 0, 0.3);
  border: 1px solid rgba(216, 130, 0, 0.2);
  z-index: 10;
  display: flex;
  justify-content: center;
}

/* Barre de recherche / tags */
.search-bar-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(35, 29, 15, 0.7);
  border-radius: 50px;
  padding: 0.5rem;
  border: 1px solid rgba(216, 202, 0, 0.3);
  box-shadow: 0 0 15px rgba(216, 184, 0, 0.2);
  gap: .5rem;
}

.search-bar-container:hover,
.search-bar-container:focus-within {
  border-color: rgba(216, 166, 0, 0.8);
  box-shadow: 0 0 20px rgba(216, 166, 0, 0.4);
}

/* Le champ Select2 (tags) : texte blanc sur fond transparent */
.select2-container--default .select2-selection--multiple {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 1) Centre la zone de saisie (placeholder) quand il n’y a pas de tags */
.select2-container--default .select2-selection--multiple .select2-search--inline {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* 2) Rend le champ plein largeur et centre le texte */
  .select2-container--default .select2-selection--multiple .select2-search__field {
    width: 100% !important;
  }
  
  /* 3) Quand il y a des tags, on remet l’alignement à gauche */
  .select2-container--default .select2-selection__choice + .select2-search--inline {
    justify-content: flex-start !important;
  }
  

.select2-container--default .select2-selection__choice {
  background: rgba(216, 202, 0, 0.2);
  border: 1px solid rgba(216, 130, 0, 0.4);
  color: #fff;
  border-radius: 50px;
  padding: 0 0.5rem;
  margin: 0.2rem;
  position: relative;
  overflow: hidden;
}

.select2-container--default .select2-selection__choice::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%, 
    rgba(255,255,255,0.2) 50%, 
    transparent 100%
  );
  animation: pill-shine 2s ease-in-out infinite;
}
@keyframes pill-shine {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

/* placeholder + champ texte bien visible */
.select2-container--default .select2-search__field {
  color: #fff !important;
}

.select2-container--default .select2-selection__rendered {
  padding: 0.3rem 0.5rem;
}
.select2-container--default .select2-search__field {
  color: #fff !important;
}
.select2-container--default .select2-selection__choice__remove {
  color: rgba(255,255,255,0.7);
  margin-right: 0.2rem;
}
.select2-container--default .select2-selection__choice__remove:hover {
  color: #fff;
}

/* Le bouton « Ajouter » dans la barre */
.search-button {
  background: linear-gradient(45deg, #d8b000, #b68600);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all .3s ease;
}
.search-button:hover {
  background: linear-gradient(45deg, #b67c00, #d89400);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(216, 202, 0, 0.5);
}

/* placeholder & input Search intégrés */
.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 1) On aligne la barre et le bouton sur une même ligne */
.space-search-container .search-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* bouton à droite */
  margin: 0;             /* on utilise flex du parent */
  width: 100%;           /* pour être responsive */
}

/* 2) On fait du Select2 un flex grow pour qu’il prenne tout l’espace */
.select2-container--default {
  flex: 1;
}

/* 3) On supprime la « boîte » du select pour n’avoir QUE le texte et les tags */
.select2-container--default .select2-selection--multiple {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: auto;
}

/* 4) On force le container des tags à passer en dessous, en ligne multiple */
.select2-container--default .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
}

/* 5) Style des « pills » */
.select2-container--default .select2-selection__choice {
  background: rgba(216, 184, 0, 0.2) !important;
  border: 1px solid rgba(212, 216, 0, 0.4) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.9rem !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center;
}

/* 6) Le petit × dans chaque tag */
.select2-container--default .select2-selection__choice__remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}
.select2-container--default .select2-selection__choice__remove:hover {
  color: #fff !important;
}

/* 7) Placeholder et texte de l’input en blanc / semi‑transparent */
.select2-container--default .select2-search__field {
  color: #fff !important;
}
.select2-container--default .select2-search__field::-webkit-input-placeholder {
  color: rgba(255,255,255,0.5) !important;
}
.select2-container--default .select2-search__field::-moz-placeholder {
  color: rgba(255,255,255,0.5) !important;
}
.select2-container--default .select2-search__field:-ms-input-placeholder {
  color: rgba(255,255,255,0.5) !important;
}

/* 8) On garde le bouton “Ajouter” toujours à droite, avec un léger margin si jamais */
.search-bar-container .submit-button {
  flex: inherit;
  margin-left: 1rem;
}

.select2-results__option {
color: #7d5704;
}

/* wrapper positionné */
.team-discord-wrapper {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
  }
  
  /* bouton Discord actif */
  .team-discord-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865F2;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
  }
  .team-discord-button:hover {
    background: #4752C4;
  }
  
  /* icône plus grosse */
  .team-discord-button i.fab.fa-discord {
    font-size: 1.4rem;
  }
  
  /* “Ajouter un lien Discord” */
  .team-discord-button.no-discord {
    cursor: default;
    background: rgba(88, 101, 242, 0.2);
  }
  .team-discord-button.no-discord .discord-placeholder {
    font-style: italic;
    opacity: 0.8;
  }
  
  /* le “Discord” texte quand lien existant */
  .discord-text {
    font-weight: 600;
  }
  
  /* bouton crayon */
  .edit-discord-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
  }
  .edit-discord-btn:hover {
    color: #93C5FD;
  }
  
  /* mini‑form (cachée par défaut) */
  .edit-discord-form {
    display: none;             /* important : masquée au chargement */
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(15,23,42,0.95);
    padding: 0.75rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
  }
  
  /* champ URL */
  .edit-discord-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 5px;
    background: #1E293B;
    color: #fff !important;
    font-size: 0.9rem;
    outline: none;
  }
  .edit-discord-input::placeholder {
    color: rgba(255,255,255,0.5);
  }
  
  /* icônes save / cancel */
  .edit-discord-submit,
  .edit-discord-cancel {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
  }
  .edit-discord-submit:hover {
    color: #4ADE80;
  }
  .edit-discord-cancel:hover {
    color: #F87171;
  }
  
  
  
.select2-container--default .select2-search__field::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

/* === Ajustements "Nos projets" === */

  /* === Ajustements cartes Membres === */
.team-members-list .team-member {
    /* Réduit un peu la hauteur et centre le contenu */
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .team-members-list .member-avatar img {
    width: 48px;
    height: 48px;
  }
  .team-members-list .member-info {
    /* force le nom sous l’avatar sur mobile/tablette pour plus de place */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
@media (max-width: 1100px) {

  /* on replace le wrapper en haut‑gauche, et on désactive bottom/right */
  .team-discord-wrapper {
    top: 0.5rem;
    left: 0.5rem;
    bottom: auto;
    right: auto;
  }

  .team-single-container {
    overflow: visible !important;
  }

  /* réduction du padding / taille d’icône si besoin */
  .team-discord-button {
    padding: 0.25rem;
    font-size: 0.9rem;
  }
    /* 2) Titres de section plus petits */
    .section-title {
        font-size: 1.6rem !important;
      }
    
    /* 3) Ajustement du padding autour des titres */
    .team-section {
      padding: 1rem !important;
    }

}
/* Responsive */
@media (max-width: 768px) {
    .team-banner-container {
        height: 250px;
    }
    
    .team-content-wrapper {
        margin-top: -100px;
    }
    
    .team-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .team-logo-container {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .team-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .articles-grid,
    .projects-grid,
    .team-members-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-title {
        flex-wrap: wrap;
    }
    
    .add-member-button,
    .edit-description-button {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .team-members-list .team-member {
        flex-direction: column;
        text-align: center;
      }
      .team-members-list .member-avatar {
        margin-right: inherit;
      }

}

@media (max-width: 480px) {

      /* 1) Deux colonnes pour les membres */
    .team-members-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .container {
        padding-right: inherit;
        padding-left: inherit;
    }   
    
    /* Rendre plus petit le titre de la section Commentaires */
    .team-comments-section .section-title {
        font-size: 1.4rem !important; /* ajuste la valeur à ton goût */
    }
    
    .team-banner-container {
        height: 200px;
    }

    .team-single-container {
        overflow: visible !important;
        padding-top: 100px;
      }

    .team-logo {
        width: 140px;
        height: 140px;
    }
    
    .team-logo-placeholder {
        width: 140px;
        height: 140px;
        font-size: 2.5rem;
    }
    
    .team-title {
        font-size: 2rem;
    }
    
    .articles-grid,
    .projects-grid,
    .team-members-list {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-button {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* On réduit les marges intérieures pour gagner de la place */
    .team-single-container,
    .team-content-wrapper,
    .team-section {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Si tu veux que le body colle quasiment aux bords */
    body.page-template-template-team-single {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

}
