:root
{
    --navBackground: linear-gradient(to bottom, #b3bfc0, #9EACAD);
    --heroBackground: #9EACAD; 
    --sectionBackground: #9EACAD;
    --pageBackground: linear-gradient(to top right, #e9f5fa, #f5f5f3);
    --border: #7B1040;
    --button: #2A3C49;
    --buttonHover: #6890af;
    --CTA: #7B1040;
    --CTAHover: #bd276b; 
    --navLinkHover: #FCFFFF;
    --menuHover: linear-gradient(to bottom, #422131, #341926);
    --CTAClick: #e0e1e2;
    --link: #7B1040; 
    --icon:#7B1040;
    --currentPage: #2A3C49;
    --lightText: #e0e1e2;
    --darkText: #2A3C49;
    --iconBackground: #9EACAD;
    --cardBackground : linear-gradient(to bottom right, #e0e1e2, #9EACAD);

    --services1Background: linear-gradient(to bottom right, #e0f7fa6a, #9EACAD);
    --services2Background: linear-gradient(to bottom right, #fce4ec72, #a267828a);
    --services3Background: linear-gradient(to bottom right, #f7f7f7, #b6b5b5);

}

/* ---------------------------------- Fonts --------------------------------- */

@font-face 
{
    font-family: "Poppins";
    src: url("./assets/fonts/Poppins-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face 
{
    font-family: "PoppinsMedium";
    src: url("./assets/fonts/Poppins-Medium.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Merriweather";
    src: url("./assets/fonts/Merriweather_24pt-Regular.woff2") format("woff2");
    font-display: swap;
}


/* --------------------------------- Global --------------------------------- */

html
{
    font-size: 16px;
    scroll-behavior: smooth;
}

@media screen and (min-width: 1188px)
{
    html
    {
        font-size: 18px;
    }
}

@media screen and (min-width: 1400px)
{
    html
    {
        font-size: 20px;
    }
}

body {
    width: 100vw;
    background: var(--pageBackground);
    background-image: 
        url("./images/grain.webp"),
        radial-gradient(circle at 50% 50%, rgba(230, 230, 250, 0.3) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 20% 80%, rgba(230, 230, 250, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    background-size: cover, 250% 250%, 300% 300%;
    background-position: center, 50% 50%, 20% 80%;
    background-blend-mode: soft-light;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
    animation: liquidLight 20s ease-in-out infinite alternate;
}

@keyframes liquidLight {
    0% {
        background-position: center, 48% 52%, 18% 78%;
        background-size: cover, 260% 260%, 310% 310%;
    }
    50% {
        background-position: center, 52% 48%, 22% 82%;
        background-size: cover, 240% 240%, 290% 290%;
    }
    100% {
        background-position: center, 48% 52%, 18% 78%;
        background-size: cover, 260% 260%, 310% 310%;
    }
}
main
{
    display: flex;
    flex-flow: column nowrap;
    gap: 32px;
}

h2
{
    font-family: Poppins, sans-serif;
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.2px;
    line-height: 44px;
    color: var(--darkText); 
}

p, label
{
    font-family: Merriweather, serif;
    font-size: 1rem;
    line-height: 40px;
    letter-spacing: 1.1px; 
    color: var(--darkText); 
}

input[type=text], input[type=email], input[type=tel]
{
    height: 48px;
    border-radius: 3px;
    border: none;
}

input, textarea
{
    font-family: Merriweather, serif;
    font-size: 0.8rem;
    letter-spacing: 1.1px; 
    color: var(--darkText); 
}

textarea
{
    height: 200px;
    border-radius: 3px;
    border: none;
}

button[type=submit]
{
    padding: 20px 32px;
    width: 100%;
    font-size: 1rem;

    text-decoration: none;

    color: var(--lightText); 

    box-shadow: 7px 7px 10px -5px rgba(0,0,0,0.75);
    border-radius: 3px;
    border: none;

    background: linear-gradient(to left, var(--CTA) 50%, var(--CTAHover) 50%) right;
    background-size: 200% 100%;
}

ul
{
    list-style-type: none;
}

a
{
    font-size: 1rem;
    font-family: Merriweather, serif;
    font-weight: bold;
    color: var(--link);
    transition: all 0.2s ease-out;
}

a:hover 
{
    color: var(--navLinkHover); 
    font-size: 1.2rem;
}

.next-section 
{
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
  
  .next-section.visible 
{
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) 
{
    .bottom-wave {
      height: 50px;
    }
}

/* -------------------------------- Sections -------------------------------- */

section::not(.hero)
{
    padding: 64px 20px;
}

.contactSection
{
    display: flex;
    flex-flow: column nowrap;
    margin: 0 auto;
    align-items: center;
    justify-content: space-around;
    gap: 32px;
    text-align: center;
}


/* --------------------------------- Navbar --------------------------------- */

nav, #menu, .menuItem, li:not(:first-child) .navLink
{
    width: 100%;
}

nav, #menu, .menuItem, .topRightMenu
{
    display: flex;
    align-items: center;
}

nav, #logo
{
    height: 90px;
}

nav, #menu
{
    top: 0;
    z-index: 2;

    background: var(--navBackground);
}

#menu, #closeButton
{
    position: absolute;
}

nav, .topRightMenu
{
    flex-flow: row nowrap;
}

.navLink, #menu
{
    transition: all 0.2s ease-out;
}

#menu, .menuItem
{
    flex-flow: column nowrap;
    justify-content: center;
}

nav 
{
    border-radius: 3px;

    justify-content: space-between;

    position: fixed;
    left: 50vw;
    transform: translateX(-50%);

    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}


#logo 
{
    width: 90px;
    margin-left: 16px;
}

.navLink 
{
    padding: 16px 32px;
    text-decoration: none;
}

#current
{
    color: var(--currentPage);
}

#menu 
{
    height: 100vh;

    left: 100%;
    margin: 0;
    padding-left: 0;
}

#menu:target 
{
    left: 0%;
}

.menuButton, .closeButton
{
    fill: var(--CTA); 
}

.menuButton:hover, .closeButton:hover
{
    fill: var(--CTAHover); 
}

.menuButton:active, .closeButton:active
{
    fill: var(--CTAClick);
}

#closeButton
{
    right: 10px; 
    top: 5px;
}

.menuItem
{
    height: 100%;
}

#menu:target .menuItem
{
    border-bottom: 1px solid var(--border); 
}

.menuItem:nth-child(2)
{
    margin-top: 80px;
}

li:not(:first-child) .navLink
{
    text-align: center;
    line-height: 100%;
}

li:not(:first-child):hover
{
    background: var(--menuHover);
}

li:not(:first-child):hover .navLink
{
    color: var(--navLinkHover); 
}

.topRightMenu 
{
    justify-content: center;
    gap: 24px;
    width: 80%;
}

#menuButton 
{
    height: 24px;
    width: 24px;
}


@media screen and (min-width: 440px)
{
    #menuButton 
    {
        height: 48px;
        width: 48px;
    }
}

@media screen and (min-width: 1188px)
{
    #menu 
    {
        height: 100%;

        flex-flow: row nowrap;
        position: static;
    }

    .topRightMenu 
    {
        width: 120px;
    }

    .menuButton, #closeButton 
    {
        display: none;
    }

    .menuItem
    {
        width: 320px;
    }

    .menuItem:nth-child(2)
    {
        margin-top: 0;
    }

    li:not(:first-child):hover
    {
        background: var(--menuHover);
    }

    .navLink
    {
        color: var(--link); 
    }

    .navLink:hover
    {
        color: var(--CTAHover); 
        font-size: 1.1rem;
    }

    nav a::after 
    {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #7B1040;
        transition: width 1.5s ease;
    }
      
    nav a:hover::after 
    {
        width: 100%;
    }
    
}

/* ---------------------------------- Hero ---------------------------------- */

.hero:not(.small)::before  {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 80% -50%,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 80%
    );
    opacity: 0.9;
    pointer-events: none;
    animation: heroGlow 12s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroGlow {
    0% {
        background-position: 40% 30%;
    }
    100% {
        background-position: 60% 50%;
    }
}

.hero, #heroWrapper, #headLine
{
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.hero, #heroWrapper, #headLine, .heroMessage, .hero p:last-child:not(#tagline)
{
    width: 100%;
}

.hero, #heroWrapper
{
    flex-flow: row wrap;
}

.hero
{
    position: relative;
    height: 820px;
    background-color: var(--heroBackground);
}

.hero.small
{
    height: 380px;
}

.hero.small h1
{
    margin-top: 128px;
    font-size: 2.2rem;
    max-width: 500px;
}

.hero::after
{
    content: '';
    position: absolute;
    bottom: -148px;
    left: 0;
    width: 100%;
    height: 150px; 
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 100" xmlns="http://www.w3.org/2000/svg"><defs><filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/><feOffset dy="4" dx="2" result="offsetblur"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><path filter="url(%23shadow)" fill="%239EACAD" d="M0,50 L0,0 C240,20 480,80 720,60 C960,40 1200,80 1440,50 L1440,0 L0,0 Z"/></svg>');    background-size: cover;
    z-index: 0;
}

#heroWrapper
{
    margin: 0 auto;
    max-width: 1500px;
}

#headLine
{
    margin-top: 120px;
    height: 60%;

    flex-flow: column nowrap;
    gap: 32px;
    max-width: 600px;
}

.hero h1
{
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.2px;
    line-height: 44px;
}

.hero h1, .heroMessage
{
    margin: 0 32px;
    text-align: center;
    color: var(--darkText);
}

.heroMessage, .heroMessage a
{
    font-family: Merriweather, serif;
    font-weight: bold;
    font-size: 1.2rem;
}

.hero p:last-child:not(#tagline)
{
    margin: 32px 32px;
    line-height: 30px;
}

h1 strong, .button
{
    font-family: PoppinsMedium, sans-serif;
}

.button
{
    padding: 20px 32px;
    width: 200px;

    text-decoration: none;

    color: var(--lightText); 

    background: linear-gradient(to left, var(--button) 50%, var(--buttonHover) 50%) right;
    background-size: 200% 100%;

    box-shadow: 7px 7px 10px -5px rgba(0,0,0,0.75);
    border-radius: 3px;

    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;  
}

.CTA
{
    width: 230px;
    background: linear-gradient(to left, var(--CTA) 50%, var(--CTAHover) 50%) right;
    background-size: 200% 100%;
}

.button:hover, button[type=submit]:hover
{
    padding: 22px 34px;
    margin-top: -3px;
    margin-bottom: -2px;
    background-position: left;
    transition: all 0.5s linear;
    font-size: 1.1rem;
}

.button:active
{
    background: var(--CTAClick); 
    color: var(--darkText); 
    padding: 18px 30px;
    margin-top: 18px;
    margin-bottom: 2px;
    box-shadow: none;
}

.button:active, .CTA:active path
{
    transition: none;
}

.CTA:active path
{
    fill: var(--darkText); 
}

.contact path
{
    fill: var(--lightText);
}

.phone 
{
    background-color: #C9A3B4; 
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

#smile, #logoWrapper
{
    display: none;
}

#smile g path
{
    fill: var(--CTA); 
}

#logoWrapper
{
    height: 350px;
    width: 350px;
}

#tagline
{
    font-family: PoppinsMedium, sans-serif;
    font-size: 1.3rem;
    color: var(--CTA); 
    font-style: italic;
    margin-top: 0px;
    text-align: center;

    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;

    animation: typing 2.5s steps(100, end); 
}

@keyframes typing 
{
    from { width: 0 }
    to { width: 100% }
}

@media screen and (min-width: 440px)
{
    .hero h1
    {
        font-size: 2rem;
        line-height: 52px;
        letter-spacing: 1.6px;
    }

    #headLine p
    {
        font-family: Merriweather, serif;
        font-size: 1.3rem;
        line-height: 40px;
        letter-spacing: 1.1px;
        font-weight: bold;
    }
}

@media screen and (min-width: 1188px)
{

    #logo
    {
        display: none;
    }

    .hero
    {
        height: 850px;
    }

    #logoLarge
    {
        display: block;
        height: 450px;
        width: 450px; 
    }

    #logoWrapper
    {
        display: block;
        height: 525px;
        width: 540px;
        margin-top: 68px;
        margin-left: 48px;
    }

    #headLine
    {
        height: 525px;
        justify-content: space-evenly;
    }

    #smile
    {
        display: inline;
    }
}

@media screen and (min-width: 1374px)
{
    #logoLarge
    {
        height: 500px;
        width: 500px;
    }

    #logoWrapper
    {
        display: block;
        height: 550px;
        width: 550px;
        margin-top: 96px;
        margin-left: 128px;
    }
    #headLine
    {
        margin-right: 96px;
    }
}

@media screen and (min-width: 1440px)
{
    #headLine
    {
        margin-right: 64px;
    }
}


@media screen and (min-width: 1700px)
{
    .hero
    {
        height: 950px;
    }

    #logoLarge
    {
        height: 600px;
        width: 600px;
    }

    #logoWrapper
    {
        height: 650px;
        width: 650px;
        margin-top: 96px;
        margin-left: 160px;
    }

    #headLine
    {
        height: 650px;
        justify-content: space-evenly;
    }
}

/* -------------------------------- Services -------------------------------- */


#services
{
    position: relative;
    width: 100vw;

    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 96px;
    margin-top: 32px;
}

.card
{
    width: 350px;
    height: 500px;

    display: flex;
    flex-flow: column nowrap;
    border-radius: 1rem;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 64px 20px;

    background: var(--cardBackground);
    box-shadow: 5px 6px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0E6ED;

    opacity: 0;
}

.cardText
{
    text-align: center;
}

.visible
{
    opacity: 1; 
}

.iconBackground
{
    height: 0px;
    width: 0px;
    border-radius: 100%;
    background-color: var(--iconBackground);
    flex-shrink: 0;

    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;

    transition: all 0.6s ease-out;
}

.iconBackgroundSize
{
    height: 88px;
    width: 88px;
}

.card:hover 
{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.icon
{
    fill: var(--icon);
    width: 0px;
    height: 0px;

    transition: all 0.6s ease-out;
}

.iconSize
{
    width: 64px;
    height: 64px;
}



.cardText
{
    flex-grow: 1;
}

.cardLink
{

    margin-left: auto;
 
}

@media screen and (min-width: 879px)
{
    main 
    {
        gap: 64px;
    }

    #services::before
    {
        top: -194px;
    }

    #services
    {
        width: 880px;
        margin: 64px auto 0 auto;
    }

}



@media screen and (min-width: 1856px)
{
    .card
    {
        width: 350px;
        height: 500px;
    }
}

/* ---------------------------------- About --------------------------------- */

#about
{
    padding: 64px 0px 128px 0px;
}

#about, .footerUp
{
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    gap: 32px;

    background-color: var(--sectionBackground);

    box-shadow: 2px 2px 15px black;
}

#about img
{
    width: 65%;
    max-width: 500px;
    max-height: 500px;
    box-shadow: 10px 10px 0px var(--icon);
    border-radius: 5px;
}

#about h2
{
    width: 100%;
}

.aboutLayout
{
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 32px;
    max-width: 1500px;
}

.aboutRight
{
    display: flex;
    flex-flow: column nowrap;
    padding: 0 16px;
    gap: 16px;
    width: 100%;
    max-width: 600px;
}

.aboutRight p
{
    margin: 6px auto;
    margin-left: 8px;
}

.aboutButtons
{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 64px;
    gap: 16px;
}

/* --------------------------------- Footer --------------------------------- */

    footer
    {
        margin-top: 64px;
    }

.footerUp
{
    padding: 64px 0px 100px 0px;
    text-align: center;
}

.footerLeft, .footerLow
{
    margin: 0 auto;
}

.footerLeft, .footerLow, .quickLinks
{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-evenly;
}

.footerLeft
{
    gap: 64px;
    max-width: 1500px;
}

#mapLink
{
    width: 65%;
    max-width: 600px;
    max-height: 600px;
}

.footerUp img, .footerLow, .quickLinks, .quickLinks li
{
    width: 100%;
}

.footerUp img
{
    max-width: 800px;
    max-height: 600px;
    box-shadow: 10px 10px 0px var(--icon);
    border-radius: 5px;
}

.footerLow
{
    padding: 16px 0px;
    border-top: 1px solid var(--border);
    background: var(--sectionBackground);
}

.footerLow p
{
    text-align: center;
}

address 
{
    font-family: Merriweather, serif;
    font-size: 1rem;
    line-height: 40px;
    letter-spacing: 1.1px;
    font-style: normal;
    margin: 32px 20px;
    padding: 32px 24px;

    color: var(--darkText); 

    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--cardBackground); 
}

.quickLinks
{
    padding: 0;
    gap: 16px;
    max-width: 1500px;
    margin: 64px auto 0 auto;
}

.quickLinks li, .quickLinks a
{
    text-align: center;
}

.address
{
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}

.socialMedia
{
fill: var(--icon);
width: 32px;
height: 32px;
}


@media screen and (min-width: 850px)
{
    .quickLinks li
    {
        width: fit-content;
    }
}


/* ------------------------------ Services page ----------------------------- */

.service
{
    position: relative;
    display: flex;
    flex-flow: row wrap;
    padding: 64px 20px;
    align-items: center;
    justify-content: center;

    gap: 32px;

    box-shadow: 5px 6px 5px rgba(0, 0, 0, 0.05);
}

#urgences
{
    max-width:fit-content;
    margin: 0 auto;
    box-shadow: none;
    border: none;
    padding-bottom: 0;
    padding-top: 64px;
}


.serviceWrapper
{
    max-width: 600px;

    display: flex;
    flex-flow: column nowrap;
    justify-content: center;

    gap: 16px;
}

.serviceWrapper p
{
    margin: 0;
}

.service .heroMessage
{
    margin: 0 0 32px 0;
}

.serviceImage
{
    width: 100%;
    max-width: 500px;
    height: 200px;
    object-fit: cover;
    box-shadow: 10px 10px 0px var(--icon);
    border-radius: 5px;
    margin-bottom: 32px;
}

#conception
{
    background: var(--services2Background);
}

#reparation
{
    background: var(--services1Background);
}

#ajustement
{
    background: var(--services3Background);
}

@media screen and (min-width: 500px)
{
    .serviceImage
    {
        height: 300px;
    }

    #servicesPage
    {
        margin-top: 196px;
    }
}

@media screen and (min-width: 1072px)
{
.serviceImage
    {
        height: 500px;
    }

    .serviceWrapper
    {
        margin-left: 40px;
    }
}

/* --------------------------------- Gallery -------------------------------- */

#gallery
{
    margin-top: 128px;
    display: flex;
    flex-flow: column nowrap;
    gap: 92px;
}

.gallery
{
    padding: 64px 20px;

    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 24px;


    box-shadow: 5px 6px 5px rgba(0, 0, 0, 0.05);
}

#galleryIntro p, #galleryIntro h2
{
    max-width: 800px;
    text-align: center;

}

#galleryIntro
{
    background: var(--services2Background);
    margin-top: 64px;
}

#galleryImages
{
    background: var(--services1Background);

}

.imagegallery
{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 16px;
    width: 50%;
    max-width: 700px;
}

.imagegallery img
{
    height: 300px;
    width: 300px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}


#galleryContact
{
    background: var(--services2Background);
}

@media screen and (min-width: 500px)
{
    #gallery
    {
        margin-top: 196px;
    }
}

/* ---------------------------------- About (page) --------------------------------- */

#aboutPage
{
 margin-top: 64px;

}

.aboutWrapper
{
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    padding: 64px 20px;
    align-items: flex-start;
    justify-content: center;

    gap: 40px;

    box-shadow: 5px 6px 5px rgba(0, 0, 0, 0.05);
    background: var(--services3Background);
}

.aboutWrapper p
{
    text-align: left;
    max-width: 800px;
}

.aboutWrapper h2, .aboutWrapper h3, .aboutWrapper p
{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.aboutWrapper img
{
    width: 100%;
    max-width: 500px;
    height: 200px;
    object-fit: cover;
    box-shadow: 10px 10px 0px var(--icon);
    border-radius: 5px;
    margin-bottom: 32px;
    display: block;
    margin: 0 auto;
}

.aboutWrapper p:first-of-type
{
    margin-right: auto;
}

h3
{
    font-family: Poppins, sans-serif;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.2px;
    line-height: 44px;
    color: var(--darkText); 
    margin: 0;
}


@media screen and (min-width: 500px)
{
    .aboutWrapper img
    {
        height: 300px;
    }


}

@media screen and (min-width: 1072px)
{
    .aboutWrapper img
    {
        height: 500px;
    }
}


/* ------------------------------ Contact page ------------------------------ */

#contactForm
{
    background: var(--services2Background);
    padding: 64px 20px;
}

form
{
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-flow: column nowrap;
}

input
{
    margin-bottom: 16px;
}

textarea
{
    margin-bottom: 32px;
}

input[type=submit]:hover
{
    margin-bottom: 12px;
}

