/* ============================================================
   TRAIN DECCAN ODYSSEY — HEADER (mega menu) + FOOTER
   Prefixe classes : tdo-
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --tdo-vert: #21610b;
  --tdo-vert-fonce: #123d05;
  --tdo-or: #bda44d;
  --tdo-or-clair: #d8c184;
  --tdo-or-pale: #ecdfb8;
  --tdo-beige: #FBF7EE;
  --tdo-beige-fonce: #E8DEC5;
  --tdo-blanc: #FFFDF8;
  --tdo-gris: #4a4030;
}

/* Masquer l'ancien header/topbar Elementor pour eviter tout conflit visuel */
.elementor-location-header,
[data-elementor-type="header"],
.site-header,
#masthead,
#header,
.top-bar,
#HeadTrain {
  display: none !important;
}

/* Masquer l'ancien footer natif du theme (Hello Elementor) */
.elementor-location-footer,
[data-elementor-type="footer"],
#site-footer,
.site-footer,
.dynamic-footer,
.footer-has-copyright {
  display: none !important;
}

/* Masquer le bandeau titre de page natif (cause de la barre blanche sous le menu) */
.page-header,
.entry-header,
#content > .page-header,
.site-main > .page-header {
  display: none !important;
}

/* Decaler tout le contenu de page sous notre header fixe (topbar + nav) */
body {
  padding-top: 116px !important;
}
@media (max-width: 1080px) {
  body { padding-top: 100px !important; }
}
@media (max-width: 640px) {
  body { padding-top: 92px !important; }
}

/* ============================================================
   HEADER WRAPPER (topbar + nav, un seul bloc fixe)
   ============================================================ */
.tdo-header-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  font-family: 'Jost', sans-serif !important;
}
.tdo-header-wrap * { box-sizing: border-box; }

/* TOP BAR — coordonnees agence */
.tdo-topbar {
  background: var(--tdo-vert) !important;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.tdo-topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.tdo-topbar-left, .tdo-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.tdo-topbar-item {
  font-size: 11px;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-weight: 300;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tdo-topbar-item:hover { color: var(--tdo-or-clair) !important; }
.tdo-topbar-icon { color: var(--tdo-or-clair); font-size: 11px; }
@media (max-width: 900px) {
  .tdo-topbar-left { display: none; }
  .tdo-topbar-inner { justify-content: center; }
}
@media (max-width: 480px) {
  .tdo-topbar { display: none; }
  body { padding-top: 68px !important; }
}

/* ============================================================
   HEADER (nav principale)
   ============================================================ */
.tdo-header {
  background: var(--tdo-vert-fonce) !important;
  border-bottom: 3px solid var(--tdo-or) !important;
}
.tdo-header * { box-sizing: border-box; }
.tdo-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  gap: 24px;
}
.tdo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  white-space: nowrap;
}
.tdo-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.tdo-logo-text {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #fff !important;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.tdo-logo-text em { font-style: italic; color: var(--tdo-or-clair); display: block; font-size: 13px; }

.tdo-nav { display: flex; align-items: center; gap: 6px; }
.tdo-nav-item { position: relative; }
.tdo-nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}
.tdo-nav-link:hover, .tdo-nav-link.tdo-active { color: var(--tdo-or-clair) !important; }

.tdo-header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.tdo-header-tel {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  color: var(--tdo-or-clair) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.tdo-header-cta {
  background: var(--tdo-or) !important;
  color: var(--tdo-vert-fonce) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 11px 20px !important;
  white-space: nowrap;
}
.tdo-header-cta:hover { background: var(--tdo-or-clair) !important; }

/* MEGA MENU PANEL */
.tdo-megapanel {
  position: fixed;
  top: 116px;
  left: 0;
  right: 0;
  background: var(--tdo-blanc);
  border-bottom: 3px solid var(--tdo-or);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 32px;
  display: none;
  z-index: 999998;
}
.tdo-megapanel.tdo-open { display: block; }
.tdo-megapanel-inner { max-width: 1300px; margin: 0 auto; }
.tdo-megapanel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tdo-or);
  margin-bottom: 18px;
  display: block;
}
.tdo-megagrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.tdo-megacard {
  text-decoration: none !important;
  display: block;
  border: 1px solid var(--tdo-beige-fonce);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.tdo-megacard:hover { box-shadow: 0 8px 20px rgba(18,61,5,0.15); }
.tdo-megacard img { width: 100%; height: 90px; object-fit: cover; display: block; }
.tdo-megacard-body { padding: 10px 12px; }
.tdo-megacard-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--tdo-vert) !important;
  line-height: 1.2;
  margin-bottom: 3px;
}
.tdo-megacard-meta { font-size: 9px; color: var(--tdo-gris); text-transform: uppercase; letter-spacing: 0.5px; }

/* MOBILE */
.tdo-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.tdo-burger span { width: 24px; height: 2px; background: #fff; display: block; }
.tdo-mobile-panel {
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tdo-vert-fonce);
  z-index: 999997;
  overflow-y: auto;
  padding: 24px;
  display: none;
}
.tdo-mobile-panel.tdo-open { display: block; }
.tdo-mobile-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tdo-mobile-sub { padding-left: 16px; }
.tdo-mobile-sub .tdo-mobile-link { font-size: 11px; color: rgba(255,255,255,0.7) !important; border-bottom: none; padding: 8px 0; }

@media (max-width: 1080px) {
  .tdo-nav { display: none; }
  .tdo-header-tel { display: none; }
  .tdo-burger { display: flex; }
  .tdo-megagrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .tdo-header-inner { padding: 12px 18px; }
  .tdo-logo img { height: 34px; }
  .tdo-logo-text { font-size: 15px !important; }
  .tdo-header-cta { padding: 9px 14px !important; font-size: 9px !important; }
}
@media (max-width: 480px) {
  .tdo-mobile-panel { top: 68px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.tdo-footer {
  background: var(--tdo-vert-fonce);
  font-family: 'Jost', sans-serif;
  padding: 56px 32px 0;
}
.tdo-footer * { box-sizing: border-box; }
.tdo-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tdo-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}
.tdo-footer-logo em { font-style: italic; color: var(--tdo-or-clair); }
.tdo-footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 300;
}
.tdo-footer-arnaud {
  background: var(--tdo-or);
  padding: 14px 16px;
  max-width: 240px;
}
.tdo-footer-arnaud-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--tdo-vert-fonce);
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: 4px;
}
.tdo-footer-arnaud-sub {
  font-size: 10px;
  color: var(--tdo-vert-fonce);
  font-weight: 500;
  line-height: 1.5;
}
.tdo-footer-col-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--tdo-or-clair);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tdo-footer-links { list-style: none; margin: 0; padding: 0; }
.tdo-footer-links li { margin-bottom: 10px; }
.tdo-footer-links a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 300;
}
.tdo-footer-links a:hover { color: var(--tdo-or-clair) !important; }
.tdo-footer-legal-text {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-top: 14px;
  font-weight: 300;
}
.tdo-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tdo-footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}
.tdo-footer-reseau {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}
.tdo-footer-reseau a {
  color: var(--tdo-or-clair) !important;
  text-decoration: underline !important;
}
@media (max-width: 900px) {
  .tdo-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tdo-footer-inner { grid-template-columns: 1fr; }
  .tdo-footer-bottom { flex-direction: column; align-items: flex-start; }
}
