:root{
  --bg:#2e5384;
  --text:#2c241f;
  --accent:#8f2222;
  --accent-dark:#641616;
  --muted:#6f625a;
  --card:#ffffff;
  --border:#e5d8cb;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-dark)}
.container{width:min(1120px, calc(100% - 32px));margin:0 auto}
.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  box-shadow:0 2px 12px rgba(0,0,0,.05);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:14px 0;
}
.site-branding{display:flex;align-items:center;gap:16px}
.site-logo img{max-height:68px;width:auto}
.site-title{display:block;font-size:1.5rem;font-weight:700;color:var(--text)}
.site-tagline{margin:4px 0 0;color:var(--muted);font-size:.95rem}
.main-nav ul{display:flex;gap:20px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.main-nav a{font-weight:600;color:var(--text)}
.main-nav a:hover{color:var(--accent)}
.site-main{min-height:60vh}

.hero-slider{position:relative;overflow:hidden}
.slide{
  min-height:68vh;
  background-size:cover;background-position:center;
  display:none;position:relative;
}
.slide.is-active{display:block}
.slide-overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
}
.slide-content{
  position:relative;z-index:1;
  color:#fff;padding:120px 0 80px;
}
.slide-kicker{
  text-transform:uppercase;letter-spacing:.08em;font-weight:700;
  margin:0 0 10px;color:#ffd8c2
}
.slide h1{font-size:clamp(2.2rem, 5vw, 4rem);line-height:1.1;margin:0 0 16px;max-width:800px}
.slide p{font-size:1.15rem;max-width:650px;margin:0}
.slider-dots{
  position:absolute;left:0;right:0;bottom:20px;display:flex;gap:10px;z-index:2
}
.slider-dot{
  width:14px;height:14px;border-radius:50%;border:none;cursor:pointer;
  background:rgba(255,255,255,.5)
}
.slider-dot.is-active{background:#fff}

.section{padding:64px 0}
.section-alt{background:#efe4d8}
.two-cols,.pricing-grid,.contact-grid{display:grid;gap:24px}
.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}
.contact-grid{grid-template-columns:1fr}
.content-narrow{width:min(860px,)}
.card,.event-card,.page-content{
  background:var(--card);border:1px solid var(--border);border-radius:20px;padding:28px;
  box-shadow:var(--shadow)
}
.page-content{padding:32px}
.button{
  display:inline-block;background:var(--accent);color:#fff;padding:12px 18px;
  border-radius:999px;font-weight:700;transition:.2s ease
}
.button:hover{background:var(--accent-dark);color:#fff}
.button-secondary{background:#efe4d8;color:var(--text)}
.button-secondary:hover{background:#e0d0bf;color:var(--text)}
.museotrain-list{margin:0;padding-left:20px}
.museotrain-list li{margin:0 0 10px}
.editor-content > *:first-child{margin-top:0}
.editor-content > *:last-child{margin-bottom:0}

.events-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:32px
}
.event-card{padding:0;overflow:hidden}
.event-thumb img{width:100%;height:240px;object-fit:cover}
.event-body{padding:22px}
.event-body h2{font-size:1.3rem;margin:0 0 12px}
.event-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.single-event-image{margin:20px 0;border-radius:16px;overflow:hidden}

.site-footer{background:#241c18;color:#fff;padding:38px 0 24px}
.site-footer a{color:#fff}
.footer-icons{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px
}
.footer-icon-item{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  border-radius:18px;padding:16px;text-align:center
}
.footer-icon-item img{
  margin:0 auto 12px;max-height:76px;width:auto;object-fit:contain
}
.footer-icon-item span{display:block;font-size:.95rem}
.footer-bottom{
  display:flex;justify-content:space-between;gap:24px;align-items:flex-start;
  border-top:1px solid rgba(255,255,255,.1);padding-top:24px
}
.footer-nav ul{list-style:none;padding:0;margin:0;display:flex;gap:18px;flex-wrap:wrap}
h1,h2,h3{line-height:1.2}

@media (max-width: 900px){
  .two-cols,.pricing-grid,.events-grid,.footer-icons{grid-template-columns:1fr 1fr}
  .header-inner{flex-direction:column;align-items:flex-start}
}
@media (max-width: 640px){
  .two-cols,.pricing-grid,.events-grid,.footer-icons{grid-template-columns:1fr}
  .slide-content{padding:90px 0 80px}
  .footer-bottom{flex-direction:column}
  .main-nav ul{gap:12px}
}


/* === CUSTOM STYLE AJOUTÉ === */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

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-navigation a {
    position: relative;
    transition: 0.3s;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: 0.3s;
}

.main-navigation a:hover::after {
    width: 70%;
}


/* === Événements améliorés === */
.event-card{
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
}
.event-thumb{display:block}
.event-thumb img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}
.event-body{
  padding:22px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.event-meta-top{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.event-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#f3e5dc;
  color:#7b2f29;
  font-size:.92rem;
  font-weight:700;
}
.event-location{
  margin:0 0 12px;
  color:var(--muted);
  font-weight:700;
}
.event-excerpt{
  flex:1;
}
.event-excerpt p{
  margin:0;
}
.event-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.single-event-meta{
  display:grid;
  gap:10px;
  margin:18px 0 22px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fbf7f2;
}
.single-event-meta-item{
  color:var(--text);
}
.single-event-image img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

@media (max-width: 640px){
  .event-thumb img{
    height:200px;
  }

  .event-body{
    padding:16px;
  }

  .event-body h2{
    font-size:1.15rem;
  }

  .event-actions .button,
  .event-actions .button-secondary{
    width:100%;
    text-align:center;
  }
}


.event-ticketing-box {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #faf7f0;
}

.event-ticketing-box h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.event-ticketing-box p:last-child {
  margin-bottom: 0;
}


/* === Footer compact avec logo + réseaux sociaux === */
.site-footer{
  padding:22px 0 14px;
}
.footer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:16px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.footer-logo{
  max-height:64px;
  width:auto;
  object-fit:contain;
}
.footer-brand-text{
  font-size:1.1rem;
  font-weight:700;
}
.footer-brand-tagline{
  font-size:.92rem;
  opacity:.88;
}
.footer-socials{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:96px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  font-weight:700;
  text-decoration:none;
}
.footer-icons-compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.footer-icon-item{
  padding:12px;
}
.footer-icon-item img{
  margin:0 auto 8px;
  max-height:44px;
}
.footer-icon-item span{
  font-size:.88rem;
  line-height:1.35;
}
.footer-bottom-compact{
  gap:18px;
  padding-top:16px;
  align-items:center;
}
.footer-copyright{
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:12px;
  text-align:center;
  font-size:.92rem;
}
@media (max-width: 900px){
  .footer-top{
    flex-direction:column;
    align-items:flex-start;
  }
  .footer-icons-compact{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 640px){
  .site-footer{
    padding:18px 0 12px;
  }
  .footer-brand{
    align-items:flex-start;
  }
  .footer-logo{
    max-height:52px;
  }
  .footer-socials{
    width:100%;
    justify-content:flex-start;
  }
  .footer-social-link{
    min-width:auto;
  }
  .footer-icons-compact{
    grid-template-columns:1fr;
  }
}


/* === Footer icônes seules, sans texte, sans arrondis === */
.footer-icon-item,
.footer-social-link,
.site-footer .button,
.site-footer button,
.site-footer input[type="submit"]{
  border-radius:0 !important;
}

.footer-icon-item{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:10px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:72px;
  transition:transform .2s ease, opacity .2s ease;
}

.footer-icon-item span{
  display:none;
}

.footer-icon-item img{
  margin:0;
  max-height:42px;
  width:auto;
  object-fit:contain;
  transition:transform .2s ease, opacity .2s ease;
}

.footer-icons,
.footer-icons-compact{
  align-items:center;
}

.footer-icon-item:hover img,
.footer-icon-item:focus-within img{
  transform:scale(1.08);
  opacity:.92;
}


/* === Header moderne + menu mobile === */
.site-header.site-header-modern{
  background:linear-gradient(180deg, rgba(36,28,24,.88), rgba(36,28,24,.72));
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
  transition:background .25s ease, box-shadow .25s ease, padding .25s ease, transform .25s ease;
}
.site-header.site-header-modern.is-scrolled{
  background:rgba(36,28,24,.96);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.site-header.site-header-modern .header-inner{
  padding:16px 0;
  transition:padding .25s ease;
}
.site-header.site-header-modern.is-scrolled .header-inner{
  padding:10px 0;
}
.site-header.site-header-modern .site-title,
.site-header.site-header-modern .site-tagline,
.site-header.site-header-modern .main-nav a,
.site-header.site-header-modern .menu-toggle{
  color:#fff;
}
.site-header.site-header-modern .site-tagline{
  color:rgba(255,255,255,.78);
}
.site-header.site-header-modern .main-nav ul{
  align-items:center;
}
.site-header.site-header-modern .main-nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 0;
  transition:color .25s ease, opacity .25s ease, transform .25s ease, background .25s ease;
}
.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{
  padding:10px 18px;
  border-radius:999px;
  background:#ffffff;
  color:#241c18;
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}
.site-header.site-header-modern .main-nav .menu-item-button > a:hover,
.site-header.site-header-modern .main-nav .button-menu-item > a:hover,
.site-header.site-header-modern .main-nav .menu-item.cta > a:hover{
  color:#241c18;
  transform:translateY(-1px);
  background:#ffe8dc;
}
.site-header.site-header-modern .main-nav li:not(.menu-item-button):not(.button-menu-item):not(.cta) > a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  width:100%;
  height:2px;
  background:#ffd8c2;
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .25s ease;
}
.site-header.site-header-modern .main-nav li:not(.menu-item-button):not(.button-menu-item):not(.cta) > a:hover::after,
.site-header.site-header-modern .main-nav .current-menu-item:not(.menu-item-button):not(.button-menu-item):not(.cta) > a::after,
.site-header.site-header-modern .main-nav .current_page_item:not(.menu-item-button):not(.button-menu-item):not(.cta) > a::after{
  transform:scaleX(1);
}
.menu-toggle{
  display:none;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  border-radius:14px;
  padding:0;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  margin:4px auto;
  background:currentColor;
  border-radius:999px;
  transition:transform .25s ease, opacity .25s ease;
}
.menu-toggle .screen-reader-text{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}
@media (max-width: 900px){
  .site-header.site-header-modern .header-inner{
    flex-direction:row;
    align-items:center;
  }
  .menu-toggle{
    display:inline-flex;
    flex-direction:column;
  }
  .main-nav{
    display:none;
    width:100%;
    margin-top:10px;
    padding:14px 16px;
    border-radius:18px;
    background:rgba(25,18,15,.96);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 14px 30px rgba(0,0,0,.18);
  }
  .main-nav.is-open{
    display:block;
  }
  .site-header.site-header-modern .header-inner{
    flex-wrap:wrap;
    justify-content:space-between;
    gap:14px;
  }
  .site-header.site-header-modern .main-nav ul,
  .site-header.site-header-modern .footer-nav ul{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  .site-header.site-header-modern .main-nav li,
  .site-header.site-header-modern .main-nav a{
    width:100%;
  }
  .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{
    justify-content:center;
  }
}

/* ===== Header accueil aligné sur les autres pages ===== */
body.home .site-header,
body.front-page .site-header,
body.home .site-header.scrolled,
body.front-page .site-header.scrolled{
    background: #ca544d !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.16) !important;
    border-bottom: none !important;
}

body.home .site-header .main-nav a,
body.front-page .site-header .main-nav a,
body.home .site-header .site-title,
body.front-page .site-header .site-title,
body.home .site-header .site-tagline,
body.front-page .site-header .site-tagline,
body.home .site-header .custom-logo-link,
body.front-page .site-header .custom-logo-link,
body.home .site-header .menu-toggle,
body.front-page .site-header .menu-toggle{
    color:#ffffff !important;
}

body.home .site-header .main-nav a:hover,
body.front-page .site-header .main-nav a:hover{
    color:#ffd8c2 !important;
}

/* === 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,
.site-header.scrolled,
.home .site-header,
.front-page .site-header {
    background: #ca544d !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16) !important;
    border-bottom: none !important;
}

.site-header a,
.site-header .main-nav a,
.site-header .site-title,
.site-header .site-tagline,
.site-header .menu-toggle {
    color: #ffffff !important;
}

.site-header a:hover,
.site-header .main-nav a:hover {
    color: #ffd8c2 !important;
}


/* Nettoyage du menu : masque les éléments vides */
.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;
}
