/*---------------------------- TYPOS ----------------------------*/
@font-face
{
    font-family: "Taviraj";
    src: url("../font/Taviraj-SemiBold.ttf");
}

@font-face
{
    font-family: "Taviraj-medium";
    src: url("../font/Taviraj-Medium.ttf");
}

@font-face
{
    font-family: "Inria";
    src: url("../font/InriaSans-Regular.ttf");
}

@font-face
{
    font-family: "Inria-bold";
    src: url("../font/InriaSans-Bold.ttf");
}


/*---------------------------- GENERAL ----------------------------*/
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body
{
    font-family: "Inria";
    color: #592B02;
    background-color: #F2F0D5;
}

img
{
    width: 100%;
    height: auto;
}

a
{
    color: #F2F0D5;
    text-decoration: none;
    display: block;
}

.titre
{
    background-image: url("../img/fond_titre.png");
    background-position: center;
    background-size: cover;
    border: solid 5px #4D5580;
    padding: 10px;
    width: 35%;
    color: #F2F0D5;
    text-align: center;
    font-family: "Taviraj";
    font-size: 2em;
    margin-top: 100px;
}

.ribbon 
{
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    clip-path: polygon(
        0% 0%, 25px 50%, 0% 100%, 
        100% 100%, calc(100% - 25px) 50%, 100% 0%
    );
}

.ribbon::before,
.ribbon::after 
{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0px;
    height: 100%;
    border-left: transparent;
    border-right-style: solid;
    border-right-width: 18px;
    border-left-style: solid;
    border-left-width: 16px;
    border-color: inherit;
    clip-path: polygon(
        100% 0, calc(100% - 5px) 0, 20% 50%, calc(100% - 5px) 100%, 100% 100%
    );
}

.ribbon::before 
{
    left: 0;
    border-right-style: solid;
    border-right-width: 16px;
    border-left-style: solid;
    border-left-width: 18px;
    border-color: inherit;
    clip-path: polygon(
        0% 0%, 5px 0, 80% 50%, 5px 100%, 0% 100%
    );
}

.dash-brown
{
    border: dashed 3px #592B02;
}

.dash-blue
{
    border: dashed 3px #4D5580;
}

.background-brown
{
    background-color: #592B02;
}

.background-blue
{
    background-color: #4D5580;
}

.button
{
    text-decoration: none;
    color: #F2F0D5;
    padding: 30px;
    flex-basis: 45%;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5em;
}

.btn-brown
{
    background-color: #592B02;
    transition: background-color 250ms ease-in-out;
}

.btn-brown:hover
{
    background-color: #F2F0D5;
    color: #592B02;
}

.btn-blue
{
    background-color: #4D5580;
    transition: background-color 250ms ease-in-out;
}

.btn-blue:hover
{
    background-color: #F2F0D5;
    color: #4D5580;
}

/*---------------------------- SCROLL TO TOP (PC)------------------------*/
#services,
#produits {
    scroll-margin-top: 220px; /* pour compenser le header sticky */
}


/*---------------------------- NAVIGATION ----------------------------*/
header
{
    height: 15vh;
    background-color: #592B02;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu
{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px 0 50px;
}

.menu
{
    display: flex;
    list-style: none;
}

.menu li
{
    display: block;
    text-align: center;
    font-size: 1.5em;
}

.button-nav
{
    padding: 20px 30px;
    margin: 0 10px;
    display: flex;
    color: #F2F0D5;
    text-decoration: none;
    border: dashed 2px #592B02;
    transition: color 250ms ease-in-out;
}

.button-nav:hover
{
    border: dashed 2px #F2F0D5;
    color: #4D5580;
}

.nav-menu .button-nav.active,
.nav-hamburger .button-nav.active
{
    border: dashed 2px #F2F0D5;
}

.logo
{
    font-family: "Taviraj";
    text-transform: uppercase;
    font-size: 1.3em;
}

.logo:hover
{
    color: #F2F0D5;
}


/*---------------------------- NAV HAMBURGER ----------------------------*/

.mask
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: none; /* Initially hidden */
}

.mask.active
{
    display: block; /* Show when active */
}

.nav-hamburger
{
    display: none;
}

.burger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10;
  }
  
  .burger span {
    height: 4px;
    background: #F2F0D5;
    transition: 0.3s ease;
  }
  
  /* Animation */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
  }
  
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
  }

.close
{
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
}

.close::before
{
    content: "×";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 5em;
    line-height: 0.6;
    color: #F2F0D5;
}

