/* Custom Styles for STRATEKGIA EVO Template */

/* --- Réinitialisation mobile --- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-text-size-adjust: 100%;
}

/* Empêcher les conteneurs de déborder */
.container, .container-fluid, .row, .col {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100% !important;

}

/* Corriger les boutons ou éléments fixes */
.back-to-top, .navbar-toggler, .language-selector {
    right: 15px !important;
    margin: 0 !important;
}

/* S'assurer que rien ne force un scroll horizontal */
* {
    box-sizing: border-box;
}

/* Topbar */
.topbar {
    background-color: #8ba123d6;
}

.topbar .ip-address {
    font-size: medium;
}

.topbar .user-icon {
    width: 18px;
}

.topbar .username {
    font-size: 19px;
}

.topbar .globe-icon {
    color: black;
    font-size: 25px;
}

/* Buttons */
.explore-button {
    background-color: #8ba123d6;
    color: white;
}

.explore-button:hover {
    background-color: #7a8e1f;
    color: white;
}

/* Features Section */
.feature-icon-container {
    width: 64px;
    height: 64px;
}

.feature-link {
    color: #8ba123d6;
    text-decoration: underline;
}

.feature-link:hover {
    color: #7a8e1f;
}

/* About Section */
.icon-about {
    height: 70px;
    width: auto;
}

/* Service Section */
.service-icon-container {
    width: 78px;
    height: 68px;
}

.service-icon-container img {
    width: 70px;
    height: 50px;
}

.read-more-link {
    color: #8ba123d6;
}

.read-more-link:hover {
    color: #7a8e1f;
}

/* Project Section */
.project-image {
    width: 252px;
    height: 120px;
    object-fit: cover;
}

.project-title {
    color: #8ba123d6;
}

/* Back to Top Button */
.back-to-top-button {
    background-color: #8ba123d6;
    color: white;
}

.back-to-top-button:hover {
    background-color: #7a8e1f;
    color: white;
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.language-globe {
    font-size: 19px;
    display: flex;
    align-items: center;
    color: white;
}

.language-globe i {
    font-size: 25px;
    margin-right: 8px;
    color: black;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1050;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.language-dropdown a:hover {
    background-color: #f1f1f1;
}

.language-selector:hover .language-dropdown {
    display: block;
}
/* Responsive menu */
#navbarCollapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #8ba123;
    padding: 1rem;
    z-index: 1050;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#navbarCollapse .nav-link {
    color: white !important;
    padding: 0.75rem 0;
    display: block;
    font-size: 0.95rem;
}

#navbarCollapse .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* Correction affichage texte mobile — cadres collés au bord + texte élargi */
@media (max-width: 768px) {
    /* Conteneurs de contenu à 2px du bord (respiration), fonds pleine largeur à 0 */
    .container, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .container-fluid, .row, .col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    p, li, td, span {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    /* Boîtes pleine largeur, seule une fine marge interne reste pour la lisibilité */
    .feature-item, .card-body, .text-center {
        width: 100% !important;
        max-width: 100% !important;
    }
    .feature-item, .card-body, .p-5, .p-4 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}