:root{
    --primary-color: #242424;
    --secondary-color: #B70000;
    --background-color:rgb(222, 222, 222);
    --text-color: #fff;
    --font-family: 'Noto Sans', sans-serif;
}
body{
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
}
#gradient-text {
    background: linear-gradient(185deg,rgba(210, 20, 27, 1) 0%, rgba(144, 12, 21, 1) 80%, rgba(125, 13, 14, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

  /* Optionnel pour meilleure compatibilité */
    background-clip: text;
}
h1{
    color: var(--secondary-color);
    font-size: 3rem;
    margin: 0;
}
h2{
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 2rem;

    /* Gradiant text */
    /* background: linear-gradient(185deg,rgba(210, 20, 27, 1) 0%, rgba(144, 12, 21, 1) 80%, rgba(125, 13, 14, 1) 100%);    -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
}
header{
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;    
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; 
}
.logo a{
    margin: 0%;
    padding: 0%;
}
header ul{
    display: flex;
    list-style: none;
    padding-right: 100px;
    flex-direction: row;
}
header ul li{
    margin: 0 15px;
}
header li a:hover{
    color: var(--secondary-color);
    cursor: pointer;
}
header a{
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}
footer{
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 10px 10px 0 0;
    box-shadow:
    rgba(0, 0, 0, 0.09) 0px -2px 1px,
    rgba(0, 0, 0, 0.09) 0px -4px 2px,
    rgba(0, 0, 0, 0.09) 0px -8px 4px,
    rgba(0, 0, 0, 0.09) 0px -16px 8px,
    rgba(0, 0, 0, 0.09) 0px -32px 16px;
    
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
    margin-top: 100px;
}
footer h3{
    color: var(--secondary-color);
}
footer ul{
    display: flex;
    list-style: none;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}
footer ul li{
    margin: 5px 0;
}
footer li a:hover{
    color: var(--secondary-color);
    cursor: pointer;
    font-family: var(--font-family);
}
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-info{
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    margin-left: 35px;
    margin-top: 25px;
}
.footer-links{
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    margin-right: 25%;
}
#p-adresse{
    padding-top: 10px;
}
footer a{
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 0px;
}
#logo{
    width: 150px;
    height: auto;
    margin-right: 10px;
    margin: 10px 15px;
}
#logo-footer{
    width: 150px;
    height: auto;
    margin-right: 10px;
}
.material-symbols-outlined {
    color: var(--secondary-color);
    margin-right: 10px;
  font-variation-settings:
  'FILL' 1,
  'wght' 500,
  'GRAD' 0,
  'opsz' 24
}
.p-info{
    margin: 2px;
    padding: 0;
}
.p-info a{
    display: flex;
    align-items: center;
    margin: 0%;
    padding: 0%;
}
.button-clic:hover{
    color: var(--secondary-color);
    cursor: pointer;
}
.links-info a{
    text-align: left;
}
#line-footer::after{
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}
#line-footer{
    padding-top: 10px;
}
#right{
    margin-bottom: 0;
    font-weight: 300;
}
.burger-menu{
    display: none;
}
#burger{
    font-size: 50px;
}
.nav-mobile{
    display: none;
}
#scroll-top{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--background-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
#scroll-top:active{
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}
#scroll-top a{
    padding: 5px 8px;
}
#icon-scroll-top{
    font-size: 30px;
    margin: 0%;
    margin-top: 2px;
}
#scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
} 
.submenu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    background-color: var(--primary-color);
    padding: 0;
    border-radius: 0 0 10px 10px;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.15); */
    z-index: 10;
    max-width: 160px;
}
.submenu li{
    margin: 0%;
}
.footer-has-submenu{
    display: flex;
}
.footer-submenu {
    display: none;
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 120px;
    padding: 5px 15px;
    background-color: #24242400;

    z-index: 10;
}
.has-submenu:hover .submenu,.footer-has-submenu:hover .footer-submenu {
    display: flex;
} 

@media (max-width: 768px) {
    .burger-menu{
    display: block;
    }
    .burger-menu:hover{
        cursor: pointer;
    }
    #burger{
        background-color: var(--primary-color);
        border-radius: 10px;
    }
    #logo.light{
        width: 120px;
        height: auto;
        transition: opacity 0.3s ease;
    }
    #close-button{
        font-size: 50px;
        margin: 25px 10px 0 0;
    }
    header.light{
        background-color: transparent;
        box-shadow: none;
        transition: opacity 0.3s ease;
    }
    nav.nav-links {
        display: none;
    }
    nav.nav-mobile{
        display: none;
    }
    nav.nav-mobile.active {
        display: flex;
        position: fixed;
        z-index: 1100;
        background-color: #242424db;
        width: 100%;
        height: fit-content;
        flex-direction: column;
        align-items: flex-end;
        border-radius: 0 0 0 20px;
    }

    .nav-links-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        padding: 0;
        list-style: none;
    }
    nav.nav-mobile ul li {
        margin: 0;
    }
    nav.nav-mobile a {
        color: var(--text-color);
        text-decoration: none;
        padding: 10px 20px;
        display: block;
        font-size: 2rem; 
    }
    footer{
        margin-top: 30px;
    }
    .footer{
        justify-content: space-around;
    }
    .footer-info{
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        margin: 0%;
        margin-left: 5px;

    }
    .p-info a{
        font-size: 1rem;
    }
   
    .footer-links{
        display: none;
    }
    #logo-footer{
        width: 100px;
        height: auto;
        /* margin-right: 10px; */
    }
    #scroll-top{
        bottom: 20px;
        right: 20px;
        transition: opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    #scroll-top.visible {
        opacity: 1;
        pointer-events: auto;
    }
    .submenu-mobile{
        display: none;
        list-style-type: none;
        padding-left: 20px;
        flex-direction: column;
        align-items: flex-end;
    }
    .submenu-mobile.active{
        display: flex;
    }
    .accordion-toggle {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-color);
        text-decoration: none;
        padding: 10px 20px;
        display: block;
        font-size: 2rem;
        font-family: var(--font-family);
    }
}