.navbar
{
    position: fixed;
    /* a higher z-index put navbar above hamburger */
    z-index: 100;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    overflow: hidden;
    /* basic menu styling*/
    list-style: none;
    background: #592B02 /*#F2F0D5*/;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    row-gap: 35px;
    align-items: center;
    /* animate slide from right */
    transform: translateX(100%);
    transition: transform 0.2s ease;
    visibility: hidden;
}

.navbar.active {
    transform: translateX(0);
    visibility: visible;
}

.navbar li
{
    width: 100%;
}
  
.navbar li a
{
    display: block;
    color: #F2F0D5;
    font-size: 2.5em;
    text-decoration: none;
    /* border: dashed 5px #F2F0D5; */
    width: 80%;
    text-align: center;
    margin: 0 auto;
}


/*---------------------------- BANNIERE ----------------------------*/
.accueil
{
    height: 85vh;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url("../img/banniere.webp");
    background-size: cover;
    background-position: center;
}

.accueil h1
{
    font-family: "Taviraj";
    text-transform: uppercase;
    /* font-size: 5rem; */
    font-size: clamp(1.4rem, -0.11825rem + 5vw, 5rem);
    color: #592B02;
}

.accueil h2
{
    font-family: "Inria";
    font-size: clamp(0.7rem, -0.11825rem + 2.5vw, 2.5rem);
    color: #592B02;
}


/*---------------------------- EXTRAITS SERVICES ----------------------------*/
.informations
{
    width: 80%;
    margin: 100px auto;
}

.informations h1
{
    margin-bottom: 40px;
}

.informations p
{
    font-size: 2em;
}

.informations-detail
{
    margin-top: 40px;
    display: flex;
    gap: 40px;
    width: 100%;
    text-align: center;
    justify-content: space-between;
}

.informations-detail p
{
    padding: 10px;
    width: 100%;
    color: #592B02;
    margin: 10px 0;
    font-family: "Inria-bold";
    font-size: 1.4em;
}

.informations-detail div
{
    flex-basis: 24%;
}

.informations-detail img
{
    padding: 10px;
    margin-bottom: 10px;
}


/*---------------------------- SERVICES ----------------------------*/
.services
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
    list-style: none;
    padding-left: 0;
    width: 80%;
    margin: 100px auto;
    text-align: center;
    color: #F2F0D5;
}

.services li
{
    padding: 10px;
}

.services li:hover
{
    transform: rotate(5deg);
}

.services p
{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    height: 100%;
}


/*---------------------------- PRODUITS ----------------------------*/

.products
{
    margin-top: 20px;
    display: flex;
    width: 100%;
    text-align: center;
    gap: 10px;
    justify-content: space-between;
}

.products p
{
    padding: 10px;
    width: 100%;
    background-color: #592B02;
    color: #F2F0D5;
    text-transform: uppercase;
    margin: 10px 0;
    font-family: "Taviraj-medium";
    font-size: 1.5em;
}

.products .list
{
    flex-grow: 1;
}

