/* ==========================================================================
   PH BTP — Design system partagé (assets/css/site.css)
   Direction : "Chantier Moderne" — marine + jaune balisage + orange chantier,
   grille cassée, révélations au scroll, galeries avec visionneuse.
   Chargé sur toutes les pages, avant les CSS spécifiques à chaque page.
   ========================================================================== */

:root {
  --navy: #04274f;
  --navy-2: #082e5c;
  --navy-3: #0c3763;
  --cream: #fff7ee;
  --paper: #fffefc;
  --gold: #f5cb5c;
  --orange: #f67a08;
  --orange-2: #ff8c1f;
  --blue: #4b79ad;
  --ink: #1c1f24;
  --muted: #6b7280;
  --line: #eee7d8;
  --r-lg: 1.2rem;
  --r-md: 0.6rem;
  --r-sm: 0.4rem;
  --container-max: 1506px;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].is-visible { transform: scale(1); }
[data-reveal-group] > * { transition-delay: calc(var(--reveal-i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Blueprint texture (motif signature) ---------- */
.bp-texture {
  position: relative;
}
.bp-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(245, 203, 92, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 203, 92, 0.55) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

/* ---------- Hazard stripe divider ---------- */
.site-stripe {
  height: 8px;
  background-image: repeating-linear-gradient(
    -45deg, var(--gold), var(--gold) 20px, var(--navy) 20px, var(--navy) 40px
  );
}

/* ---------- Section labels / eyebrows ---------- */
.site-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
}
.site-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.site-eyebrow.on-dark { color: var(--gold); }
.site-eyebrow.on-dark::before { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn-site {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.9rem;
  border-radius: var(--r-lg);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  font-family: 'Golos Text', sans-serif;
}
.btn-site-orange {
  background-color: var(--orange);
  color: #fff;
  box-shadow: 0 12px 30px rgba(246, 122, 8, 0.28);
}
.btn-site-orange:hover {
  background-color: var(--orange-2);
  color: #fff;
  transform: translateY(-3px);
}
.btn-site-outline {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-site-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
.btn-site-navy {
  background-color: var(--navy);
  color: #fff;
}
.btn-site-navy:hover {
  background-color: var(--navy-3);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Trust badges row ---------- */
.site-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 203, 92, 0.35);
  border-radius: var(--r-lg);
  color: #f2f6fb;
  font-size: 0.95rem;
}
.site-badge .mbr-iconfont { color: var(--gold); font-size: 1.15rem; }

/* ---------- Breadcrumb ---------- */
.site-breadcrumb {
  padding: 1.1rem 0;
  font-size: 0.9rem;
}
.site-breadcrumb a { color: var(--blue); text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; }
.site-breadcrumb span { color: var(--muted); }
.site-breadcrumb .sep { margin: 0 8px; color: #c9c2b0; }

/* ---------- Sticky mobile CTA bar ---------- */
.site-mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 39, 79, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.site-mobile-cta.is-visible { transform: translateY(0); }
@media (max-width: 767px) {
  .site-mobile-cta { display: flex; }
  body { padding-bottom: 0; }
}
.site-mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.6rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.site-mobile-cta .cta-devis { background-color: var(--orange); color: #fff; }
.site-mobile-cta .cta-call { background-color: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }

/* ---------- Nav shrink on scroll ---------- */
.cid-v5NVIiuCrt .navbar {
  transition: min-height 0.3s ease, box-shadow 0.3s ease;
}
.cid-v5NVIiuCrt .navbar.site-scrolled {
  min-height: 60px;
  box-shadow: 0 4px 18px rgba(4, 39, 79, 0.12);
}
.cid-v5NVIiuCrt .navbar.site-scrolled .navbar-brand,
.cid-v5NVIiuCrt .navbar.site-scrolled .navbar-brand .navbar-logo img {
  min-height: 60px;
  height: 2.2rem !important;
}
.site-nav-cta-pulse {
  animation: siteNavPulse 2.4s ease-in-out infinite;
}
@keyframes siteNavPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 122, 8, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(246, 122, 8, 0); }
}

/* ---------- Process steps (numbered, used on home + service pages) ---------- */
.site-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
@media (max-width: 992px) {
  .site-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .site-steps { grid-template-columns: 1fr; }
}
.site-step {
  position: relative;
  padding: 1.8rem 1.6rem;
  background-color: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.site-step .num {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--line);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.site-step h4 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.site-step p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.site-step::after {
  content: "";
  position: absolute;
  top: 2.4rem;
  right: -1.6rem;
  width: 1.6rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
}
.site-step:last-child::after,
.site-steps > .site-step:nth-child(2)::after {
  display: none;
}
@media (max-width: 992px) {
  .site-step::after { display: none; }
}

/* ---------- Service cards (home) ---------- */
.site-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 992px) {
  .site-service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .site-service-grid { grid-template-columns: 1fr; }
}
.site-service-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--navy);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  isolation: isolate;
}
.site-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: -2;
}
.site-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,39,79,0.05) 20%, rgba(4,39,79,0.92) 100%);
  z-index: -1;
}
.site-service-card:hover img { transform: scale(1.08); }
.site-service-card .content {
  padding: 1.6rem;
  color: #fff;
}
.site-service-card .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.site-service-card h3 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.site-service-card p {
  font-size: 0.9rem;
  color: #d7e2ef;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.site-service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap 0.25s ease;
}
.site-service-card:hover .more { gap: 14px; }

