/* ===================================================================
   RESOLYS INGÉNIERIE — Design tokens (charte graphique officielle)
   Anthracite Expert #232323 / Rouge Expertise #A32020
   Gris Béton #9AA0A6 / Blanc Pur #FFFFFF
   Montserrat (titres) / Inter (texte courant)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500&display=swap');

:root {
  --anthracite: #232323;
  --anthracite-deep: #171717;
  --rouge: #A32020;
  --rouge-hover: #C22626;
  --gris-beton: #9AA0A6;
  --blanc: #FFFFFF;

  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1120px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--anthracite);
  color: var(--blanc);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { color: var(--gris-beton); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rouge);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rouge);
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: rgba(35,35,35,0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 56px;
  height: auto;
}
.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--rouge);
  margin-top: 3px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
}
nav a {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanc);
  position: relative;
  padding-bottom: 6px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rouge);
  transition: width 0.25s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--rouge);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-primary { background: var(--rouge); color: var(--blanc); }
.btn-primary:hover { background: var(--rouge-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blanc); }
.btn-outline:hover { background: var(--rouge); }

/* ---------- Hero (signature : ligne d'aplomb) ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.plumb-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(163,32,32,0.5) 15%, rgba(163,32,32,0.5) 85%, transparent);
  pointer-events: none;
}
.plumb-line::before, .plumb-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px; height: 9px;
  border: 1px solid var(--rouge);
  transform: translateX(-50%) rotate(45deg);
}
.plumb-line::before { top: 10%; }
.plumb-line::after { bottom: 10%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin: 20px 0 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--rouge);
}
.hero .lead { max-width: 46ch; margin-bottom: 34px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-marker {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  background: var(--anthracite-deep);
}
.hero-marker img { width: 100%; height: 100%; display: block; object-fit: cover; }
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--rouge); }
.corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--anthracite-deep); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; }

/* ---------- Grid cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.card {
  background: var(--anthracite);
  padding: 34px 26px;
}
.card .icon { width: 34px; height: 34px; margin-bottom: 22px; }
.card h3 { color: var(--blanc); margin-bottom: 10px; font-size: 0.95rem; }
.card p { font-size: 0.92rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Zone / stats strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.strip > div {
  padding: 34px 30px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.strip > div:first-child { border-left: none; }
.strip h3 { color: var(--rouge); margin-bottom: 8px; }
.strip p { color: var(--blanc); font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h3 { color: var(--blanc); margin-bottom: 16px; }
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: var(--gris-beton); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--rouge); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-beton);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--anthracite-deep);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--blanc);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
  border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--rouge);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.82rem; color: var(--gris-beton); margin-top: 14px; }
.form-status { font-size: 0.9rem; margin-top: 14px; display: none; }
.form-status.ok { color: #6fbf73; display: block; }
.form-status.err { color: #e07575; display: block; }

.contact-info dt {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-top: 24px;
  margin-bottom: 6px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { color: var(--blanc); font-size: 1rem; }
.contact-info a { color: var(--blanc); }
.contact-info a:hover { color: var(--rouge); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid-2, .contact-wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .strip > div:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
}