.products ul {
    background-color: #4D5580;
    font-size: 1.2em;
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 5px;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.products li
{
    color: white;
    text-transform: uppercase;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.products li::before {
    content: '•';
    margin-right: 15px;
    font-size: 2em;
    display: inline-block;
    line-height: 1;
}

.products div {
    display: flex;
    flex-direction: column;
}

.products div:has(img)
{
    flex-basis: 35%;
}

.products div:has(.list)
{
    flex-basis: 25%;
}

.products img,
.products .list
{
    padding: 20px;
}


/*---------------------------- A PROPOS ----------------------------*/
.section-a-propos
{
    width: 80%;
    margin: 150px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-a-propos article
{
    padding: 0 20px;
    width: 60%;
    margin: 0 60px;
}

.section-a-propos h1
{
    color: #4D5580;
    font-family: "Taviraj";
    font-size: 2.5em;
}

.section-a-propos p
{
    font-size: clamp(0.8em, 1.5vw, 1.7em);
    text-align: justify;
    line-height: 1.5;
}

.section-a-propos img
{
    width: 40%;
}

.dashed-line 
{
    width: 100%; /* tu peux changer la longueur */
    height: 7px; /* hauteur de la ligne */
    background-image: repeating-linear-gradient(
      to right,
      #4D5580 0px,
      #4D5580 18px,       /* largeur d’un tiret */
      transparent 18px,
      transparent 32px /* espacement = 10px ici */
    );
}


/*---------------------------- CONTACT ----------------------------*/
.contact
{
    height: 70vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.informations .mb-0
{
    margin-bottom: 0px;
}

.contact strong
{
    color: #4D5580;
    text-transform: uppercase;
}

.infos-contact
{
    height: 100%;
    flex-basis: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.4em;
}

.infos-contact p
{
    margin-top: 45px;
    font-size: 1.2em;
}

.infos-contact h2 strong
{
    color: #F2F0D5;
}

.infos-contact h2
{
    background-color: #592B02;
    padding: 20px;
    text-align: center;
}

.map
{
    flex-basis: 50%;
    height: 500px;
    margin: auto 0;
    position: relative;
    border: dashed 10px #4D5580;
}

.map iframe
{
    width: 100%;
    height: 100%; 
}


/*---------------------------- CALL TO ACTION ----------------------------*/
.call-to-action
{
    padding: 50px 80px 50px 80px;
    display: flex;
    background: url("../img/bandeau.png");
    background-size: cover;
    background-position: bottom;
    justify-content: space-between;
    align-items: center;
}

.call-to-action h1
{
    font-size: 4em;
    font-family: Karu;
    color: white;
}

.call-to-action div
{
    flex-basis: 30%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-call-to-action
{
    color: #F2F0D5;
    padding: 30px;
    text-align: center;
    font-size: 1.5em;
    border: dashed 5px #F2F0D5;
    background-color: #4D5580;
    white-space: nowrap;
}


/*---------------------------- PIED DE PAGE ----------------------------*/
footer
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 30px;
    padding: 30px 20px;
    min-height: 200px;
    background-color: #592B02;
    color: #F2F0D5;
}

.footer-box
{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding-left: 10px;
    height: 85%;
    border-right: 2px solid #F2F0D5;
}

.footer-box p, .footer-box a
{
    width: fit-content;
}

.footer-box a:hover
{
    color: #4D5580;
}

.footer-box h3
{
    font-family: "Taviraj";
}

.footer-menu
{
    flex-basis: 20%;
}

.footer-menu a {
    text-transform: uppercase;
}

.footer-contact
{
    flex-basis: 20%;
}

.marque
{
    align-self: flex-end;
}


/*---------------------------- RESPONSIVE ----------------------------*/
@media only screen and (max-width: 1500px) 
{
    .services
    {
        gap: 50px;
        width: 90%;
    }

    .call-to-action-contact div
    {
        flex-basis: 45%;
    }
}

@media only screen and (max-width: 1422px) 
{
    .titre
    {
        width: 40%;
    }

    .informations br
    {
        display: none;
    }

    .products li
    {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 1200px) 
{
    .titre
    {
        width: 50%;
    }

    .accueil {
        height: 75vh;
    }

    .informations-detail 
    {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }

    .informations-detail div 
    {
        flex-basis: 48%; /* 2 par ligne avec un petit espace entre */
        margin-bottom: 20px;
    }

    .services
    {
        gap: 30px;
        width: 100%;
    }

    .products p
    {
        font-size: 1.2em;
    }

    .products li
    {
        font-size: 1.2em;
    }

    .section-a-propos
    {
        width: 90%;
    }
    
    .section-a-propos article
    {
        padding: 0 20px;
        margin: 0;
    }

    .contact
    {
        flex-direction: column;
        min-height: 70vh;
        height: unset;
    }

    .infos-contact
    {
        align-items: center;
        margin-bottom: 50px;
    }

    .infos-contact h2
    {
       margin-top: 50px;
       width: 70%;
    }

    .map
    {
        flex-basis: unset;
        height: 375px;
    }

    .call-to-action
    {
        padding: 50px;
    }

    .call-to-action h1
    {
        font-size: 3.5em;
    }

    .call-to-action div
    {
        flex-basis: 35%;
    }

    .call-to-action-contact div
    {
        flex-basis: 45%;
    }

    .footer-menu
    {
        flex-basis: 30%;
    }

    .footer-contact
    {
        flex-basis: 30%;
    }
}

@media only screen and (max-width: 1050px) 
{
    .services
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 992px) 
{
    .products
    {
        flex-direction: column;
    }

    .products>div
    {
        margin-bottom: 50px;
    }

    .products img
    {
        object-fit: cover;
        max-height: 420px;
    }

    .section-a-propos
    {
        flex-basis: 100%;
        flex-direction: column;
        margin: 20px auto;
    }
    
    .section-a-propos article
    {
        margin: 50px 0 50px;
        width: 100%;
    }

    .section-a-propos p
    {
        font-size: 1.2em;
        line-height: auto;
    }

    .section-a-propos img
    {
        width: 80%;
    }

    .nav-menu
    {
        padding: 0 20px 0 20px;
    }

    .button-nav
    {
        padding: 10px 20px;
        margin: 0;
    }
}

@media only screen and (max-width: 990px) 
{
    .titre
    {
        width: 60%;
    }

    .call-to-action h1
    {
        font-size: 3em;
    }

    .call-to-action div
    {
        flex-basis: 40%;
    }

    .call-to-action-contact div
    {
        flex-basis: 50%;
    }
}

@media only screen and (max-width: 890px) 
{
    .accueil
    {
        height: 65vh;
    }

    .call-to-action
    {
        flex-direction: column;
        width: 100%;
    }

    .call-to-action h1
    {
        font-size: 4em;
        margin-bottom: 50px;
    }

    .call-to-action div
    {
        width: 100%;
    }

    .info-call-to-action
    {
        flex-basis: 45%;
    }
}

@media only screen and (max-width: 790px) 
{
    .titre
    {
        justify-self: center;
        width: 75%;
    }

    .informations
    {
        width: auto;
        margin: 100px 40px;
    }

    .informations p
    {
        font-size: 1.7em;
    }

    .footer-menu
    {
        flex-basis: 45%;
    }

    .footer-contact
    {
        flex-basis: 45%;
    }
}

@media only screen and (max-width: 776px) 
{
    .call-to-action
    {
        background: url("../img/bandeau_responsive.png");
        background-position: bottom;
    }
}

@media only screen and (max-width: 768px) 
{
    .nav-menu
    {
        display: none;
    }

    .nav-hamburger
    {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 50px 0 50px;
    }

    .button-nav:hover
    {
        border: dashed 4px #F2F0D5;
        color: #F2F0D5;
    }

    .nav-hamburger .button-nav.active:not(.logo)
    {
        border: dashed 4px #F2F0D5;
    }

    .accueil
    {
        height: 52vh;
        padding: 50PX 50px 50px 50px;
    }

    .call-to-action h1
    {
        font-size: 3em;
        text-align: center;
    }

    
    /*---------------------------- SCROLL TO TOP (MOBILE)------------------------*/
    #services,
    #produits {
        scroll-margin-top: 150px; /* pour compenser le header sticky */
    }


}

@media only screen and (max-width: 576px) 
{
    .titre
    {
        width: 100%;
    }

    .accueil
    {
        padding: 50PX 20px 50px 20px;
    }

    .informations p
    {
        text-align: center;
    }

    .services
    {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        width: 80%;
        margin: 50px auto;
    }

    .info-call-to-action {
        padding: 30px 15px;
    }


    footer
    {
        flex-direction: column;
        align-items: center;
        text-align: center;

    }

    .footer-box
    {
        border-right: none;
        border-bottom: 2px solid #F2F0D5;
        padding-left: 0px;
        padding-bottom: 50px;
    }

    .footer-box p, .footer-box a
    {
        width: 100%;
    }

    .marque
    {
        align-self: unset;
    }
}

@media only screen and (max-width: 550px) 
{
    .infos-contact h2
    {
       width: 100%;
       font-size: 1.3em;
    }

    .infos-contact p
    {
        font-size: 1em;
    }
}

@media only screen and (max-width: 500px) 
{
    .section-a-propos article
    {
        margin: 20px 0 50px;
    }

    .section-a-propos h1
    {
        font-size: 2em;
    }

    .section-a-propos p
    {
        font-size: 0.8em;
    }
}

@media only screen and (max-width: 450px) 
{
    .titre
    {
        font-size: 1.8em;
    }

    .button-nav
    {
        padding: 10px 0px;
        margin: 0;
    }

    .logo
    {
        padding: 10px 10px;
    }

    .nav-hamburger
    {
        padding: 0 20px 0 20px;
    }

    .accueil
    {
        height: 35vh;
    }

    .informations p
    {
        font-size: 1.5em;
    }

    .informations-detail 
    {
        flex-direction: column;
    }

    .informations-detail div
    {
        margin-bottom: 50px;
    }

    .informations-detail img
    {
        margin-bottom: 5px;
    }

    .informations-detail p
    {
        margin: 0;
    }

    .infos-contact h2
    {
       font-size: 1em;
    }

    .infos-contact p
    {
        font-size: 0.8em;
    }

    .call-to-action
    {
        padding: 30px;
    }
    
    .call-to-action h1
    {
        font-size: 2.8em;
    }

    .call-to-action div
    {
        flex-direction: column;
        row-gap: 50px;
    }
}

@media only screen and (max-width: 400px) 
{
    .accueil
    {
        height: 35vh;
    }

    .titre
    {
        font-size: 1.5em;
    }

    .services
    {
        width: 100%;
    }

    .section-a-propos h1
    {
        font-size: 1.5em;
    }
}