@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

.responsiveText {
    font-size: clamp(1rem, 0.3043rem + 3.4783vw, 3rem);
}

/*Profil picture*/
.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/*Universe */
.counterMembers {
    background: linear-gradient(to right, #9a97f1, #fcc7d5);
}

.bg-bio {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Upload Loader */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader.hidden {
    display: none;
}

/*Style carousel*/
#carousel-container {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/*Media carousel*/
.video-container, .image-container {
    width: 100%;
    aspect-ratio: 9 / 16; /* Hauteur fixe pour les vidéos et images */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* Ajout des bandes noires */
}

.media-item {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ajustement des images et vidéos sans distorsion */
}

/*Pagination Carousel*/
.indicator-dot {
    transition: background-color 0.3s ease;
}

.indicator-dot.active {
    background-color: #000;
}

/* Styles pour le container de l'input file dans l'édition de profil */
.custom-file-input-container {
    position: relative;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(to right, #9a97f1, #fcc7d5); /* From bg-bar-purple to bg-bar-pink */
    padding: 4px;
}

.custom-file-input-inner {
    height: 100%;
    width: 100%;
    border-radius: 12px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.custom-file-input-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #3498db; /* Couleur de l'icône */
}

.custom-file-input {
    opacity: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
}