/* Conteneur du profil dans la navbar */
.navbar {
    background-color: #2e5090;
}

.navbar-profile {
    position: relative;
}

/* En-tête cliquable du profil */
.profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.image-status {
    position: relative;
    /* positionnement du point vert en absolu */
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    position: relative;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Le point vert est positionné en bas à droite de l’image */
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #00cc00;
    border-radius: 50%;
    border: 2px solid white;
}


.text-info {
    display: flex;
    flex-direction: column;
}

.name {
    font-weight: bold;
    font-size: 0.95rem;
}

.role {
    font-size: 0.75rem;
}

.chevron {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    position: relative;
    bottom: 8px;
    color: white;
}

.chevron.rotate {
    transform: rotate(180deg);
}

/* Dropdown stylisé */
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 220px;
    display: none;
    animation: fadeIn 0.3s ease;
    z-index: 999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown .title {
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.dropdown .avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: black;
    overflow: hidden;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown .fullname {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.dropdown .field {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: 4px;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.buttons button {
    flex: 1;
    margin: 0 4px;
    padding: 6px;
    font-size: 0.7rem;
    border: none;
    border-radius: 20px;
    background-color: black;
    color: white;
    cursor: pointer;
}

.buttons button:hover {
    background-color: #222;
}

@media (max-width: 500px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* section page d'acceuil */
/* Pour le carousel */
.carousel {
  position: relative;
  max-width: 100%;
  max-height: 499px;
  margin-top: 35px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slides {
  display: flex;
  transition: transform 1.9s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
}

.slide .imgs {
  display: block;  
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}

.legend {
    /* pour le positionnement des écrits du bouton */
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    z-index: 2;
}

.legend h2 {
    /* l'espace et la taille des écrits */
    /* margin: 0 0 10px 0; */
    font-size: 2rem;
}

.legend button {
    /* pour le bouton qui se trouve dans la legend */
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.legend button:hover {
    background: #ddd;
}

/* Indicator */
.dots {
    /* le petit bouton du carousel */
    text-align: center;
    padding: 15px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #006eff;
}

/* méthode responsive */
/* pour le téléphone */
@media (max-width: 768px) {
    .legend {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 15px;
    }

    .legend h2 {
        font-size: 1.5rem;
    }

    .legend button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    .legend a {
        font-size: 0.7rem;
    }

    .slide .imgs {
        max-height: 300px;
    }
}

/* pour la tablette */
@media (max-width: 480px) {
    .legend {
        padding: 10px;
        bottom: 15px;
    }

    .legend h2 {
        font-size: 1.2rem;
    }

    .legend button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .slide .imgs {
        max-height: 200px;
    }
}

@media (max-width: 320px) {
    .legend h2 {
        font-size: 1rem;
    }

    .slide .imgs {
        max-height: 160px;
    }
}

/* Stype pour le carousel */
/* .slides {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  transition: transform 0.8s ease-in-out;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  position: relative;
} */


/* Pour le bouton */
/* Style pour les boutons principaux */

.btn-custom {
    background-color: #2e5090;
    color: white;
    transition: all 0.3s;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease; /* transition douce */
}

.btn-custom:hover {
    background: #fff; /* inverse le dégradé */
    transform: translateY(-3px) scale(1.05); /* léger effet d'élévation */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    color: black;
    border: 1px solid black;
}

.btn-custom:active {
    background: #fff;
    transform: scale(0.95);       /* bouton légèrement plus petit */
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/*Style d'icone du bouton*/
.icone {
    margin-bottom: 10px;
    transition: all 0.4s ease;
    filter: brightness(0) invert(1);
}

.btn-custom:hover .icone {
    filter: brightness(0) invert(0);
}
.btn-custom:focus .icone {
    filter: brightness(0) invert(0);
}

/*Responsive mobile*/
@media(max-width:767px) {
    /* Style button */
    .btn-custom h5{ /*Taille des textes sur chaque button*/
        font-size: 0.9rem; 
    }
    /* Style gros bouton bannière */
    .banner-btn h2{ 
        font-size: 1.4rem;
    }
}

/* Style pour le gros bouton bannière */
.banner-btn {
    position: relative;
    display: inline-block;
    width: 100%;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    overflow: hidden; /* évite que le ::before déborde */
    border: none;
}

/* Image en pseudo-élément */
.banner-btn::before {
    content: "";
    position: absolute;
    inset: 0; /* équivalent à top:0; right:0; bottom:0; left:0 */
    background-image: url('../img/customer-satisfaction-service-care-problem-solving.jpg');
    background-size: cover;
    background-position: center;
    transition: all 0.3s;
    z-index: 1;
    color:white;
}

/* Ton texte reste par-dessus */
.banner-btn h2 {
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Effet hover uniquement sur l'image */
.banner-btn:hover::before {
    transform: translateY(-3px) scale(1.01);
    filter: blur(5px);
}

.banner-btn:active {
    transform: scale(0.95);
}