@font-face {
    font-family: Lato;
    src: url('../font/Lato-Regular.woff2');
}

@font-face {
    font-family: Lato;
    font-weight: bold;
    src: url('../font/Lato-Bold.woff2');
}

:root {
    --accent-color: #4BA0D1;
    --accent-color-focused: #3C80A8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navbar */

.header {
    padding: 1vh 0;
    background-color: white;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    width: 250px;
    height: auto;
}

.navbar {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 0 10px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    line-height: 50px;
}

.navbar a:hover {
    color: #ff6600;
}

@media (max-width: 768px) {

    .container {
        flex-direction: column;
        align-items: center;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        gap: 20px;
        width: 100%;
    }

    .navbar a {
        text-align: center;
        width: 100%;
    }
}

/* Hero */

.hero {
    position: relative;
    color: rgb(247, 247, 247);
    padding: 100px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
    transform: scale(1.1);
}

.hero .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
    z-index: 1;
}

.hero p {
    font-weight: bold;
    font-size: 18px;
}

.hero h1 {
    margin: 0;
    padding: 0;
    font-size: 50px;
}

.hero .towing {
    width: 1000px;
    height: auto;
}

.hero .welcome {
    display: flex;
    flex-direction: column;
}

.hero .cta {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: var(--accent-color);
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color .3s ease;
    text-align: center;
}

.hero  .cta:hover {
    background-color: var(--accent-color-focused);
}

@media (max-width: 768px) {

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero .towing {
        width: 450px;
    }
}

/* Services */

.services {
    padding: 30px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.services h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.services .services-intro {
    margin-bottom: 30px;
}

.services .services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


@media (max-width: 1100px) {
    .services .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services .services-container {
        grid-template-columns: repeat(1, 1fr);
    }
}


.services .service-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.services .service-card:hover {
    transform: translateY(-5px);
}

.services .service-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services .service-card p {
    margin: 0;
    font-size: 16px;
}

.icon-large {
    margin-bottom: 10px;
}

/* Intervention */

.intervention {
    text-align: center;
    margin-bottom: 30px;
    overflow: hidden;
}

.intervention h2 {
    text-transform: uppercase;
    font-size: 32px;
}

.intervention .img-map {
    max-width: 1000px;
}

@media (max-width: 1050px) {
    .intervention .img-map {
        max-width: 800px;
    }
}

@media (max-width: 850px) {
    .intervention .img-map {
        max-width: 600px;
    }
}

@media (max-width: 660px) {
    .intervention .img-map {
        max-width: 350px;
    }
}

/* Contact Section */

.contact {
    padding: 20px 0;
    background-color: #f3f3f3;
    text-align: center;
    overflow: hidden;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.contact .contact-info {
    flex: 1;
    text-align: left;
}

.contact .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact .info-item .icon {
    margin-right: 10px;
}

.contact .info-item a {
    text-decoration: none;
}

.contact .info-item a:visited {
    color: #0000ee;
}

.contact .info-item a:hover {
    text-decoration: underline;
}

.contact .info-item .horaire-title {
    padding-right: 10px;
}

.contact .info-item .horaires {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact .info-item .horaires li {
    display: flex;
    justify-content: space-between;
}

.contact .info-item .horaires span {
    margin-left: auto;
    text-align: right;
    width: 100px;
}

.contact .contact-map {
    flex: 1;
    max-width: 100%;
    height: 400px;
}

.contact .contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    
    .contact .container {
        flex-direction: column;
        align-items: center;
    }

    .contact .contact-map {
        height: 300px;
    }
}

/* Footer */

.footer {
    background-color: #2C3E50;
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
}

.footer .footer-links a {
    text-decoration: none;
    color: #F1F1F1;
    line-height: 30px;
}

.footer .footer-links a:hover {
    color: #FFC107;
}

.footer .footer-copy {
    margin-top: 20px;
}

.footer .footer-copy p {
    margin: 0;
}

.footer .footer-copy p:last-child {
    font-size: 14px;
    color: #B0BEC5;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        align-items: center;
    }
}