/* ── SUB-PAGE STYLES (cadastre/lotissement.html, topographie/plan-cote.html…) ── */

/* ── INJECTED NAV (via sub-page.js) ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,95,160,0.1);
  box-shadow: 0 2px 16px rgba(10,35,64,0.08);
}
.site-logo {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 1.45rem; letter-spacing: 0.08em; text-decoration: none;
}
.site-logo .geo { color: #e8a030; }
.site-logo .sense { color: #0d3d7a; }
.site-nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.site-nav-links a {
  color: #4a6080; text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav-links a:hover { color: #1a5fa0; }
.site-nav-cta {
  background: #1a5fa0 !important; color: #fff !important;
  padding: 0.45rem 1.2rem; border-radius: 4px;
  font-weight: 700 !important;
}
.site-nav-cta:hover { background: #2878c8 !important; }

/* ── INJECTED FOOTER (via sub-page.js) ── */
.site-footer {
  background: #0a2340;
  padding: 2rem 5vw;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 3px solid #e8a030;
  /* break out of body max-width */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50% + 5vw);
  padding-right: calc(50vw - 50% + 5vw);
  margin-top: 3rem;
}
.site-footer-logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 1.2rem; letter-spacing: 0.08em;
}
.site-footer-logo .geo { color: #e8a030; }
.site-footer-logo .sense { color: rgba(255,255,255,0.9); }
.site-footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.35); }
.site-footer-links { display: flex; gap: 2rem; list-style: none; }
.site-footer-links a {
  font-size: 0.76rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.site-footer-links a:hover { color: #e8a030; }

@media (max-width: 768px) {
  .site-nav-links { display: none; }
  .site-footer { flex-direction: column; text-align: center; }
}

/* ── PAGE CONTENT ── */
body {
  font-family: 'Lato', sans-serif;
  padding: 5.5rem 2rem 2rem;
  line-height: 1.75;
  color: #1c2d4a;
  max-width: 1100px;
  margin: auto;
  background: #ffffff;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  color: #0d3d7a;
}

h1 { font-size: 2rem; margin: 1.5rem 0 1rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.8rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a5fa0; }

a { color: #1a5fa0; text-decoration: none; font-weight: 600; }
a:hover { color: #0d3d7a; text-decoration: underline; }

p { color: #4a6080; margin-bottom: 0.8rem; }

ul, ol { padding-left: 1.5rem; color: #4a6080; }
li { margin-bottom: 0.35rem; }

.section { margin-top: 3rem; }

.card {
  background: #f0f6fb;
  border-left: 4px solid #1a5fa0;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  border: 1px solid #deeaf6;
  border-left: 4px solid #1a5fa0;
}
.card strong { color: #0d3d7a; }

.highlight {
  background: #e8f2fb;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin-top: 1rem;
  color: #0d3d7a;
  border: 1px solid #c8dff4;
}

.warning {
  background: #fff8e6;
  border-left: 4px solid #e8a030;
  padding: 1.2rem 1.4rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  border: 1px solid #f5e0b0;
  border-left: 4px solid #e8a030;
  color: #7a5010;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.steps li {
  counter-increment: step;
  background: #f0f6fb;
  margin-bottom: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid #deeaf6;
  color: #4a6080;
}
.steps li::before {
  content: counter(step);
  background: #1a5fa0;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  padding: 4px 10px;
  margin-right: 10px;
  font-size: 0.85rem;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  background: #1a5fa0;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.cta:hover { background: #0d3d7a; color: white; text-decoration: none; transform: translateY(-2px); }

/* ── GALLERY & LIGHTBOX ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f0f6fb;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  border: 1px solid #deeaf6;
  box-shadow: 0 4px 16px rgba(10,35,64,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(10,35,64,0.13);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(10,35,64,0.92);
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 92%; max-height: 92%;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.close-btn {
  position: absolute;
  top: 20px; right: 35px;
  color: white; font-size: 40px;
  font-weight: bold; cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.close-btn:hover { opacity: 1; }

@media (max-width: 768px) {
  body { padding: 1.2rem; }
  h1 { font-size: 1.5rem; }
  .gallery img { height: 180px; }
}
