@font-face {
    font-family: 'LSS';
    src: url('LSS.ttf') format('truetype');
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    color: #333;
}

body {
    padding: 0;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: black;
    color: red;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    flex: 1;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 5rem;
    margin: 0;
    font-family: 'LSS', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-align: center;
}

.slogan {
    font-family: 'LSS', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.3rem;
    color: white;
    margin: 0.5rem 0 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-align: center;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: red;
    text-decoration: none;
    font-size: 1rem;
}

/* Language Selector Styles */
.language-selector {
    margin-top: 10px;
}

#language-select {
    background-color: black;
    color: red;
    border: 1px solid red;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
}

#language-select:hover {
    background-color: red;
    color: black;
}

#language-select option {
    background-color: black;
    color: red;
}

/* Rest of the existing styles */
.hero {
    background: #3498db;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
}

.services {
    padding: 1rem 0;
    background: #ecf0f1 url('../images/jpeg-optimizer_Background_website_2-transformed.png') no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    flex-grow: 1;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 3rem;
}

.service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 0.5rem;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item {
    flex: 0 1 calc(33.333% - 2rem);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 3px solid red;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.service-item h3 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.service-item:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.service-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#travaux.service-item {
    background-image: url('../images/mecanicien-automobile-travaillant-moteur-voiture-dans-garage-mecanique-image-concept-service-reparation-gros-plan-authentique_157125-14041.png');
}

#lavage.service-item {
    background-image: url('../images/station-detaillant-lavage-voiture_1303-22319.jpg');
}

#tuning.service-item {
    background-image: url('../images/tuning.png');
}

#jantes.service-item {
    background-image: url('../images/montagepneus-1.png');
}

@media (max-width: 1024px) {
    .service-item {
        flex: 0 1 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .header-left, .header-center, .header-right {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .header-right {
        align-items: center;
    }

    nav ul {
        justify-content: center;
    }

    .service-item {
        flex: 0 1 calc(50% - 1rem);
    }

    header h1 {
        font-size: 2rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    nav ul li {
        margin: 0 10px;
    }

    .language-selector {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .service-item {
        flex: 0 1 100%;
    }

    header h1 {
        font-size: 1.8rem;
    }
    
    .slogan {
        font-size: 0.9rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}

/* Footer */
footer {
    background: black;
    color: #ecf0f1;
    padding: 0.5rem 0;
    margin-top: auto;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

footer .ig, footer .mail {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 2px solid red;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0.5rem 0;
}

footer .ig:hover, footer .mail:hover {
    background-color: red;
    transform: scale(1.1);
    margin-right: 10px;
    margin-left: 10px;
}

footer .ig svg, footer .mail svg {
    width: 24px;
    height: 24px;
    fill: #ecf0f1;
    margin-right: 0.5rem;
}

footer .ig-text, footer .mail-text {
    color: #ecf0f1;
    margin: 0;
}

footer .flags {
    display: flex;
    gap: 10px;
    align-items: center;
}

footer .flag {
    width: 26px;
    height: 16px;
    transition: transform 0.3s ease;
}

footer .flag:hover {
    transform: scale(1.1);
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    footer .flags {
        order: -1;
    }

    footer .ig, footer .mail {
        margin: 0.25rem 0;
    }
}

/* Existing animations */
.highlight {
    animation: flashBorder 1.5s ease-in-out 3;
}

@keyframes flashBorder {
    0%, 100% {
        border-color: red;
        background-color: transparent;
        border-width: 2px;
    }
    50% {
        border-color: white;
        background-color: rgba(255, 255, 255, 0.2);
        border-width: 4px;
    }
}