body {
    display: flex;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.content-container {
    display: flex;
    width: 100%;
    align-items: flex-start;
    margin-top: 100px;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.left, .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

a:hover, .active {
    font-weight: 600;
}

.right-move {
    margin-top: 20px;
    margin-left: 20px;
}

.create-profile-btn {
    padding: 10px 10px;
    font-size: 1em;
    background-color: #ffffff;
    color: #b9b9b9;
    border: 0.5px solid #edededb0;
    border-radius: 5px;
    cursor: pointer;
    transition: color, background-color 0.8s ease;
}

.equipe {
    flex-basis: 60%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-content: start;
    padding-bottom: 20px;
}

.photo {
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    cursor: pointer;
    filter: grayscale(100%);
    border: 1px solid #e3e3e3;
}

.info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    color: white;
    padding: 10px; /* Ajustez selon vos besoins */
    transform: translateY(100%); /* Commence caché sous l'image */
    transition: transform 0.5s ease; /* Animation douce */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo:hover .info-panel {
    transform: translateY(0); /* Remonte pour couvrir l'image au survol */
}

.city {
    margin: 0 20px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    width: 70%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#manageContent {
    max-height: 600px;
    overflow-y: auto;
}

#closePopupBtn {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.popup-menu {
    display: flex;
    justify-content: start;
    padding: 20px 20px 15px 20px;
    gap: 20px;
}

.popup-menu span {
    cursor: pointer;
    font-weight: 300; /* Normal state */
    transition: font-weight 0.3s ease;
}

.popup-menu span.active {
    font-weight: 600; /* Active state */
}

.popup-body {
    padding: 0 20px;
}

.button-container {
    padding: 15px 20px 20px 20px;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.filter-container {
    display: flex;
    justify-content: space-evenly;
}

img {
    filter: grayscale(100%);
}

/* Styles pour la zone de chargement d'image */
.image-upload {
    width: 420px;
    height: 420px;
    border: 2px dashed #ccc;
    margin: 0px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-upload-label {
    display: block;
    width: 100%;
    height: 100%;
}

.image-upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 4em;
    color: #ccc;
    cursor: pointer;
}

.image-preview {
    width: 100% !important;
    height: 100%;
    padding: 0;
    position: relative;
    border: 0.5px solid #f6f6f6;
    color: #e7e7e7;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    font-weight: 100;
    cursor: pointer;
}

/* Styles pour les champs de formulaire */
#locationSelect {
    padding: 3px 0px !important;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    font-size: 1em;
    color: #a1a1a1;
}

#createProfileForm {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    gap: 15px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 0 10px 0 0;
    margin-bottom: 20px;
    overflow: auto;
    max-height: 600px;
}

.profile-card {
    border: 1px solid #f7f7f7;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ombre horizontale légère */
    transition: box-shadow 0.3s ease-in-out;
    cursor: grab; /* Indique que l'élément peut être déplacé */
}

.profile-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Ombre plus prononcée au survol */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
    padding: 10px 0;
}

.profile-actions button {
    margin: 5px;
    padding: 5px 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.hidden {
    display: none !important;
}

.drag-over {
    border-top: 2px solid blue; /* ou tout autre style de votre choix */
}

.dragging {
    opacity: 0.5;
}

.profile-card.dragging {
    opacity: 0.5;
}

.profile-card.over {
    border-bottom: 2px dashed red; /* Indique visuellement l'espace de dépôt */
}

.profile-card.next {
    border-bottom: 2px solid blue; /* Ajouter une bordure pour indiquer l'insertion */
}

.next {
    border-bottom: 2px solid blue; /* Indique où l'élément sera déposé */
}

.mailto{
    color: white;
}

@media (max-width: 1100px) {
    .left {
        display: none;
    }

    .right {
        display: flex;
        flex-direction: row;
        flex: 0;
        width: 100%;
        justify-content: center;
    }

    .create-profile-btn {
        display: none;
    }

    .content-container {
        display: flex;
        width: 100%;
        flex-direction: column-reverse;
        justify-content: flex-end;
        margin-top: 60px;
        align-items: center;
        gap: 20px;
    }

    .equipe {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
    }
}

.active {
    font-weight: 600 !important;
}
