@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');
/* ############# */
/* global */
/* ############# */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter Tight';
    text-decoration: none;
    outline: none;
    border: none;
    scroll-behavior: smooth;
    color: var(--dark);
}

:root {
    --light: #FAFAFA;
    --dark: #0F0F0F;
    --accent: #FFDF0F;
    --fonce: #001787;
}

h1 {
    text-transform: uppercase;
}

img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.underline {
    text-decoration: underline;
}

.petit-txt {
    font-size: clamp(.8rem, 1vw, 1rem);
    font-weight: 300;
    color: var(--fonce);
}

.strong {
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    font-weight: 600;
}

.paragraphe {
    font-size: clamp(.9rem, 1.2vw, 1.2rem);
    font-weight: 400;
}

.sous-titre {
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 600;
}

.titre {
    font-size: clamp(1.6rem, 3.6vw, 4rem);
    font-weight: 800;
}

.shadow {
    text-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
}

.light {
    color: var(--light);
}

.dark {
    color: var(--dark);
}

.fonce {
    color: var(--fonce);
}

.accent {
    color: var(--accent);
}

.italic {
    font-style: italic;
}

.center {
    text-align: center;
}




.width {
    max-width: 1300px;
    padding: 3rem min(5vw, 6rem);
    width: 100%;
}

.width-f {
    max-width: 1300px;
    padding: 3rem 0;
    width: 100%;
}

.btn {
    padding: 1rem 2rem;
    background-color: var(--accent);
    box-shadow: 0 0 1em rgba(0, 0, 0, 0);
    transition: border-radius .3s ease, box-shadow .3s ease;
}

.btn:hover {
    border-radius: clamp(.5rem, .8vw, .85rem);
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.3);
}

nav,
.hero-p,
.principale,
.ateliers,
.social-proof,
.pourquoi-nous,
footer,
.hero,
.presentation-c,
.demande,
.debosseleur-p,
.caracteristique-d,
.avant-apres,
.social-proof-d,
.specifications-m,
.presentation-v,
.marques,
.mentions-legales {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-p .box-parent,
.hero-p .box-parent-box,
.principale .width,
.ateliers .width,
.ateliers .box-parent,
.ateliers .box,
.hero .width,
.debosseleur-p .width,
.avant-apres .width,
.social-proof-d .box-parent,
.presentation-c .width,
.specifications-m .width,
.marques .width {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.principale .box-parent,
.pourquoi-nous .width,
.debosseleur-p .box-parent,
.presentation-c .box-parent {
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ----------- */
/* nav */
/* ----------- */
nav {
    position: fixed;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
    padding: 0 min(5vw, 6rem);
    width: 100%;
}

nav::before {
    position: absolute;
    z-index: 99;
    right: 0;
    content: "";
    height: 100%;
    width: 0%;
    background-color: var(--dark);
    transition: width .3s ease-in-out;
}

nav.active::before {
    width: 100%;
}

nav img {
    position: relative;
    z-index: inherit;
    height: 80%;
    width: auto;
}

@media (max-width: 1350px) {
    nav img {
        display: none;
    }
}

@media (max-width: 960px) {
    nav {
        display: none !important;
    }
}

nav .burger {
    position: relative;
    z-index: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 4rem;
    width: 5rem;
}

nav .burger div {
    height: .5rem;
    width: 80%;
    background-color: var(--light);
    transition: all .3s ease-in-out;
    transform-origin: center;
}

nav.active .burger div:nth-child(1) {
    transform: translateY(1.3rem) rotate(45deg);
}

nav.active .burger div:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

nav.active .burger div:nth-child(3) {
    transform: translateY(-1.3rem) rotate(-45deg);
}

nav .menu-deroulant {
    position: absolute;
    z-index: inherit;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3vw;
}

nav .menu-deroulant a {
    opacity: 0;
    pointer-events: none;
    position: relative;
    color: var(--light);
    text-decoration: none;
    transition: opacity .2s ease-in;
}

nav.active .menu-deroulant a {
    opacity: 1;
    pointer-events: all;
    transition: opacity .3s ease .3s;
}

nav .menu-deroulant a:hover::before,
nav .menu-deroulant a:hover::after {
    width: 50%;
}

nav .menu-deroulant a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: .15rem;
    background-color: var(--light);
    transition: width .2s ease;
}

nav .menu-deroulant a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -5px;
    width: 0;
    height: .15rem;
    background-color: var(--light);
    transition: width .2s ease;
}

/* ----------- */
/* hero */
/* ----------- */
.hero-p {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    position: relative;
}

.hero-p video {
    position: fixed;
    z-index: -1;
    top: 0;
    height: 100dvh;
    width: 100%;
    object-fit: cover;
}
.hero-p .fond-pas-video {
    position: fixed;
    z-index: -2;
    top: 0;
     background-image: url('porte-garage.jpg');
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}
#scroll-canvas {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    /* Note : On gèrera l'équivalent du "object-fit: cover" directement dans le JavaScript */
}

