@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

/* --- CONFIGURATION GLOBALE --- */
body { margin: 0; padding: 0; }

/* --- HEADER (COULEUR DU LOGO #2E2E2E) --- */
.mf-header-bg {
    background-color: #2E2E2E !important;
    padding: 25px 0;
    text-align: center;
    width: 100%;
}
.mf-logo {
    max-height: 100px;
    width: auto;
}

/* --- MENU STICKY --- */
.mf-navigation {
    background-color: #1a1a1a !important;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 3px solid #C60C30; /* Ligne Rouge Massey */
}
.mf-menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mf-menu-list li a {
    color: #ffffff !important;
    text-decoration: none;
    padding: 18px 25px;
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}
.mf-menu-list li a:hover {
    background-color: #C60C30;
}

/* --- BOUTON HAUT (FIXE SUR L'ÉCRAN) --- */
#mf-back-to-top {
    display: none; /* Géré par le JS */
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #C60C30 !important;
    color: #ffffff !important;
    z-index: 1000000 !important; /* Priorité maximale */
    cursor: pointer;
    border: 2px solid #fff;
    
    /* Centrage du texte */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* --- FOOTER --- */
.mf-footer {
    background-color: #1a1a1a !important;
    padding: 40px 0;
    text-align: center;
    color: #ffffff !important;
}
.mf-slogan { font-size: 18px; font-weight: bold; margin-bottom: 5px; }
.mf-copy { color: #888; font-size: 11px; }

/* --- SUPPRESSION SIGNATURE --- */
.OxatisSignature, #OxatisSignature { display: none !important; visibility: hidden !important; }

/* --- CONFIGURATION TYPO GLOBALE --- */
body, html, .mf-navigation, .mf-footer, #mf-back-to-top {
    font-family: 'Montserrat', sans-serif !important;
}

/* --- AFFINAGE DU MENU --- */
.mf-menu-list li a {
    font-size: 12px !important;
    letter-spacing: 1.5px !important; /* Espacement moderne entre les lettres */
    font-weight: 700 !important;
    transition: all 0.3s ease;
    padding: 22px 30px !important;
}

/* --- LE NOUVEAU BOUTON HAUT (MODERNE & ROND) --- */
/* On passe du carré brut à un rond élégant et discret mais visible */
#mf-back-to-top {
    display: none; 
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 55px !important;
    height: 55px !important;
    background-color: #C60C30 !important; /* Rouge Massey */
    color: #ffffff !important;
    z-index: 1000000 !important;
    cursor: pointer;
    border: none !important; /* On enlève la bordure blanche pour plus de légèreté */
    border-radius: 50% !important; /* REND LE BOUTON ROND */
    
    /* Centrage parfait */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    box-shadow: 0 8px 25px rgba(198, 12, 48, 0.4) !important; /* Ombre teintée rouge */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

#mf-back-to-top span {
    font-size: 18px !important;
    margin-bottom: -2px;
}

#mf-back-to-top small {
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 0.5px;
}

#mf-back-to-top:hover {
    background-color: #1a1a1a !important;
    transform: scale(1.1) translateY(-5px) !important; /* Il grossit un peu au survol */
    box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
}

/* --- MODERNISATION DES TITRES DU SITE --- */
h1, h2, .ox-h1, .ox-h2, .mf-slogan {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}