/* ─────────────────────────────────────────────────────────
   PGLA Construction — CSS partagé (pages ville × métier)
   Variables, reset, header/footer, sections, boutons.
   ───────────────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #D4A017;
  --gold-light: #E8C547;
  --gold-dark: #A67C00;
  --noir: #0D0D0D;
  --noir-light: #1A1A1A;
  --noir-card: #141414;
  --blanc: #FFFFFF;
  --gris: #A0A0A0;
  --gris-light: #F5F5F5;
  --bg: #FAFAF7;
  --bg-alt: #F4F1EB;
  --card-bg: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #555555;
  --border: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 92px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  transition: background 0.4s ease;
}
.site-header.scrolled { background: rgba(13,13,13,0.97); }
.header-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 78px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(212,160,23,0.35));
}
.nav-list {
  display: flex; gap: 0; list-style: none;
  align-items: center; padding: 0; margin: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 0.5rem 1.1rem;
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.75); text-decoration: none;
  letter-spacing: 0.3px; position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 1.1rem; right: 1.1rem;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s;
}
.nav-link:hover, .nav-link--active { color: var(--blanc); }
.nav-link:hover::after, .nav-link--active::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600; letter-spacing: 0.5px;
  border-radius: 4px; cursor: pointer;
  text-decoration: none; transition: all 0.3s;
  border: none;
  padding: 0.7rem 1.5rem; font-size: 0.9rem;
}
.btn--primary { background: var(--gold); color: var(--noir); }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(212,160,23,0.3); }
.btn--outline { background: transparent; color: var(--blanc); border: 1px solid rgba(255,255,255,0.3); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline-dark { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn--outline-dark:hover { background: var(--gold); color: var(--noir); }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }

.nav-toggle {
  display: none; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: var(--blanc); padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .close-icon { display: none; }
.nav-toggle.open .menu-icon { display: none; }
.nav-toggle.open .close-icon { display: block; }

/* ─── PAGE HERO (compact, pour pages internes) ─── */
.page-hero {
  position: relative;
  padding: 9rem 4% 5rem;
  background: var(--noir);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.4) contrast(1.05);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.3) 50%, rgba(13,13,13,0.92) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 920px; margin: 0 auto;
  text-align: center;
  animation: fadeUp 1s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-hero-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: var(--gold); letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 1.2rem; font-weight: 500;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.18;
  margin-bottom: 1.3rem; color: var(--blanc);
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p {
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  color: rgba(255,255,255,0.88); max-width: 680px;
  margin: 0 auto 2rem; line-height: 1.7; font-weight: 300;
}
.page-hero-chips {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.2rem;
}
.chip {
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 600;
}
.page-hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: var(--noir-light);
  padding: 1rem 4%;
  border-bottom: 1px solid rgba(212,160,23,0.12);
}
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--gold); }
.breadcrumb-current { color: var(--blanc); }

/* ─── CONTAINERS / SECTIONS ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 4%; }
.text-center { text-align: center; }
.section { padding: 5rem 4%; background: var(--bg); }
.section--light { background: var(--bg-alt); }
.section--dark { background: var(--noir); }
.section--darker { background: #060606; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-size: 0.78rem; color: var(--gold-dark); letter-spacing: 4px;
  text-transform: uppercase; margin-bottom: 0.7rem; font-weight: 600;
  display: inline-block;
}
.section-title, .section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700; margin-bottom: 1rem;
  color: var(--noir); line-height: 1.2;
}
.section--dark h2, .section--dark .section-title,
.section--darker h2, .section--darker .section-title { color: var(--blanc); }
.section-subtitle {
  font-size: 1.02rem; color: var(--text-light);
  max-width: 720px; line-height: 1.7; font-weight: 300;
  margin-left: auto; margin-right: auto;
}
.section--dark .section-subtitle,
.section--darker .section-subtitle { color: rgba(255,255,255,0.7); }
.section--dark .section-label,
.section--darker .section-label { color: var(--gold); }
em.gold { font-style: normal; color: var(--gold-dark); }
.section--dark em.gold, .section--darker em.gold { color: var(--gold); }

/* ─── CONTENU LONG (pages ville) ─── */
.prose {
  max-width: 780px; margin: 0 auto;
}
.prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--noir); margin: 2.2rem 0 0.9rem;
  line-height: 1.3;
}
.prose h3:first-child { margin-top: 0; }
.prose h3 em { font-style: normal; color: var(--gold-dark); }
.prose p {
  font-size: 1.02rem; line-height: 1.78;
  color: var(--text); margin-bottom: 1.1rem;
}
.prose strong { color: var(--noir); font-weight: 600; }
.prose ul {
  list-style: none; margin: 1rem 0 1.5rem;
  display: grid; gap: 0.6rem;
}
.prose ul li {
  position: relative; padding-left: 1.6rem;
  font-size: 1rem; line-height: 1.6; color: var(--text);
}
.prose ul li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--gold-dark); font-weight: 700;
}