.hero-p .box-parent {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 100dvh;
    width: 100%;
}

.hero-p .box-parent-box {
    max-width: 1300px;
    width: max(50%, 330px);
}

.hero-p .presentation {
    position: relative;
    z-index:60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    margin-top: 100vh;
    height: 100dvh;
    width: 40%;
    max-width: 1300px;
    background-color: var(--light);
    margin-bottom: 100vh;
}

@media (max-width: 900px) {
    .hero-p .presentation {
        opacity: 0;
    }
}

/* ----------- */
/* principale */
/* ----------- */
.principale {
    background-color: var(--fonce);
}

.principale .gauche {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: max(60%, 330px);
    background-color: var();
}

.principale .droite {
    width: 0;
    aspect-ratio: 4 / 3;
    background-color: var(--accent);
}

@media (min-width: 900px) {
    .principale .droite {
        width: max(35%, 300px);
    }
}

@media (max-width: 450px) {
    .principale .droite {
        width: max(35%, 300px);
    }
}

/* ----------- */
/* ateliers */
/* ----------- */
.ateliers {
    background-color: var(--light);
}

.ateliers .box-parent {
    display: grid;
    /* On définit une taille minimale de 300px et maximale de 1fr */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    align-items: start;
}

.ateliers .box-parent-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ateliers .box {
    width: 100%;
    aspect-ratio: 4 / 3;
    text-align: center;
}

.ateliers .box-parent .box-parent-box:nth-child(1) .box {
    background-image: url('dsp-2.png');
    background-position: center;
    background-size: cover;
}

.ateliers .box-parent .box-parent-box:nth-child(2) .box {
    background-image: url('mecanique-1.png');
    background-position: center;
    background-size: cover;
}

.ateliers .box-parent .box-parent-box:nth-child(3) .box {
    background-image: url('carrosserie-1.png');
    background-position: center;
    background-size: cover;
}

.ateliers .box-parent .box-parent-box:nth-child(4) .box {
    background-image: url('vente-1.png');
    background-position: center;
    background-size: cover;
}


/* ----------- */
/* social-proof */
/* ----------- */
.social-proof {
    background-color: var(--light);
}

.social-proof .width {
    display: flex;
    justify-content: space-evenly;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-proof .box,
.social-proof-d .box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
    border-radius: clamp(.5rem, .8vw, .85rem);
    background-color: var(--light);
    transition: scale .3s ease;
    width: max(30%, 300px);
}

.social-proof .box:hover,
.social-proof-d .box:hover {
    scale: 1.02;
}

.social-proof .stars,
.social-proof-d .stars {
    display: flex;
    align-items: end;
    gap: 1rem;
}

/* ----------- */
/* pourquoi-nous */
/* ----------- */
.pourquoi-nous {
    background-color: var(--light);
}

.pourquoi-nous .gauche {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: max(60%, 330px);
}

.formulaire {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    width: max(35%, 300px);
    aspect-ratio: 4/5;
    border-radius: clamp(.5rem, .8vw, .85rem);
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
    background-color: var(--light);

}

.textfield {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.textfield input,
.textfield textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background-color: var(--light);
    transition: 0.3s;
}

.textfield input:focus,
.textfield textarea:focus {
    border-color: var(--fonce);
    background-color: var(--light);
}

/* ----------- */
/* footer */
/* ----------- */
footer {
    background-color: var(--fonce);
}

footer .width {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 1229px) {
    footer .width {
        flex-direction: column;
        justify-content: center;

    }

}

footer .box-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 70%;
}


footer .box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: max(20%, 200px);
}

footer p,
footer .strong {
    color: var(--light);
}

footer .droite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: max(25%, 300px);
}

/* debosselage */
/* debosselage */
/* debosselage */
/* debosselage */
/* debosselage */

.hero {
    background-color: var(--fonce);
    background-image: url('porte-garage.jpg');
    background-position: center;
    background-size: cover;
    width: 100%;
    background-repeat: no-repeat;
}

.hero .width {
    min-height: 70vh;
}

/* -------- */
/* debosseleur-p */
/* -------- */
.debosseleur-p {
    background-color: var(--light);
}

.debosseleur-p .box-parent .gauche {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 1rem;
    width: max(60%, 330px);
}

.debosseleur-p .box-parent img {
    width: 0;
    aspect-ratio: 4 / 3;
    height: auto;
}

