/* =========================================================
   Mont-Chalco — design system
   Reproduction fidèle de la palette et de la mise en page
   du site Joomla original (rouge / bleu / navy).
   ========================================================= */
:root {
  --color-red: #b11515;
  --color-red-dark: #8f1010;
  --color-blue: #0ca4e5;
  --color-navy: #0c132a;
  --color-navy-dark: #0c1228;
  --color-topbar: #333333;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #0c132a;
  --color-text-muted: #949494;
  --color-border: #ebebeb;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --shadow: 0 10px 30px rgba(12, 19, 42, 0.12);
  --shadow-lg: 0 20px 50px rgba(12, 19, 42, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-blue); }
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 600; line-height: 1.2;
  margin: 0 0 .5em; color: var(--color-navy);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; color: var(--color-red); font-family: var(--font-heading);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; font-weight: 600; font-family: var(--font-heading); font-size: .88rem;
  letter-spacing: .03em; border-radius: 4px; border: 2px solid transparent; cursor: pointer;
  transition: all .18s ease; text-transform: uppercase;
}
.btn-red { background: var(--color-red); color: #fff; }
.btn-red:hover { background: var(--color-blue); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-outline-dark { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline-dark:hover { background: var(--color-navy); color: #fff; }

/* Top bar */
.top-bar { background: var(--color-topbar); color: #aaa; font-size: .8rem; }
.top-bar .container { display: flex; justify-content: flex-end; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.top-bar a { color: #aaa; }
.top-bar a:hover { color: #fff; }

/* Header — transparent over hero, solid white on scroll */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent; transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 24px 0;
}
.site-header.scrolled { background: #fff; box-shadow: var(--shadow); padding: 10px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 52px; width: auto; transition: height .25s ease; }
.site-header.scrolled .brand img { height: 42px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > li { position: relative; list-style: none; }
.main-nav > li > a {
  font-family: var(--font-heading); font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; padding: 8px 0; display: inline-block;
}
.site-header.scrolled .main-nav > li > a { color: var(--color-navy); }
.main-nav > li > a:hover, .main-nav > li.active > a { color: var(--color-blue); }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; box-shadow: var(--shadow);
  border-radius: 4px; padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.main-nav > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li { list-style: none; }
.main-nav .sub-menu a {
  display: block; padding: 9px 20px; font-family: var(--font-heading); font-size: .8rem;
  font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--color-navy);
}
.main-nav .sub-menu a:hover { color: var(--color-blue); background: var(--color-bg-alt); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 11px 22px; font-size: .8rem; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 26px; height: 26px; color: #fff; }
.site-header.scrolled .menu-toggle svg { color: var(--color-navy); }

.mobile-drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(12,19,42,.6); opacity: 0; transition: opacity .25s ease; }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); background: var(--color-navy-dark);
  padding: 28px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
}
body.menu-open .mobile-drawer { visibility: visible; }
body.menu-open .mobile-drawer .backdrop { opacity: 1; }
body.menu-open .mobile-drawer .panel { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.mobile-drawer nav a {
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem; text-transform: uppercase;
  letter-spacing: .03em; color: #fff; padding: 10px 0;
}
.mobile-drawer nav .sub-nav { display: flex; flex-direction: column; padding-left: 16px; }
.mobile-drawer nav .sub-nav a { font-size: .82rem; color: rgba(255,255,255,.7); padding: 7px 0; }
.close-drawer { align-self: flex-end; background: none; border: none; cursor: pointer; }
.close-drawer svg { width: 24px; height: 24px; color: #fff; }

/* Hero slider */
.hero { position: relative; height: min(92vh, 760px); min-height: 560px; overflow: hidden; background: var(--color-navy); }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero .slide.active { opacity: 1; z-index: 1; }
.hero .slide img.bg { width: 100%; height: 100%; object-fit: cover; }
.hero .slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,19,42,.75) 0%, rgba(12,19,42,.25) 50%, rgba(12,19,42,.55) 100%); }
.hero .parallax-tree { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; pointer-events: none; display: block; }
.hero .parallax-tree.back { z-index: 2; animation: treeRiseBack 1.6s cubic-bezier(.22,1,.36,1) .1s both; }
.hero .parallax-tree.mid { z-index: 3; animation: treeRiseMid 1.6s cubic-bezier(.22,1,.36,1) .45s both; }
.hero .parallax-tree.front { z-index: 4; animation: treeRiseFront 1.6s cubic-bezier(.22,1,.36,1) .8s both; }
@keyframes treeRiseBack { from { transform: translateY(110px); opacity: 0; } to { transform: translateY(0); opacity: .55; } }
@keyframes treeRiseMid { from { transform: translateY(110px); opacity: 0; } to { transform: translateY(0); opacity: .8; } }
@keyframes treeRiseFront { from { transform: translateY(110px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero .parallax-tree.back, .hero .parallax-tree.mid, .hero .parallax-tree.front { animation: none; transform: none; }
  .hero .parallax-tree.back { opacity: .55; } .hero .parallax-tree.mid { opacity: .8; } .hero .parallax-tree.front { opacity: 1; }
}
.hero-content {
  position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: 900px; padding: 0 24px 150px; margin: 0 auto; text-align: center;
}
.hero-content h1 {
  color: #fff; text-transform: uppercase; font-weight: 900; letter-spacing: .01em;
  font-size: clamp(2.4rem, 7vw, 5rem); margin-bottom: .25em; text-shadow: 0 0 15px rgba(0,0,0,.25);
}
.hero-content p { color: #fff; font-size: clamp(1.1rem, 2.3vw, 1.6rem); max-width: 56ch; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-dots { position: absolute; bottom: 26px; right: 26px; z-index: 4; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--color-red); transform: scale(1.2); }

/* Page hero (interior pages) */
.page-hero { position: relative; padding: 150px 0 60px; background-size: cover; background-position: center; color: #fff; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,19,42,.82), rgba(12,19,42,.55)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.breadcrumb a { color: #fff; font-weight: 600; }

/* Stat strip */
.stat-strip { background: var(--color-navy-dark); }
.stat-strip .container { display: flex; flex-wrap: wrap; }
.stat-item { flex: 1 1 0; min-width: 150px; text-align: center; padding: 34px 16px; border-left: 1px solid rgba(255,255,255,.1); }
.stat-item:first-child { border-left: none; }
.stat-item .num { display: block; font-family: var(--font-heading); font-size: 2.3rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); font-weight: 600; }
@media (max-width: 700px) { .stat-item { flex: 1 1 50%; border-left: none; border-top: 1px solid rgba(255,255,255,.1); } }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-header.left { margin: 0 0 40px; text-align: left; }

/* Intro split */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.intro-split img { border-radius: 6px; box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; }
.intro-split.reverse .img-col { order: 2; }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } .intro-split.reverse .img-col { order: 0; } }

/* Feature grid (activités) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: #fff; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.feature-card img { width: 100%; height: 220px; object-fit: cover; }
.feature-card .body { padding: 26px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .92rem; margin-bottom: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* Pricing lists */
.price-block { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 34px; margin-bottom: 28px; }
.price-block h3 { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--color-red); display: inline-block; }
.price-row {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--color-border);
}
.price-row:last-child { border-bottom: none; }
.price-row .name { font-weight: 600; color: var(--color-navy); font-size: .95rem; }
.price-row .dots { flex: 1; border-bottom: 1px dotted #ccc; margin-bottom: 5px; }
.price-row .price { font-family: var(--font-heading); font-weight: 700; color: var(--color-red); white-space: nowrap; }
.price-note { font-size: .82rem; color: var(--color-text-muted); margin-top: 16px; }

/* Schedule table */
.schedule-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th, .schedule-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--color-border); }
.schedule-table th { font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--color-navy); }
.schedule-table td:last-child { text-align: right; font-weight: 600; color: var(--color-navy); }
.schedule-table tr:last-child td { border-bottom: none; }

/* Job listing */
.job-card { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 28px 30px; margin-bottom: 20px; }
.job-card h3 { margin-bottom: 10px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.job-tags span { background: var(--color-bg-alt); color: var(--color-navy); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-features { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.contact-feature { display: flex; gap: 16px; align-items: flex-start; }
.contact-feature .icon-wrap {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--color-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.contact-feature .icon-wrap svg { width: 20px; height: 20px; }
.contact-feature h3 { font-size: .95rem; margin-bottom: 3px; }
.contact-feature a, .contact-feature p { color: var(--color-text-muted); font-size: .92rem; margin: 0; }
.form-cta-card {
  background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 44px 38px;
  text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.form-cta-card .icon-wrap-lg {
  width: 60px; height: 60px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.form-cta-card .icon-wrap-lg svg { width: 28px; height: 28px; }
.form-cta-card h3 { margin-bottom: 8px; }
.form-cta-card p { font-size: .92rem; max-width: 34ch; margin-bottom: 22px; }
.map-embed { width: 100%; height: 360px; border: 0; border-radius: 6px; box-shadow: var(--shadow); margin-top: 40px; }

/* Partners carousel (static wrap) */
.partners-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; }
.partners-strip .logo-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 6px; box-shadow: var(--shadow);
  padding: 16px 20px; min-height: 90px; width: 170px; display: flex; align-items: center; justify-content: center;
}
.partners-strip .logo-card img { max-width: 100%; max-height: 54px; object-fit: contain; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; background: rgba(10,14,26,.94); }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 80vh; object-fit: contain; box-shadow: var(--shadow-lg); border-radius: 4px; }
.lightbox-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #fff; cursor: pointer; }
.lightbox-close svg { width: 28px; height: 28px; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none;
  color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.26); }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }
body.lightbox-open { overflow: hidden; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark)); color: #fff; border-radius: 8px;
  padding: 48px 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }

/* Coming soon */
.coming-soon { text-align: center; padding: 90px 24px; }
.coming-soon .icon { font-size: 3rem; margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--color-navy-dark); color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.55); max-width: 34ch; font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.75); font-weight: 500; }
.footer-links a:hover { color: var(--color-blue); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a { color: rgba(255,255,255,.75); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.footer-contact svg { width: 16px; height: 16px; color: var(--color-red); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }

/* Responsive */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 26px; }
  .section { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; }
}
