/*====================================================================*/
/*                                 RESET                              */
/*====================================================================*/
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
button {background: none;border: none;} 

/*====================================================================*/
/*                                General                             */
/*====================================================================*/

:root {
    --primary-color: #e31e24;
    --primary-color-dark: #b6181e;
    --primary-color-light: #ec4b4a;
    --secondary-color: #2c9ff7;
    --secondary-color-dark: #237fc4;
    --secondary-color-light: #46a8f7;
    --background-color: #fff;
    --text-color: #1b1b1b;
    --accent-color: #ff6600;
    --transparent-dark-accent: rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--background-color);
    width: 100vw;
    min-height: 100dvh; 
    overflow-x: hidden;
}

main {
    min-height: calc(100dvh);
}

section {
    height: 100dvh;
    width: 100%;
}

a, button {
    color: var(--text-color);
    text-decoration: none;
}

strong {
    color: var(--primary-color);
}

.strong-2 {
    color: var(--secondary-color);
}


/*====================================================================*/
/*                                Nav-Bar                             */
/*====================================================================*/

header {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 64px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    background-color: transparent;
    box-shadow: 2px 2px 2px var(--transparent-dark-accent);
}

header .logo {
    height: 100%;
    width: max-content;
    display: flex;
    align-items: center;
    img {
        height: 85%;
        width: auto;
    }
}

.burger-icon {
    height: 44px;
    width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    margin-right: 14px;
    border-radius: 40%;
    span {
        background-color: black;
        height: 4px;
        width: 32px;
    }
}

/* Menu */
.menu-overlay {
    position:fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content:flex-end;
    opacity: 0;
    pointer-events: none;
    background-color: var(--transparent-dark-accent);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu-links-container {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
    padding: 15px;
    background-color: white;
    box-shadow: -2px 2px 2px rgb(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.menu-links-container.active {
    transform: translateX(0);
}

.menu-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-top: 50px;
    
    button, a {
        text-decoration: none;
        font-family: "Roboto";
        font-size: large;
        font-weight: 500;
    }

    button {
        padding-left: 15px;
    }
}

nav a:hover, nav button:hover{
    color: var(--primary-color-light);
}

/* Dropdown Menu */

.dropdown-button > span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 5px;
  margin-bottom: 3px;
  border-right: 3px solid var(--text-color); 
  border-bottom: 3px solid var(--text-color);
  transform-origin: center;
  transform: rotate(45deg);
  transition: transform 0.3s ease-in-out;
}

.dropdown-content {
    max-height: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease-in-out;

    li {
        width: fit-content;
    }

    a {
        font-size:medium;
        font-weight: 500;
    }
}

@media (max-width: 1000px) {
    .dropdown-button.active {
        color: var(--primary-color-light);
    }

    .dropdown-button.active > span {
        margin-bottom: 0px;
        transform: rotate(-135deg);
        border-color: var(--primary-color-light); 
    }

    .dropdown-content.active {
        padding-top: 15px;
        max-height: 500px;
    }
}

/* Close Menu Button */
.close-button {
    position: relative;
    width: 40px;
    height: 40px;
}

.close-button .line {
    position: absolute;
    top: 50%; 
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #333;
}

.close-button .line-1 {
    transform: translateY(-50%) rotate(45deg); 
}

.close-button .line-2 {
    transform: translateY(-50%) rotate(-45deg); 
}

/* Responsive */

@media (min-width: 1000px) {

    .logo{
        margin-left:10px;
    }

    .menu-overlay {
        position: static;
        overflow: visible;
        height: 100%;
        width: fit-content;
        opacity: 1;
        pointer-events: all;
        background-color: transparent;
    }

    .menu-links-container {
        transform: translateX(0);
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
        background-color: transparent;
    }

    .menu-links {
        margin-right: 80px;
        padding-top: 0px;
        flex-direction: row;

        li {
            display: inline-block;
            flex-wrap: nowrap;
            text-wrap: nowrap;
        }
        a, button {
            font-size: larger;
            font-weight: 400;
        }

        span {
            border-right: 2px solid var(--text-color); 
            border-bottom: 2px solid var(--text-color);
        }
    }

    .dropdown-content {
        position:absolute;
        overflow: hidden;
        left: 20px;
        padding: 20px 5px 0px 5px;
        gap: 20px;
        background-color: transparent;

        a {
            font-size:large;
            font-weight: 400;
        }
    }

    .dropdown-button:hover > .dropdown-content {
        max-height: 500px;
    }

    .dropdown-button:hover > span {
        transform: rotate(-135deg);
        margin-bottom: 0px;
        border-color: var(--primary-color-light); 
    }
}

/*====================================================================*/
/*                                Accueil                             */
/*====================================================================*/

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: url(../assets/pictures/hero.jpg) no-repeat top;
    background-size: 100% 40%;
}

.hero-content {
    height: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 100%);
    background-color: #1f257e;
    padding-top: 16%;
}

.hero-content .logo {
    width: 90%;
    padding-bottom: 4%;
}

.slogan {
    width: 80%;
    font-family: "roboto";
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1.5em;
    margin-bottom: 5%;;
}

.round-btn {
    display: inline-block;
    line-height: 70px;
    text-align: center;
    width: 70%;
    height: 70px;
    border-radius: 35px;
    margin-top: 5%;
    font-family: "roboto";
    transition: all 0.3s ease-in-out;
}

.call-btn {
    box-shadow: 0 0 10px rgba(227, 30, 36, 0.5);
    background-color: var(--primary-color);
    font-size: 1.4em;
    font-weight: 700;
}

.contact-btn {
    width: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: black;
    color: white;
    font-size: 1.2em;
    font-weight: 500;
}

.round-btn:hover {
    transform: scale(1.1);
}

.round-btn:active {
    transform: scale(0.9);
}


@media (min-width: 1000px) {
    .hero-section {
        flex-direction: row;
        justify-content: flex-start;
        background: url(../assets/pictures/hero.jpg) no-repeat right;
        background-size: auto 100%;
    }

    .hero-content {
        height: 100%;
        width: 65%;
        padding-top: 100px;
        align-items: center;
        clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
    }

    .hero-content .logo{
        height: auto;
        width: 70%;
        margin-right: 20%;
        img {
            height: 100%;
            width: auto;;
        }
    }

    .slogan {
        font-size: 2em;
    }

    .round-btn {
        width: 40%;
    }
}



/*====================================================================*/
/*                               Error 404                            */
/*====================================================================*/

.error-404-container {
    overflow: hidden;
    padding-top: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Roboto";
}

.error-code {
    font-size: 14rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.error-message, .error-link {
    text-align: center;
    font-size: larger;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
}

/*====================================================================*/
/*                                Hidden                              */
/*====================================================================*/

.hidden {
    display: none;
}

@media (max-width: 1000px) {
    .desktop {
        display: none;
    }
}

@media (min-width: 1000px) {
    .mobile {
        display: none;
    }
}