@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --scar-color: #FF6500;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.divider {
    width: 70%;
    height: 4px;
    background-color: var(--scar-color);
    margin: 25px auto;
}

.trait {
    width: 30%;
    height: 4px;
    background-color: var(--scar-color);
    margin: 10px 0;
}

.header {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 10vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--scar-color);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

header {
    transition: top 0.3s ease-in-out;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-right: 50px;
}

.header-right a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-right a:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}

.facebook a img{
    width: 60px;
    height: auto;
}

.facebook:hover {
    transform: scale(1.1);
}


.scar-logo {
    clip-path: polygon(0 0, 100% 0%, 85% 100%, 0% 100%);
    background-color: #f0f0f0;
    padding: 0;
    width: 30vw;
    height: 10.1vh;
}

.scar-logo img {
    width: 200px;
    height: auto;
    padding: 15px;
}

.header-left h1 {
    font-size: 2rem;
    font-weight: 800;
    width: 100%;
    margin: 0;
}

.hero {
    position: absolute;
    display: flex;
    gap: 0;
    flex-direction: column;
    padding: 10%;
    margin-top: 10%;
    text-align: left;
    z-index: 1000;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.hero h3 {
    font-size: 1.5rem;
    color: white;
}


.cta {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 50px;
}

.cta a:first-of-type {
    padding: 10px 20px;
    background-color: var(--scar-color);
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
}

.cta a:last-of-type {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: black;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
}

.cta a:first-of-type:hover {
    background-color: #FF8C00;
}

.cta a:last-of-type:hover {
    background-color: #e2ba89;
}

.about {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 50px;
    background-image: url('/assets/img/about-background.png');
    background-size: cover;
    background-position: center;

}

.section-title {
    font-size: 4rem;
    font-weight: 500;
    text-align: center;
}

.section-title:hover::after {
    content: "";
    display: block;
    width: 200px;
    height: 4px;
    background-color: var(--scar-color);
    margin: 0 auto;
    animation: line-appear 0.3s ease-in-out;
}

@keyframes line-appear {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.offre {    
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offers {
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.offers h2 {
    font-size: 1.5rem;
    font-weight: 500;
    height: 75px;
}

.vente {
    padding: 30px;
    width: 30%;
}

.vente .service-img {
    background-image: url('/assets/img/services/vente.jpeg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px;
}

.sav {
    padding: 30px;
    width: 30%;
}

.sav .service-img {
    background-image: url('/assets/img/services/atelier.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px;
}

.magasin {
    padding: 30px;
    width: 30%;
}

.magasin .service-img {
    background-image: url('/assets/img/services/magasin.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px;
}

ul.accordion-list {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
    list-style: none;
}

ul.accordion-list li {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    background-color: #FFF;
    padding: 20px;
    margin: 0 auto 15px auto;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: pointer;
}

ul.accordion-list li.active h3:after {
    transform: rotate(45deg);
}

ul.accordion-list li h3 {
    font-weight: 500;
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.01em;
    cursor: pointer;
}

ul.accordion-list li h3:after {
    content: "";
    font-family: "material-design-iconic-font";
    position: absolute;
    right: 0;
    top: 0;
    color: #Fcc110;
    transition: all 0.3s ease-in-out;
    font-size: 18px;
}

ul.accordion-list li div.answer {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

ul.accordion-list li div.answer p {
    position: relative;
    display: block;
    font-weight: 300;
    padding: 10px 0 0 0;
    cursor: pointer;
    line-height: 150%;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.news {
    display: flex;
    flex-direction: row;
    gap: 50px;
    padding: 50px;
}

.recrutements {
    width: 60%;
}

.actus {
    width: 40%;
}

.partenaires {
    width: 100vw;
    overflow-x: hidden;
    padding: 50px;
}

.contact {
    padding: 40px;
}

.contact .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
    padding: 50px;
}

.contact .container .form {
    display: flex;
    width: 70%;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.contact .container .form label {
    font-size: 1.2rem;
}

.contact .container .form input {
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
}

.contact .container .form textarea {
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
}

.contact .container .form select {
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
}

.group {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.group div {
    width: 50%;
}

.contact .container .form button {
    padding: 10px 20px;
    margin-top: 20px;
    background-color: var(--scar-color);
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact .container .map {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 10px;
}

.error {
    color: red;
    font-size: 1rem;
}

.contact .container .map iframe {
    width: 80%;
    height: 300px;
    border: none;
    border-radius: 5px;
    margin-left: 40px;
}

.contact .container .map .contact {
    width: 100%;
}


.address-details{
    display: flex;
    flex-direction: row;
    gap: 60px;
}

.address-details .open {
    text-align: center;
}

.h-captcha {
    margin-top: 20px;
}


footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #181818;
    color: white;
}

footer .logo {
    width: 30%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

footer .logo h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

footer .logo img {
    width: 250px;
    height: auto;
}

footer .sitemap {
    margin-right: auto;
    display: flex;
    flex-direction: row;
    gap: 100px;
}

footer .sitemap a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
}

footer .sitemap .section li {
    list-style: none;
    margin: 5px 0;
    font-size: 0.8rem;
}

footer .sitemap a:hover {
    color: #FF6500;
}


.offres {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 5%;
}

.no-offers {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    color: #FF6500;
}

.offre {
    display: flex;
    margin-bottom: 20px;
}

.photo img {
    width: 300px;
    height: auto;
    margin-right: 20px;
}

.details {
    flex: 1;
}

.details h2 {
    margin-top: 0;
}

.details p {
    margin: 5px 0;
}

.details strong {
    font-weight: bold;
}

.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}




@media screen and (max-width: 768px) {

    main {
        width: 100%;
        overflow: hidden;
    }

    .header-left {
        gap: 10px;
        width: 60vw;
    }

    .header-right {
        width: 40vw;
    }

    .scar-logo {
        display: flex;
        width: 40vw;
        align-items: center;
        justify-content: center;
    }

    .scar-logo img {
        width: 100px;
        height: auto;
    }

    .header-left h1 {
        font-size: 1.2rem;
    }

    .hero {
        justify-content: center;
        margin-top: 30vh;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1rem;
    }

    .cta {
        flex-direction: column;
        gap: 10px;
        width: -moz-fit-content;
        width: fit-content;
    }

    .cta a:first-of-type {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .cta a:last-of-type {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .about {
        padding: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title:hover::after {
        width: 100px;
    }

    .news {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin: 0 auto;
    }

    .actus {
        width: 100%;
        padding: 20px;
    }

    .recrutements {
        width: 100%;
        padding: 20px;
        
    }

    .offres {
        padding: 20px;
    }

    .offre {
        flex-direction: column;
    }

    .photo img {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    .details {
        margin-bottom: 20px;
    }

    .details h2 {
        font-size: 1.5rem;
    }

    .details p {
        font-size: 1rem;
    }

    .details strong {
        font-size: 1.2rem;
    }

    .no-offers {
        font-size: 1rem;
    }

    .offre {
        margin-bottom: 10px;
    }

    .offre:last-of-type {
        margin-bottom: 0;
    }

    .offre .photo img {
        width: 100%;
    }


    .partenaires {
        padding: 20px;
    }

    .contact {
        padding: 20px;
    }

    .contact .container {
        flex-direction: column;
        gap: 20px;
    }

    .contact .container .form {
        width: 100%;
    }

    .contact .container .form input {
        width: 100%;
    }

    .contact .container .form textarea {
        width: 100%;
    }

    .contact .container .map {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .contact .container .map iframe {
        height: 200px;
    }


    footer .logo h2 {
        font-size: 1.5rem;
    }

    footer .logo img {
        width: 150px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }

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

    footer .logo h2 {
        font-size: 1rem;
    }

    footer .logo img {
        width: 100px;
    }

    footer .sitemap {
        flex-direction: column;
        gap: 20px;
    }

    footer .sitemap a {
        font-size: 0.8rem;
    }

    footer .sitemap .section li {
        font-size: 0.8rem;
    }

    .offers {
        flex-direction: column;
    }

    .offers h2 {
        font-size: 1.2rem;
    }

    .vente {
        width: 100%;
        padding: 0;
        padding-right: 10%;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .vente .service-img {
        width: 90%;
        height: 200px;
    }

    .vente h2 {
        font-size: 1.2rem;
        height: fit-content;
    }

    .sav {
        width: 100%;
        padding: 0;
        padding-right: 10%;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .sav .service-img {
        width: 90%;
        height: 200px;
    }

    .sav h2 {
        font-size: 1.2rem;
        height: fit-content;
    }

    .magasin {
        width: 100%;
        padding: 0;
        padding-right: 10%;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .magasin .service-img {
        width: 90%;
        height: 200px;
    }

    .magasin h2 {
        font-size: 1.2rem;
        height: fit-content;
    }

    .offre {
        padding: 20px;
    }


}