/*
Theme Name: Museotrain
Theme URI: https://museotrain.fr/
Author: Christophe Leprêtre
Author URI: https://www.museotrain.fr
Description: Bienvenue sur Museotrain.fr
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: museotrain.fr
*/


/* === CUSTOM STYLE AJOUTÉ === */

body {
    font-family: 'Lato', sans-serif;
}

/* Header & Footer */
header, .site-header,
footer, .site-footer {
    background-color: #ca544d !important;
    color: #ffffff;
}

/* Liens */
header a, footer a {
    color: #ffffff;
}

/* Boutons */
button, .button, input[type="submit"] {
    background-color: #ca544d;
    color: #fff;
    border-radius: 6px;
    transition: 0.3s;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background-color: #a9443e;
    transform: translateY(-2px);
}

/* Menu animation */
.main-nav a {
    position: relative;
    transition: 0.3s;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: 0.3s;
}

.main-nav a:hover::after {
    width: 70%;
}

/* ===== Premium home header only ===== */
body.home .site-header,
body.front-page .site-header{
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

body.home .site-header .main-nav a,
body.front-page .site-header .main-nav a,
body.home .site-header .site-title a,
body.front-page .site-header .site-title a,
body.home .site-header .custom-logo-link,
body.front-page .site-header .custom-logo-link{
    color:#ffffff !important;
}

body.home .site-header.scrolled,
body.front-page .site-header.scrolled{
    background: rgba(36,28,24,.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    border-bottom-color: rgba(255,255,255,.08);
}

body.home .site-header .main-nav a:hover,
body.front-page .site-header .main-nav a:hover{
    color:#ffd8c2 !important;
}

@media (max-width: 900px){
    body.home .site-header,
    body.front-page .site-header{
        background: rgba(36,28,24,.88) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* === Footer ultra propre : moderne, centré, compact === */
.site-footer{
    background:#ca544d !important;
    color:#ffffff !important;
    padding:16px 0 !important;
    min-height:auto !important;
}

.site-footer .container,
.site-footer .footer-inner,
.site-footer .wrap,
.site-footer .inner{
    max-width:1100px;
    margin:0 auto !important;
    padding:0 20px !important;
}

.site-footer .footer-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-align:center;
}

.site-footer p,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer ul,
.site-footer ol{
    margin:0 !important;
}

.site-footer ul{
    list-style:none;
    padding:0 !important;
}

.site-footer li{
    display:inline-block;
    margin:0 10px 0 0;
}

.site-footer li:last-child{
    margin-right:0;
}

.site-footer a{
    color:#ffffff !important;
    text-decoration:none;
}

.site-footer a:hover{
    opacity:.85;
}

.site-footer .menu,
.site-footer nav,
.site-footer .footer-menu{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin:0 !important;
    padding:0 !important;
}

.site-footer .copyright,
.site-footer .site-info,
.site-footer .footer-text{
    font-size:14px;
    line-height:1.5;
    opacity:.95;
    text-align:center;
    margin:0 !important;
}

@media (max-width: 768px){
    .site-footer{
        padding:14px 0 !important;
    }
    .site-footer .footer-inner,
    .site-footer .menu,
    .site-footer nav,
    .site-footer .footer-menu{
        gap:8px;
    }
    .site-footer li{
        margin:0 6px 0 0;
    }
}


/* === HEADER ROUGE FIXE SANS TRANSPARENCE === */
.site-header {
    background: #ca544d !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.home .site-header,
.front-page .site-header,
.site-header.scrolled {
    background: #ca544d !important;
}

.site-header a,
.site-header .main-nav a {
    color: #ffffff !important;
}

.site-header a:hover {
    color: #ffd8c2 !important;
}

/* === Nettoyage menu principal === */
.site-header.site-header-modern .main-nav li:empty,
.site-header.site-header-modern .main-nav a:empty {
    display: none !important;
}

.site-header.site-header-modern .main-nav li > a[href=""],
.site-header.site-header-modern .main-nav li > a:not([href]) {
    display: none !important;
}

/* Le style bouton ne s'applique que si un item reçoit une classe dédiée */
.site-header.site-header-modern .main-nav .menu-item-button > a,
.site-header.site-header-modern .main-nav .button-menu-item > a,
.site-header.site-header-modern .main-nav .menu-item.cta > a {
    background: #ffffff;
    color: #241c18 !important;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