/* ─── INFO-CARDS (zones, sols, contraintes) ─── */
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  transition: all 0.3s;
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,160,23,0.35);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}
.info-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(212,160,23,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.info-card-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--gold-dark); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.info-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--noir);
  margin-bottom: 0.5rem;
}
.info-card p {
  font-size: 0.93rem; color: var(--text-light);
  line-height: 1.65;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: 4.5rem 4%;
  background: linear-gradient(135deg, var(--noir-light) 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(212,160,23,0.15);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-banner > .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--blanc); margin-bottom: 1rem; }
.cta-banner p { color: var(--gris); font-size: 1.05rem; max-width: 600px; margin: 0 auto 2rem; font-weight: 300; }

/* ─── LIENS ZONES (maillage interne SEO) ─── */
.nearby-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.nearby-links-title {
  font-size: 0.78rem; color: var(--gold-dark);
  letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1rem;
  text-align: center;
}
.nearby-links-grid {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  justify-content: center;
}
.nearby-link {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  text-decoration: none; transition: all 0.25s;
}
.nearby-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
.site-footer {
  background: #060606; padding: 4rem 4% 0;
  border-top: 1px solid rgba(212,160,23,0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 3rem; max-width: 1200px; margin: 0 auto 3rem;
}
.footer-logo-img {
  height: 90px; width: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 14px rgba(212,160,23,0.25));
}
.footer-brand p {
  color: var(--gris); font-size: 0.92rem; line-height: 1.7;
  font-weight: 300; margin-bottom: 1.4rem;
}
.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--blanc);
  margin-bottom: 1.2rem; font-weight: 600;
  letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: var(--gris); text-decoration: none;
  font-size: 0.92rem; font-weight: 300;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  color: rgba(255,255,255,0.7); font-size: 0.92rem;
  margin-bottom: 0.9rem;
}
.footer-contact-item svg {
  flex-shrink: 0; width: 18px; height: 18px;
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  margin-top: 3px;
}
.footer-contact-item a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--gold); }
.footer-contact-item strong { color: var(--blanc); font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  max-width: 1200px; margin: 0 auto;
  font-size: 0.85rem; color: var(--gris);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── FLOAT BUTTONS ─── */
.float-stack {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 999;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.float-btn {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-btn svg { color: #FFFFFF; }
.float-btn:hover { transform: scale(1.08); }
.float-btn--wa {
  background: #25D366;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2);
  animation: waPulse 2.4s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 14px rgba(37,211,102,0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-list.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 4%;
    border-bottom: 1px solid rgba(212,160,23,0.15);
    gap: 0.5rem;
    align-items: stretch;
  }
  .nav-list.open .nav-item { width: 100%; }
  .nav-list.open .nav-link { display: block; padding: 0.7rem 0; }
  .nav-list.open .btn { width: 100%; }

  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  .logo-img { height: 54px; }
  .page-hero { padding: 7rem 4% 3.5rem; }
  .section { padding: 3.5rem 4%; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero-cta .btn { width: 100%; }
}
