html, body {
    font-family: "Plus Jakarta Sans", Helvetica, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
}

.navbar {
    height: 68px;
    width: 100%;
    background-color: #17272B;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-selector {
    margin-right: 40px;
    font-weight: 600;
    font-size: 14px;
    color: #CCCCCC;
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-selector:hover .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #17272B;
    padding: 8px 0;
    min-width: 80px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.language-selector:hover .language-dropdown {
    display: flex;
}

.language-dropdown span {
    padding: 8px 16px;
    display: block;
}

.language-dropdown span:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.language-selector span.active,
.language-dropdown span.active {
    color: white;
}

.overlay {
    background-size: cover;
    background-color: rgba(26, 39, 43, 0.5);
    background-image: url('images/background/background_1920.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    flex-grow: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
@media screen and (max-width: 480px) {
    .overlay {
        background-image: url('images/background/background_480.jpg');
    }
}

/* Tablette */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .overlay {
        background-image: url('images/background/background_768.jpg');
    }
}

/* Petit écran desktop  */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .overlay {
        background-image: url('images/background/background_1024.jpg');
    }
}

/* Grand écran desktop (Full HD) - Par défaut */
@media screen and (min-width: 1025px) and (max-width: 1920px) {
    .overlay {
        background-image: url('images/background/background_1920.jpg');
    }
}

/* Très grand écran desktop (Ultra HD / 4K) */
@media screen and (min-width: 1921px) {
    .overlay {
        background-image: url('images/background/background_4096.jpg');
        background-attachment: fixed; /* effet de parallaxe */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Plus Jakarta Sans", Helvetica, sans-serif;
}

a, a:hover, a:visited, a:active {
    color: white;
}

a {
    text-decoration: none;
}

a:not(.btn):hover, a:active {
    text-decoration: underline;
}

.container {
    padding: 20px;
    text-align: center;
    width: 100%;
}

#slogan {
    margin: 32px 0;
    font-weight: 600;
    font-size: 20px;
    color: #CCCCCC;
}

#welcome {
    margin: 32px 0;
    font-weight: 600;
    font-size: 34px;
}

#main-content {
    margin: 32px 0;
    line-height: 1.5em;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 4px;
    background-color: #F28E19;
    color: #17272B;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.footer {
    background-color: #17272B;
    width: 100%;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 30px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    color: #CCCCCC;
    font-size: 12px;
}

.footer-container h2 {
    color: white;
    font-size: 14px;
    width: min(280px, 100%);
    display: inline-flex;
    align-items: center;
    text-align: left;
    box-sizing: border-box;
    margin-bottom: 0;
}

.footer-flame {
    height: 24px;
    width: auto;
    margin-right: 8px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    max-width: 173px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-col.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .contact-us {
    margin-top: 16px;
    color: #F28E19;
    text-decoration: underline;
    display: inline-block;
    width: 100%;
}

footer .follow-us {
    margin-top: 16px;
    border: 1px solid #CCCCCC;
    border-radius: 2px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

footer .follow-us img {
    width: 12px;
    height: 12px;
    padding-right: 4px;
}

footer .follow-us span {
    font-size: 12px;
    color: #FFFFFF;
}

.footer-col ul {
    list-style: disc;
    padding-left: 20px;
    margin: 16px 0;
    display: inline-block;
    text-align: left;
    width: min(280px, 100%);
    box-sizing: border-box;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-bottom {
    font-size: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 30px;
    flex-wrap: wrap;
    padding: 14px 40px;
    border-top: 1px solid #586366;
}

.footer-bottom span,
.footer-bottom a {
    display: inline-flex;
    align-items: center;
}

.logo-l2d {
    height: 12px;
    width: auto;
    margin-left: 6px;
}

@media screen and (min-width: 521px) and (min-width: 1025px) {
    .footer-col.logo img {
        transform: translateY(-20px);
    }
}

/* Tablette : 2 lignes et 2 colonnes */
@media screen and (min-width: 521px) and (max-width: 1024px) {
    .footer-container {
        max-width: 600px;
    }

    .footer-col {
        flex: 1 1 40%;
    }

    /* Ordre : logo puis contact, engineering puis solutions */
    .footer-col.logo { order: 1; }
    .footer-col.contact { order: 2; }
    .footer-col.engineering { order: 3; }
    .footer-col.solutions { order: 4; }
}

/* Mobile : 4 lignes et 1 colonne */
@media screen and (max-width: 520px) {
    #groupe-cides-logo {
        max-width: min(95%, 232px);
    }

    #welcome {
        font-size: 24px;
    }

    .footer-container {
        gap: 30px;
    }

    .footer-col {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-col.logo { order: 1; }
    .footer-col.contact { order: 2; }
    .footer-col.engineering { order: 3; }
    .footer-col.engineering ul { margin-bottom: 0; }
    .footer-col.solutions { order: 4; }

    #footer-col4-title,
    footer .contact-us {
        text-align: center;
        justify-content: center;
    }

    .footer-bottom {
        padding: 14px 20px;
    }
}