/* ---------- Gallery + lightbox ---------- */
.site-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
@media (max-width: 992px) {
  .site-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .site-gallery { grid-template-columns: repeat(2, 1fr); }
}
.site-gallery .g-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background-color: var(--line);
}
.site-gallery .g-item.tall { aspect-ratio: 4 / 5; }
.site-gallery .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.site-gallery .g-item:hover img { transform: scale(1.07); }
.site-gallery .g-item::after {
  content: "\e91d";
  font-family: 'Moririse2';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(4,39,79,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.site-gallery .g-item:hover::after { opacity: 1; }

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 12, 22, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.site-lightbox.is-open { display: flex; }
.site-lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.site-lightbox .lb-close,
.site-lightbox .lb-prev,
.site-lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1.1rem;
}
.site-lightbox .lb-close:hover,
.site-lightbox .lb-prev:hover,
.site-lightbox .lb-next:hover { background: rgba(255,255,255,0.22); }
.site-lightbox .lb-close { top: 22px; right: 22px; }
.site-lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.site-lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 576px) {
  .site-lightbox .lb-prev, .site-lightbox .lb-next { width: 38px; height: 38px; }
}

/* ---------- Reassurance strip (honest claims only) ---------- */
.site-reassurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 992px) { .site-reassurance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .site-reassurance { grid-template-columns: 1fr; } }
.site-reassurance-item {
  text-align: center;
  padding: 1.4rem 1rem;
}
.site-reassurance-item .mbr-iconfont {
  font-size: 1.9rem;
  color: var(--orange);
  margin-bottom: 0.6rem;
  display: block;
}
.site-reassurance-item h4 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.site-reassurance-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Service hero (sub-pages) ---------- */
.site-service-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  padding: 3.4rem 0 3.2rem;
  color: #fff;
}
.site-service-hero .container-fluid { position: relative; z-index: 1; }
.site-service-hero h1 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 760px;
}
.site-service-hero p.lead {
  color: #d7e2ef;
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
@media (max-width: 768px) {
  .site-service-hero h1 { font-size: 2.1rem; }
}

/* ---------- CTA banner ---------- */
.site-cta-banner {
  background-color: var(--navy);
  border-radius: var(--r-lg);
  padding: 3rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.site-cta-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,122,8,0.3), transparent 70%);
}
.site-cta-banner h3 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}
.site-cta-banner p {
  color: #c7d3e0;
  margin: 0;
  position: relative;
  z-index: 1;
}
.site-cta-banner .cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer v2 ---------- */
.site-footer {
  background-color: var(--navy);
  color: #cdd8e5;
  padding: 3.4rem 0 1.6rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 992px) {
  .site-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}
.site-footer h5 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.site-footer p { font-size: 0.92rem; line-height: 1.6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer a { color: #cdd8e5; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #8ea1b8;
}

/* ---------- Utility ---------- */
.text-orange-site { color: var(--orange); }
.bg-cream { background-color: var(--cream); }
.section-pad { padding: 4.5rem 0; }
@media (max-width: 768px) {
  .section-pad { padding: 3rem 0; }
}