@media (min-width: 900px) {
    .debosseleur-p .box-parent img {
        width: max(35%, 300px);
    }
}

@media (max-width: 450px) {
    .debosseleur-p .box-parent img {
        width: max(35%, 300px);
    }
}

/* -------- */
/* caracteristique-d */
/* -------- */
.caracteristique-d {
    background-color: var(--light);
}

.caracteristique-d .width {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.caracteristique-d .gauche {
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    width: max(40%, 300px);
}

.caracteristique-d .gauche img {
    position: sticky;
    top: 30%;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;

}

.caracteristique-d .box-parent {
    display: flex;
    flex-direction: column;
    gap: 50vh;
    width: max(40%, 300px);
}

@media (max-width:693px) {
    .caracteristique-d .box-parent {
        gap: 2rem;
    }
}

@media (min-width: 994px) {
    .caracteristique-d .gauche img {
        margin-bottom: 30vh;
    }

    .caracteristique-d .box-parent .box:nth-child(1) {
        margin-top: 50vh;
    }

    .caracteristique-d .box-parent .box:nth-child(4) {
        margin-bottom: 60vh;
    }

}

.caracteristique-d .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: clamp(.5rem, .8vw, .85rem);
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
    background-color: var(--light);
}

/* -------- */
/* hero */
/* -------- */
.avant-apres {
    background-color: var(--fonce);
}

.avant-apres .box-parent {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 2rem;
}

.avant-apres img {
    width: max(30%, 300px);
    height: auto;
    aspect-ratio: 4/3;
}

/* -------- */
/* social-proof-d */
/* -------- */
.social-proof-d {
    background-color: var(--light);
}

.social-proof-d .width {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-proof-d .box-parent {
    width: max(50%, 300px);
}

.social-proof-d .box {
    width: max(60%, 300px);
}

/* carrosserie */
/* carrosserie */
/* carrosserie */
/* carrosserie */
/* carrosserie */
/* carrosserie */
/* -------- */
/* hero */
/* -------- */
.presentation-c {
    background-color: var(--light);
}

.presentation-c .box-parent {
    width: 100%;
}

.presentation-c .gauche {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 1rem;
    width: max(60%, 330px);
}

.presentation-c .box-parent img {
    width: 0;
    height: auto;
    aspect-ratio: 4 / 3;
}

@media (min-width: 900px) {
    .presentation-c .box-parent img {
        width: max(35%, 300px);
    }
}

@media (max-width: 450px) {
    .presentation-c .box-parent img {
        width: max(35%, 300px);
    }
}

/* -------- */
/* demande */
/* -------- */
.demande {
    background-color: var(--light);
}

.demande .width {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* mecanique */
/* mecanique */
/* mecanique */
/* mecanique */
/* mecanique */
/* mecanique */
/* -------- */
/* hero */
/* -------- */
.hero .gauche-txt {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
}

/* -------- */
/* specifications-m */
/* -------- */
.specifications-m {
    background-color: var(--light);
}

.specifications-m .box-parent {
    width: 100%;
    display: grid;
    /* On définit une taille minimale de 300px et maximale de 1fr */
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    align-items: stretch;
    gap: 2rem;
}

.specifications-m .box {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    padding: 2rem;
    width: 100%;
    border-radius: clamp(.5rem, .8vw, .85rem);
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
    background-color: var(--light);
}


.specifications-m .box .header {
    text-align: center;
    width: 100%;
}

.specifications-m .box .image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.specifications-m .box img {
    height: 7rem;
    width: auto;
}

/* -------- */
/* social-proof */
/* -------- */
.social-proof-b {
    background-color: var(--fonce);
}


/* vente */
/* vente */
/* vente */
/* vente */
/* vente */
/* vente */
/* -------- */
/* presentation-v */
/* -------- */
.presentation-v {
    background-color: var(--fonce);
}

.presentation-v .width {
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.presentation-v .box {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 1rem;
    width: max(60%, 330px);
}

.presentation-v img {
    width: 0;
    height: auto;
    aspect-ratio: 4 / 3;
}

@media (min-width: 900px) {
    .presentation-v img {
        width: max(35%, 300px);
    }
}

@media (max-width: 450px) {
    .presentation-v img {
        width: max(35%, 300px);
    }
}

/* -------- */
/* marques */
/* -------- */
.marques {
    background-color: var(--light);
}

.marques .width div:nth-child(1) {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.marques .box-parent {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.marques .box-parent img {
    width: max(30%, 300px);
    aspect-ratio: 4 / 3;
    height: auto;
}

/* -------- */
/* mentions-legales */
/* -------- */
.mentions-legales {
    background-color: var(--light);
}

.mentions-legales .width {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}