* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("../Images/Curseurs/Cursor.png"), auto;
}

*:focus {
    outline: none;
}

@font-face {
    font-family: 'Lifecraft';
    src: url(../Fichiers/LifeCraft_Font.ttf);
}

selector {
    font-family: 'Lifecraft';
}

html, body {
    height: 100%;
    margin: 0;
}

button, button *, a, a *, input, input *, textarea, textarea *, .catalogue-card, .catalogue-card * {
    cursor: url("../Images/Curseurs/Pointer.png"), auto !important;
}

body {
    display: flex;
    flex-direction: column;
    background-image: url('../Images/Fond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative; 
}

.header-top{
    display:flex;
    width:100%;
    justify-content:center;
    align-items:center;
    padding: 0 1rem;
    position: relative;
}

.header-controls{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    right: 1rem;
    bottom: 0rem;
}

.logo {
    margin-top: 0.5rem;
}

.logo img {
    display: block;
    margin: 0 auto;
    height: 250px;
}

.flag-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.flag-btn img {
    height: 48px;
    display: block;
    border: 1px solid #fff;
    box-sizing: border-box;
}

.flag-btn:hover img {
    transform: scale(1.1);
}

.bg-toggle{
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.bg-toggle img{
    height: 48px;
    display: block;
    transition: transform 0.3s; 
    border: 1px solid #fff;
    box-sizing: border-box;
}

.bg-toggle:hover img, .bg-toggle:focus img{
    transform: scale(1.1);
}

.menu{
    width: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    padding: 0.5rem 0.5rem;
    overflow-x: visible;
}

.menu ul{
    list-style: none;
    margin: 0;
    padding: 0 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    width: auto;
    flex-wrap: nowrap;
}

.menu a{
    color: #fff;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    font-weight: normal; 
    font-family: 'Lifecraft';
    font-size: clamp(1.05rem, 1.9vw, 1.6rem);
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.menu a:hover{
    font-weight: bold;
}

.menu .menu-extensions {
    position: relative;
}

.menu .menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Lifecraft';
    font-size: clamp(1.05rem, 1.9vw, 1.6rem);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

#extensions-btn:hover {
    font-weight: bold;
}

.menu .dropdown {
    position: absolute;
    top: 100%;
    margin-top: 8px; 
    left: 0;
    right: auto;
    transform: translateY(0);
    background-color: rgba(0,0,0,0.55);
    border: none; 
    min-width: 200px;
    list-style: none;
    padding: 0.25rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 200ms cubic-bezier(.2,.9,.3,1);
}

.menu .dropdown li a {
    display: block;
    color: #fff;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    font-family: 'Lifecraft';
    font-size: 1.25em;
}

.menu .dropdown li a:hover {
    background: transparent;
    font-weight: bold;
}

.menu .dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.subtitle-bar {
    display: block;
    width: 25%;
    height: 2px;
    background-color: #fff;
    margin: 1rem auto;
    padding: 0;
    border: 1px solid white;
}

footer {
    margin-top: auto;
}

.footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    padding: 0.8rem 0;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

.footer a, .footer a:visited {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.footer a:hover, .footer a:focus {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

h1 {
    text-align: center;
    color: #fff;
    font-family: Arial;
    font-size: 2.5rem;
    margin: 1rem 0;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#contact-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid #fff;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transform: scale(0);
    transition: transform 400ms cubic-bezier(.2,.9,.3,1);
    z-index: 9999;
}

#contact-btn img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
}

#contact-btn img {
    transition: transform 0.3s;
    border: 1px solid #fff;
    box-sizing: border-box;
}

#contact-btn:hover img, #contact-btn:focus img {
    transform: scale(1.1);
}

#contact {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 375px;
    max-width: calc(100% - 48px);
    background-color: rgba(0,0,0,0.55);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 16px;
    transform-origin: bottom right;
    transform: scale(0.9);
    opacity: 0;
    transition: opacity 300ms ease,transform 300ms ease;
    z-index: 9998;
    color:#fff;
}

#contact.visible {
    transform: scale(1);
    opacity: 1
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

#contact label {
    display: block;
    font-weight: 600;
    color:#fff;
    font-size: 0.95rem;
    font-weight: 400 !important;
    margin-bottom: 6px;
}

#contact input[type="text"], #contact input[type="email"], #contact textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

#contact textarea {
    min-height: 80px;
    resize: vertical;
}

#contact .submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

#contact .submit-row button {
    background: transparent;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Lifecraft', sans-serif;
    font-size: 1rem;
}

#contact h3 {
    font-size: 1.35rem;
}

#contact .submit-row button {
    font-size: 1.1rem;
    padding: 10px 14px;
}

#contact .submit-row button:hover {
    background: transparent;
    color: #fff;
    font-weight: 700;
}

#contact h3 {
    text-align: center !important;
    margin: 0 0 8px !important;
    font-family: 'Lifecraft';
    font-weight: 400;
}   

#contact label {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
    }

.notification {
    opacity: 1;
    transition: opacity 1.0s ease;
    color:white;
}

.notification.fade-out {
    opacity: 0;
}

@media (max-width: 600px) {
    .menu {
        -webkit-overflow-scrolling: touch;
    }
    .menu ul {
        padding: 0 0.5rem;
    } 

    .menu a {
        min-width: 0;
        padding: 0.4rem 0.6rem;
        white-space: nowrap; 
        text-align: center;
        flex: 0 0 auto;
        font-size: clamp(0.65rem, 2.0vw, 1.05rem); 
    }

    .menu .dropdown {
        min-width: 50px;
        margin-top: 6px;
    }

    .menu .dropdown li a {
        font-size: clamp(0.65rem, 2.0vw, 1.05rem); 
    }

    .menu .menu-btn {
        font-size: clamp(0.65rem, 2.0vw, 1.05rem); 
        line-height: 1;                             
        vertical-align: middle;                     
        padding: 0.4rem 0.6rem;                    
    }

    .logo img {
        height: 120px;
        width: auto;
    }

    body:not(.index) .bg-toggle img {
        height: 36px;
        width: auto;
    }

    .header-controls {
        display: flex;
        flex-direction: column;
        align-items: flex-end;  
        gap: 0.25rem;
    }

    .flag-btn {
        margin-right: 4px;
    }

    .flag-btn img {
        height: 36px;
        width: auto;
    }

    .bg-toggle img {
        height: 36px;
        width: auto;
    }

    .footer {
        font-size: 0.85rem;
    }

    .footer a, .footer a:visited {
        font-size: 0.85rem;
    }

    #contact {
        width: 90%;
        right: 5%;
        bottom: 100px
    }

    #contact-btn {
        position: fixed;
        right: 36px;
        bottom: 36px;
        height: 36px;
        width: auto;
    }

@media (max-width: 500px) {
    .menu .dropdown {
        min-width: 0px;
    }
}
}