/* les styles du navbar */
.dropdown-menu {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    
}

.navbar-nav .nav-link {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.secteur :hover{
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: black !important;
}
.secteur{
    color: #fdfdfd !important;
}

/* Par défaut (PC et tablettes) */
@media (min-width: 768px) {
    .navbar-nav .nav-link {
        font-size: 1.5rem;
    }
    .esli{
        margin-inline-end: 1.5rem /* 20px */;
    }
    .taille{
        height: 6em;
    }
}

.logo {
    /* max-width: 150px; */
    height: auto;
}

/* les style du slide et titre */
.carousel-img {
    width: 100%;
    /* ou 300px, selon ce que tu veux */
    object-fit: cover;
    /* pour éviter la déformation */
}

/* Par défaut (PC et tablettes) */
@media (min-width: 768px) {
    .carousel-img {
        height: 600px;
        /* Hauteur pour PC/tablette */
    }

    .carousel {
        width: 100%;

    }

    .titre {
        /* max-width: 150px; */
        height: auto;

    }
    .present {
      margin-top: 12em !important;
    }
}

/* Pour les petits écrans (mobile) */
@media (max-width: 767px) {
    .carousel-img {
        height: 300px;
        /* Hauteur pour mobile */
    }

    .carousel {
        width: 80%;

    }

    .logo {
        /* max-width: 150px; */
        height: auto;
        margin-top: 2em;
    }

    .titre {
        /* max-width: 150px; */
        font-size: 1.5em;
        height: auto;

    }
}


.dhr {
    /* background-color: #2bab5a; */
    height: 2rem;
}


/* Les liens en carte */
.energy-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 1rem;
    padding: 10px 5px;
}

/* Animations différentes pour chaque carte */
.energy-card.card-1:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
}

.energy-card.card-2:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
}

.energy-card.card-3:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.energy-card.card-4:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.energy-card.card-5:hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 0 15px rgba(108, 117, 125, 0.5);
}

.energy-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.energy-card h5 {
    font-weight: 600;
}

/* style de l'actualite */
.fixed-img {
    height: 300px;
    /* ou 250px selon ton design */
    object-fit: cover;
}

.card-body {
    min-height: 250px;
    /* ajuste selon ton contenu */
}

/* style du modal de l'actualite*/
#modalContent {
    word-break: break-word;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    /* color: #333;     */
    padding: 15px;
    background-color: #fdfdfd;
    border-radius: 8px;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}