/* ═══════════════════════════════════════════════════════════
   PMS Pierre-Multiservices — Global Stylesheet
   Zone Vienne (38) & 100km alentours
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

:root {
  --nav-h:    68px;   /* hauteur de la nav fixe */
  --black:    #09090b;
  --dark:     #111318;
  --panel:    #16191f;
  --panel2:   #1c2029;
  --border:   rgba(255,255,255,0.07);
  --white:    #f0ede8;
  --accent:   #e8a030;
  --accent2:  #3a8fd4;
  --muted:    #6b7280;
  --success:  #34d399;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --container: 1200px;
  --px: clamp(1.25rem, 5vw, 4rem);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.03em; line-height: 0.95; }
h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
p  { line-height: 1.75; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-tag.blue { color: var(--accent2); }
.section-tag.blue::before { background: var(--accent2); }
.section-tag.center { justify-content: center; }
.section-tag.center::before, .section-tag.center::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── BOUTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary  { background: var(--accent); color: var(--black); }
.btn-primary:hover { opacity: 0.88; }
.btn-blue     { background: var(--accent2); color: var(--white); }
.btn-blue:hover { opacity: 0.88; }
.btn-outline  { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.22); }
.btn-outline:hover { border-color: var(--accent); background: rgba(232,160,48,0.07); }
.btn-outline-blue { background: transparent; color: var(--white); border: 1px solid rgba(58,143,212,0.35); }
.btn-outline-blue:hover { border-color: var(--accent2); background: rgba(58,143,212,0.08); }
.btn-dark { background: var(--black); color: var(--white); padding: 0.9rem 2.2rem; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; transition: opacity 0.2s; }
.btn-dark:hover { opacity: 0.82; }

/* ─── NAV ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(9,9,11,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 var(--px);
  max-width: var(--container); margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem; letter-spacing: 0.06em;
  text-decoration: none; color: var(--white); flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  vertical-align: baseline;
  margin-left: 0.3rem;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { background: var(--accent); color: var(--black) !important; padding: 0.5rem 1.3rem; font-weight: 600 !important; letter-spacing: 0.08em !important; font-size: 0.78rem !important; }
.nav-cta:hover { opacity: 0.85; transform: none !important; }

.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 510; }
.nav-burger span { display: block; height: 1.5px; background: var(--white); transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer { display: none; flex-direction: column; background: var(--dark); border-top: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.nav-drawer.open { max-height: 500px; }
.nav-drawer a { display: block; padding: 1rem var(--px); font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); transition: color 0.2s, background 0.2s; }
.nav-drawer a:hover { color: var(--white); background: rgba(255,255,255,0.03); }
.nav-drawer a.active { color: var(--white); }
.nav-drawer .drawer-cta { margin: 1rem var(--px) 1.5rem; background: var(--accent); color: var(--black) !important; font-weight: 600; text-align: center; border-bottom: none; }

/* ─── TICKER ─── */
.ticker-wrap { overflow: hidden; background: var(--accent); padding: 0.6rem 0; }
.ticker-inner { display: flex; width: max-content; animation: ticker 35s linear infinite; }
.ticker-item { font-family: var(--font-mono); font-size: 0.67rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--black); font-weight: 700; padding: 0 2.5rem; white-space: nowrap; display: flex; align-items: center; gap: 1.2rem; }
.ticker-item::after { content: '◆'; font-size: 0.45rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── FOOTER ─── */
.site-footer { background: var(--dark); border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem var(--px); max-width: var(--container); margin: 0 auto; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin: 1rem 0 1.2rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social-link { width: 36px; height: 36px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: border-color 0.2s, color 0.2s; }
.footer-social-link:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.84rem; color: var(--muted); margin-bottom: 0.75rem; }
.footer-contact-item strong { color: var(--white); display: block; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem var(--px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: var(--container); margin: 0 auto; }
.footer-bottom p { font-size: 0.78rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* ─── UTILITAIRES ─── */
.section-py { padding-top: 6rem; padding-bottom: 6rem; }
.bg-dark { background: var(--dark); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.zone-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(232,160,48,0.1); border: 1px solid rgba(232,160,48,0.25); color: var(--accent); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; padding: 0.35rem 0.85rem; text-transform: uppercase; }

/* ─── CTA BAND ─── */
.cta-band { background: var(--accent); padding: 3.5rem var(--px); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--black); font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-band p { color: rgba(0,0,0,0.6); font-size: 0.95rem; margin-top: 0.5rem; }

/* ─── COMPENSATION NAV FIXE ─── */
/* Toutes les ancres internes tiennent compte de la nav */
:target { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Premier bloc de chaque page — pousse le contenu sous la nav */
.page-first { padding-top: calc(var(--nav-h) + 0px); }

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

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }
  .footer-top { grid-template-columns: 1fr; padding: 3rem var(--px); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-py { padding-top: 4rem; padding-bottom: 4rem; }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  :root { --px: 1.1rem; }
  h2 { font-size: 2.2rem; }
}

@media (max-width: 1024px) {
  /* déjà couvert par les règles existantes, rien à ajouter */
}